@storybook/addon-vitest 0.0.0-pr-31819-sha-323d0e88 → 0.0.0-pr-31987-sha-64db30c4
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/chunk-55WZLVGN.mjs +11 -0
- package/dist/chunk-JKRQGT2U.mjs +10 -0
- package/dist/index.js +6 -9
- package/dist/index.mjs +5 -0
- package/dist/manager.js +8 -5571
- package/dist/node/coverage-reporter.d.ts +184 -0
- package/dist/node/coverage-reporter.js +4 -1395
- package/dist/node/coverage-reporter.mjs +12 -0
- package/dist/node/vitest.d.ts +2 -0
- package/dist/node/vitest.js +17 -564
- package/dist/node/vitest.mjs +19 -0
- package/dist/postinstall.js +93 -1163
- package/dist/preset.js +32 -268
- package/dist/vitest-plugin/global-setup.d.ts +6 -0
- package/dist/vitest-plugin/global-setup.js +6 -146
- package/dist/vitest-plugin/global-setup.mjs +13 -0
- package/dist/vitest-plugin/index.js +43 -2589
- package/dist/vitest-plugin/index.mjs +28 -0
- package/dist/vitest-plugin/setup-file.d.ts +14 -0
- package/dist/vitest-plugin/setup-file.js +9 -28
- package/dist/vitest-plugin/setup-file.mjs +9 -0
- package/dist/vitest-plugin/test-utils.d.ts +20 -0
- package/dist/vitest-plugin/test-utils.js +8 -68
- package/dist/vitest-plugin/test-utils.mjs +8 -0
- package/manager.js +1 -0
- package/manager.mjs +1 -0
- package/package.json +89 -17
- package/postinstall.js +1 -0
- package/postinstall.mjs +1 -0
- package/preset.js +1 -0
- package/preset.mjs +1 -0
- package/dist/_browser-chunks/chunk-A47P2DCZ.js +0 -11
- package/dist/_browser-chunks/chunk-VMSW5DPM.js +0 -60
- package/dist/_node-chunks/chunk-C4NXJJA3.js +0 -324
- package/dist/_node-chunks/chunk-CIKGVIS6.js +0 -223
- package/dist/_node-chunks/chunk-FMQIQP6D.js +0 -96
- package/dist/_node-chunks/chunk-KVKHJ5OL.js +0 -46
- package/dist/_node-chunks/chunk-N3OFRDD3.js +0 -80
- package/dist/_node-chunks/chunk-VFT2PRGV.js +0 -5002
- package/dist/_node-chunks/chunk-W26ZMSD3.js +0 -143
- package/dist/_node-chunks/chunk-XWQZZ2C3.js +0 -1586
- package/static/coverage-reporter.cjs +0 -10
|
@@ -1,143 +0,0 @@
|
|
|
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
|
-
};
|