@storybook/addon-vitest 0.0.0-pr-32717-sha-b8c5e103 → 0.0.0-pr-32795-sha-2df3d620
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/_browser-chunks/chunk-OAEB4TPN.js +61 -0
- package/dist/_node-chunks/chunk-BT373FQ5.js +35 -0
- package/dist/_node-chunks/chunk-MF6JOE4V.js +138 -0
- package/dist/_node-chunks/chunk-OKDYGS6H.js +69 -0
- package/dist/_node-chunks/chunk-OPJ4OMME.js +339 -0
- package/dist/_node-chunks/{chunk-7I3XZAZ7.js → chunk-TNCD5NO2.js} +15 -24
- package/dist/_node-chunks/chunk-VEF455SS.js +1697 -0
- package/dist/_node-chunks/chunk-VZCSBDKQ.js +83 -0
- package/dist/_node-chunks/chunk-YLTVTBN3.js +45 -0
- package/dist/index.js +1 -5
- package/dist/manager.js +167 -355
- package/dist/node/coverage-reporter.js +319 -864
- package/dist/node/vitest.js +190 -466
- package/dist/postinstall.js +633 -1276
- package/dist/preset.js +163 -357
- package/dist/vitest-plugin/global-setup.js +51 -105
- package/dist/vitest-plugin/index.js +1161 -2381
- package/dist/vitest-plugin/setup-file.js +6 -12
- package/dist/vitest-plugin/test-utils.js +31 -71
- package/package.json +7 -3
- package/dist/_browser-chunks/chunk-JK72E6FR.js +0 -6
- package/dist/_browser-chunks/chunk-RPDOPHZX.js +0 -77
- package/dist/_node-chunks/chunk-AKC4U5HL.js +0 -40
- package/dist/_node-chunks/chunk-KSSAW7TR.js +0 -247
- package/dist/_node-chunks/chunk-NGGAGIMA.js +0 -69
- package/dist/_node-chunks/chunk-UJUXFQ2W.js +0 -260
- package/dist/_node-chunks/chunk-WR6HRATV.js +0 -60
- package/dist/_node-chunks/chunk-X4AEIMZO.js +0 -92
- package/dist/_node-chunks/chunk-Y2XQIAV5.js +0 -502
- package/dist/_node-chunks/chunk-ZMWJWQPS.js +0 -50
|
@@ -1,40 +1,31 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_u2pqup67if from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_u2pqup67if from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_u2pqup67if from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_u2pqup67if.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_u2pqup67if.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_u2pqup67if.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
12
|
import {
|
|
13
|
-
__commonJS
|
|
14
|
-
|
|
15
|
-
} from "./chunk-ZMWJWQPS.js";
|
|
13
|
+
__commonJS
|
|
14
|
+
} from "./chunk-YLTVTBN3.js";
|
|
16
15
|
|
|
17
16
|
// ../../node_modules/picocolors/picocolors.js
|
|
18
17
|
var require_picocolors = __commonJS({
|
|
19
18
|
"../../node_modules/picocolors/picocolors.js"(exports, module) {
|
|
20
|
-
var p = process || {}
|
|
21
|
-
var argv = p.argv || [];
|
|
22
|
-
var env = p.env || {};
|
|
23
|
-
var isColorSupported = !(!!env.NO_COLOR || argv.includes("--no-color")) && (!!env.FORCE_COLOR || argv.includes("--color") || p.platform === "win32" || (p.stdout || {}).isTTY && env.TERM !== "dumb" || !!env.CI);
|
|
24
|
-
var formatter = /* @__PURE__ */ __name((open, close, replace = open) => (input) => {
|
|
19
|
+
var p = process || {}, argv = p.argv || [], env = p.env || {}, isColorSupported = !(env.NO_COLOR || argv.includes("--no-color")) && (!!env.FORCE_COLOR || argv.includes("--color") || p.platform === "win32" || (p.stdout || {}).isTTY && env.TERM !== "dumb" || !!env.CI), formatter = (open, close, replace = open) => (input) => {
|
|
25
20
|
let string = "" + input, index = string.indexOf(close, open.length);
|
|
26
21
|
return ~index ? open + replaceClose(string, close, replace, index) + close : open + string + close;
|
|
27
|
-
},
|
|
28
|
-
var replaceClose = /* @__PURE__ */ __name((string, close, replace, index) => {
|
|
22
|
+
}, replaceClose = (string, close, replace, index) => {
|
|
29
23
|
let result = "", cursor = 0;
|
|
30
|
-
do
|
|
31
|
-
result += string.substring(cursor, index) + replace;
|
|
32
|
-
|
|
33
|
-
index = string.indexOf(close, cursor);
|
|
34
|
-
} while (~index);
|
|
24
|
+
do
|
|
25
|
+
result += string.substring(cursor, index) + replace, cursor = index + close.length, index = string.indexOf(close, cursor);
|
|
26
|
+
while (~index);
|
|
35
27
|
return result + string.substring(cursor);
|
|
36
|
-
},
|
|
37
|
-
var createColors = /* @__PURE__ */ __name((enabled = isColorSupported) => {
|
|
28
|
+
}, createColors = (enabled = isColorSupported) => {
|
|
38
29
|
let f = enabled ? formatter : () => String;
|
|
39
30
|
return {
|
|
40
31
|
isColorSupported: enabled,
|
|
@@ -80,7 +71,7 @@ var require_picocolors = __commonJS({
|
|
|
80
71
|
bgCyanBright: f("\x1B[106m", "\x1B[49m"),
|
|
81
72
|
bgWhiteBright: f("\x1B[107m", "\x1B[49m")
|
|
82
73
|
};
|
|
83
|
-
}
|
|
74
|
+
};
|
|
84
75
|
module.exports = createColors();
|
|
85
76
|
module.exports.createColors = createColors;
|
|
86
77
|
}
|