@storybook/addon-vitest 0.0.0-pr-31819-sha-b9cc1551 → 0.0.0-pr-31819-sha-8b7e5823
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_node-chunks/{chunk-FMQIQP6D.js → chunk-JSCRRX7J.js} +18 -33
- package/dist/_node-chunks/{chunk-VFT2PRGV.js → chunk-L5EWH7GC.js} +1 -1
- package/dist/_node-chunks/{chunk-XWQZZ2C3.js → chunk-RCVH25XB.js} +379 -367
- package/dist/node/coverage-reporter.js +90 -90
- package/dist/node/vitest.js +45 -46
- package/dist/postinstall.js +5 -5
- package/dist/preset.js +6 -6
- package/package.json +2 -3
- package/static/coverage-reporter.cjs +0 -10
|
@@ -8,24 +8,17 @@ const require = CJS_COMPAT_NODE_MODULE.createRequire(import.meta.url);
|
|
|
8
8
|
// ------------------------------------------------------------
|
|
9
9
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
10
10
|
// ------------------------------------------------------------
|
|
11
|
-
import {
|
|
12
|
-
c as r,
|
|
13
|
-
f as s
|
|
14
|
-
} from "./chunk-W26ZMSD3.js";
|
|
15
|
-
import {
|
|
16
|
-
a as o
|
|
17
|
-
} from "./chunk-KVKHJ5OL.js";
|
|
18
11
|
|
|
19
12
|
// ../../core/src/component-testing/constants.ts
|
|
20
|
-
var
|
|
13
|
+
var e = "storybook/interactions", s = `${e}/panel`, n = "writing-tests/integrations/vitest-addon", N = `${n}#what-happens-when-there-are-different-test-results-in-multiple-environments`;
|
|
21
14
|
|
|
22
15
|
// ../a11y/src/constants.ts
|
|
23
|
-
var t = "storybook/a11y",
|
|
24
|
-
var
|
|
16
|
+
var t = "storybook/a11y", r = `${t}/panel`;
|
|
17
|
+
var a = `${t}/result`, c = `${t}/request`, p = `${t}/running`, A = `${t}/error`, O = `${t}/manual`, I = `${t}/select`, i = "writing-tests/accessibility-testing", D = `${i}#why-are-my-tests-failing-in-different-environments`;
|
|
25
18
|
|
|
26
19
|
// src/constants.ts
|
|
27
|
-
var
|
|
28
|
-
var
|
|
20
|
+
var o = "storybook/test", R = `${o}/test-provider`, y = "STORYBOOK_ADDON_TEST_CHANNEL";
|
|
21
|
+
var _ = "writing-tests/integrations/vitest-addon", d = `${_}#what-happens-if-vitest-itself-has-an-error`, l = "coverage", x = [
|
|
29
22
|
"@storybook/nextjs",
|
|
30
23
|
"@storybook/nextjs-vite",
|
|
31
24
|
"@storybook/react-vite",
|
|
@@ -35,8 +28,8 @@ var T = "writing-tests/integrations/vitest-addon", b = `${T}#what-happens-if-vit
|
|
|
35
28
|
"@storybook/web-components-vite",
|
|
36
29
|
"@storybook/sveltekit",
|
|
37
30
|
"@storybook/react-native-web-vite"
|
|
38
|
-
],
|
|
39
|
-
id:
|
|
31
|
+
], E = {
|
|
32
|
+
id: o,
|
|
40
33
|
initialState: {
|
|
41
34
|
config: {
|
|
42
35
|
coverage: !1,
|
|
@@ -71,26 +64,18 @@ var T = "writing-tests/integrations/vitest-addon", b = `${T}#what-happens-if-vit
|
|
|
71
64
|
}
|
|
72
65
|
}
|
|
73
66
|
};
|
|
74
|
-
var
|
|
75
|
-
|
|
76
|
-
// ../../core/src/shared/utils/module.ts
|
|
77
|
-
import { fileURLToPath as l, pathToFileURL as A } from "node:url";
|
|
78
|
-
var u = /* @__PURE__ */ o((...e) => typeof import.meta.resolve != "function" && process.env.VITEST === "true" ? (console.warn(
|
|
79
|
-
"importMetaResolve from within Storybook is being used in a Vitest test, but it shouldn't be. Please report this at https://github.com/storybookjs/storybook/issues/new?template=bug_report.yml"
|
|
80
|
-
), A(e[0]).href) : import.meta.resolve(...e), "importMetaResolve"), j = /* @__PURE__ */ o((e, i) => s(l(u(r(e, "package.json"), i))), "resolvePackageDir");
|
|
67
|
+
var L = `UNIVERSAL_STORE:${E.id}`, f = "UNIVERSAL_STORE:storybook/status", u = "UNIVERSAL_STORE:storybook/test-provider", C = "storybook/component-test", g = "storybook/a11y";
|
|
81
68
|
|
|
82
69
|
export {
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
h,
|
|
91
|
-
|
|
70
|
+
o as a,
|
|
71
|
+
y as b,
|
|
72
|
+
_ as c,
|
|
73
|
+
l as d,
|
|
74
|
+
x as e,
|
|
75
|
+
E as f,
|
|
76
|
+
L as g,
|
|
77
|
+
f as h,
|
|
78
|
+
u as i,
|
|
92
79
|
C as j,
|
|
93
|
-
|
|
94
|
-
u as l,
|
|
95
|
-
j as m
|
|
80
|
+
g as k
|
|
96
81
|
};
|
|
@@ -10,7 +10,7 @@ const require = CJS_COMPAT_NODE_MODULE.createRequire(import.meta.url);
|
|
|
10
10
|
// ------------------------------------------------------------
|
|
11
11
|
import {
|
|
12
12
|
a as kn
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-JSCRRX7J.js";
|
|
14
14
|
import {
|
|
15
15
|
a as mp
|
|
16
16
|
} from "./chunk-N3OFRDD3.js";
|