@storybook/addon-vitest 0.0.0-pr-30601-sha-d70f67e1 → 0.0.0-pr-31819-sha-b1c88d51

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.
Files changed (43) hide show
  1. package/dist/_browser-chunks/chunk-A47P2DCZ.js +11 -0
  2. package/dist/_browser-chunks/chunk-VMSW5DPM.js +60 -0
  3. package/dist/_node-chunks/chunk-C4NXJJA3.js +324 -0
  4. package/dist/_node-chunks/chunk-CIKGVIS6.js +223 -0
  5. package/dist/_node-chunks/chunk-FMQIQP6D.js +96 -0
  6. package/dist/_node-chunks/chunk-KVKHJ5OL.js +46 -0
  7. package/dist/_node-chunks/chunk-N3OFRDD3.js +80 -0
  8. package/dist/_node-chunks/chunk-VFT2PRGV.js +5002 -0
  9. package/dist/_node-chunks/chunk-W26ZMSD3.js +143 -0
  10. package/dist/_node-chunks/chunk-XWQZZ2C3.js +1586 -0
  11. package/dist/index.js +9 -6
  12. package/dist/manager.js +5571 -8
  13. package/dist/node/coverage-reporter.js +1395 -4
  14. package/dist/node/vitest.js +564 -17
  15. package/dist/postinstall.js +1179 -124
  16. package/dist/preset.js +268 -32
  17. package/dist/vitest-plugin/global-setup.js +146 -6
  18. package/dist/vitest-plugin/index.js +2589 -43
  19. package/dist/vitest-plugin/setup-file.js +28 -9
  20. package/dist/vitest-plugin/test-utils.js +68 -8
  21. package/package.json +20 -92
  22. package/static/coverage-reporter.cjs +10 -0
  23. package/templates/vitest.config.3.2.template.ts +30 -0
  24. package/dist/chunk-55WZLVGN.mjs +0 -11
  25. package/dist/chunk-JKRQGT2U.mjs +0 -10
  26. package/dist/index.mjs +0 -5
  27. package/dist/node/coverage-reporter.d.ts +0 -184
  28. package/dist/node/coverage-reporter.mjs +0 -12
  29. package/dist/node/vitest.d.ts +0 -2
  30. package/dist/node/vitest.mjs +0 -19
  31. package/dist/vitest-plugin/global-setup.d.ts +0 -6
  32. package/dist/vitest-plugin/global-setup.mjs +0 -13
  33. package/dist/vitest-plugin/index.mjs +0 -28
  34. package/dist/vitest-plugin/setup-file.d.ts +0 -14
  35. package/dist/vitest-plugin/setup-file.mjs +0 -9
  36. package/dist/vitest-plugin/test-utils.d.ts +0 -20
  37. package/dist/vitest-plugin/test-utils.mjs +0 -8
  38. package/manager.js +0 -1
  39. package/manager.mjs +0 -1
  40. package/postinstall.js +0 -1
  41. package/postinstall.mjs +0 -1
  42. package/preset.js +0 -1
  43. package/preset.mjs +0 -1
