-
Notifications
You must be signed in to change notification settings - Fork 56
Expand file tree
/
Copy pathcomponent-annotation-disabled.test.ts
More file actions
40 lines (33 loc) · 1.39 KB
/
component-annotation-disabled.test.ts
File metadata and controls
40 lines (33 loc) · 1.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
import { expect } from "vitest";
import { test } from "./utils";
test(import.meta.url, ({ runBundler, readOutputFiles }) => {
runBundler();
expect(readOutputFiles()).toMatchInlineSnapshot(`
{
"app.js": "!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e.SENTRY_RELEASE={id:"CURRENT_SHA"};var n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="0c0c0033-ce3e-495b-a746-b130c60bc714",e._sentryDebugIdIdentifier="sentry-dbid-0c0c0033-ce3e-495b-a746-b130c60bc714");}catch(e){}}();
/******/ (() => { // webpackBootstrap
/******/ "use strict";
// UNUSED EXPORTS: default
;// external "react/jsx-runtime"
const jsx_runtime_namespaceObject = react/jsx-runtime;
;// ./src/component-a.jsx
/* unused harmony import specifier */ var _jsx;
function ComponentA() {
return /*#__PURE__*/_jsx("span", {
children: "Component A"
});
}
;// ./src/app.jsx
/* unused harmony import specifier */ var app_ComponentA;
/* unused harmony import specifier */ var app_jsx;
/* unused harmony import specifier */ var _jsxs;
function App() {
return /*#__PURE__*/_jsxs("span", {
children: [/*#__PURE__*/app_jsx(app_ComponentA, {}), ";"]
});
}
/******/ })()
;",
}
`);
});