@@ -0,0 +1,143 @@
1
+ import CJS_COMPAT_NODE_URL from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE from "node:module";
4
+
5
+ const __filename = CJS_COMPAT_NODE_URL.fileURLToPath(import.meta.url);
6
+ const __dirname = CJS_COMPAT_NODE_PATH.dirname(__filename);
7
+ const require = CJS_COMPAT_NODE_MODULE.createRequire(import.meta.url);
8
+ // ------------------------------------------------------------
9
+ // end of CJS compatibility banner, injected by Storybook's esbuild configuration
10
+ // ------------------------------------------------------------
11
+ import {
12
+ a as o
13
+ } from "./chunk-KVKHJ5OL.js";
14
+
15
+ // ../../node_modules/pathe/dist/shared/pathe.ff20891b.mjs
16
+ var v = /^[A-Za-z]:\//;
17
+ function a(e = "") {
18
+ return e && e.replace(/\\/g, "/").replace(v, (n) => n.toUpperCase());
19
+ }
20
+ o(a, "normalizeWindowsPath");
21
+ var T = /^[/\\]{2}/, P = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/, $ = /^[A-Za-z]:$/, b = /^\/([A-Za-z]:)?$/, R = "/", x = ":", g = /* @__PURE__ */ o(function(e) {
22
+ if (e.length === 0)
23
+ return ".";
24
+ e = a(e);
25
+ let n = e.match(T), t = c(e), s = e[e.length - 1] === "/";
26
+ return e = m(e, !t), e.length === 0 ? t ? "/" : s ? "./" : "." : (s && (e += "/"), $.test(e) && (e += "/"), n ? t ? `//${e}` : `//./${e}` : t && !c(e) ? `/${e}` : e);
27
+ }, "normalize"), A = /* @__PURE__ */ o(function(...e) {
28
+ if (e.length === 0)
29
+ return ".";
30
+ let n;
31
+ for (let t of e)
32
+ t && t.length > 0 && (n === void 0 ? n = t : n += `/${t}`);
33
+ return n === void 0 ? "." : g(n.replace(/\/\/+/g, "/"));
34
+ }, "join");
35
+ function I() {
36
+ return typeof process < "u" && typeof process.cwd == "function" ? process.cwd().replace(/\\/g, "/") : "/";
37
+ }
38
+ o(I, "cwd");
39
+ var u = /* @__PURE__ */ o(function(...e) {
40
+ e = e.map((s) => a(s));
41
+ let n = "", t = !1;
42
+ for (let s = e.length - 1; s >= -1 && !t; s--) {
43
+ let r = s >= 0 ? e[s] : I();
44
+ !r || r.length === 0 || (n = `${r}/${n}`, t = c(r));
45
+ }
46
+ return n = m(n, !t), t && !c(n) ? `/${n}` : n.length > 0 ? n : ".";
47
+ }, "resolve");
48
+ function m(e, n) {
49
+ let t = "", s = 0, r = -1, l = 0, f = null;
50
+ for (let i = 0; i <= e.length; ++i) {
51
+ if (i < e.length)
52
+ f = e[i];
53
+ else {
54
+ if (f === "/")
55
+ break;
56
+ f = "/";
57
+ }
58
+ if (f === "/") {
59
+ if (!(r === i - 1 || l === 1)) if (l === 2) {
60
+ if (t.length < 2 || s !== 2 || t[t.length - 1] !== "." || t[t.length - 2] !== ".") {
61
+ if (t.length > 2) {
62
+ let E = t.lastIndexOf("/");
63
+ E === -1 ? (t = "", s = 0) : (t = t.slice(0, E), s = t.length - 1 - t.lastIndexOf("/")), r = i, l = 0;
64
+ continue;
65
+ } else if (t.length > 0) {
66
+ t = "", s = 0, r = i, l = 0;
67
+ continue;
68
+ }
69
+ }
70
+ n && (t += t.length > 0 ? "/.." : "..", s = 2);
71
+ } else
72
+ t.length > 0 ? t += `/${e.slice(r + 1, i)}` : t = e.slice(r + 1, i), s = i - r - 1;
73
+ r = i, l = 0;
74
+ } else f === "." && l !== -1 ? ++l : l = -1;
75
+ }
76
+ return t;
77
+ }
78
+ o(m, "normalizeString");
79
+ var c = /* @__PURE__ */ o(function(e) {
80
+ return P.test(e);
81
+ }, "isAbsolute"), z = /* @__PURE__ */ o(function(e) {
82
+ return a(e);
83
+ }, "toNamespacedPath"), N = /.(\.[^./]+)$/, d = /* @__PURE__ */ o(function(e) {
84
+ let n = N.exec(a(e));
85
+ return n && n[1] || "";
86
+ }, "extname"), S = /* @__PURE__ */ o(function(e, n) {
87
+ let t = u(e).replace(b, "$1").split("/"), s = u(n).replace(b, "$1").split("/");
88
+ if (s[0][1] === ":" && t[0][1] === ":" && t[0] !== s[0])
89
+ return s.join("/");
90
+ let r = [...t];
91
+ for (let l of r) {
92
+ if (s[0] !== l)
93
+ break;
94
+ t.shift(), s.shift();
95
+ }
96
+ return [...t.map(() => ".."), ...s].join("/");
97
+ }, "relative"), h = /* @__PURE__ */ o(function(e) {
98
+ let n = a(e).replace(/\/$/, "").split("/").slice(0, -1);
99
+ return n.length === 1 && $.test(n[0]) && (n[0] += "/"), n.join("/") || (c(e) ? "/" : ".");
100
+ }, "dirname"), j = /* @__PURE__ */ o(function(e) {
101
+ let n = [e.root, e.dir, e.base ?? e.name + e.ext].filter(Boolean);
102
+ return a(
103
+ e.root ? u(...n) : n.join("/")
104
+ );
105
+ }, "format"), _ = /* @__PURE__ */ o(function(e, n) {
106
+ let t = a(e).split("/").pop();
107
+ return n && t.endsWith(n) ? t.slice(0, -n.length) : t;
108
+ }, "basename"), p = /* @__PURE__ */ o(function(e) {
109
+ let n = a(e).split("/").shift() || "/", t = _(e), s = d(t);
110
+ return {
111
+ root: n,
112
+ dir: h(e),
113
+ base: t,
114
+ ext: s,
115
+ name: t.slice(0, t.length - s.length)
116
+ };
117
+ }, "parse"), O = {
118
+ __proto__: null,
119
+ basename: _,
120
+ delimiter: x,
121
+ dirname: h,
122
+ extname: d,
123
+ format: j,
124
+ isAbsolute: c,
125
+ join: A,
126
+ normalize: g,
127
+ normalizeString: m,
128
+ parse: p,
129
+ relative: S,
130
+ resolve: u,
131
+ sep: R,
132
+ toNamespacedPath: z
133
+ };
134
+
135
+ export {
136
+ R as a,
137
+ g as b,
138
+ A as c,
139
+ u as d,
140
+ S as e,
141
+ h as f,
142
+ O as g
143
+ };