@storybook/addon-vitest 10.5.0-alpha.5 → 10.5.0-alpha.7
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-OJSP3L5H.js → chunk-EJGRW64Z.js} +11 -7
- package/dist/_node-chunks/{chunk-747HXRNQ.js → chunk-KMNN4HCK.js} +9 -9
- package/dist/_node-chunks/{chunk-EWFNWSTE.js → chunk-NDKIW6Y7.js} +7 -7
- package/dist/_node-chunks/{chunk-34OWDYS2.js → chunk-OFJTD63J.js} +6 -6
- package/dist/_node-chunks/{chunk-5WTRKK6O.js → chunk-P3OSTOIF.js} +7 -7
- package/dist/_node-chunks/{chunk-Z7SFQDGG.js → chunk-SCPT342R.js} +7 -7
- package/dist/_node-chunks/{chunk-I5WWCPO2.js → chunk-SEGAFIJW.js} +6 -6
- package/dist/_node-chunks/{chunk-QSFPDLGA.js → chunk-VQJYHFKQ.js} +6 -6
- package/dist/_node-chunks/{vitest.config.3.2.template-ZEY74JFI.js → vitest.config.3.2.template-HURFO34B.js} +7 -7
- package/dist/_node-chunks/{vitest.config.4.template-5YMUUVPL.js → vitest.config.4.template-SUIIABCN.js} +7 -7
- package/dist/_node-chunks/{vitest.config.template-EOTRCT4G.js → vitest.config.template-DPGVDYP5.js} +7 -7
- package/dist/_node-chunks/{vitest.workspace.template-RDZ6747S.js → vitest.workspace.template-U7OMTZY4.js} +7 -7
- package/dist/constants.js +8 -8
- package/dist/node/coverage-reporter.js +9 -9
- package/dist/node/vitest.js +14 -14
- package/dist/postinstall.js +17 -17
- package/dist/preset.js +12 -12
- package/dist/vitest-plugin/global-setup.js +7 -7
- package/dist/vitest-plugin/index.js +11 -11
- package/dist/vitest-plugin/setup-file.js +20 -5
- package/package.json +4 -4
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_vjlasmp3qhl from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_vjlasmp3qhl from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_vjlasmp3qhl from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_vjlasmp3qhl.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_vjlasmp3qhl.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_vjlasmp3qhl.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -21,7 +21,11 @@ var __require = /* @__PURE__ */ ((x) => typeof require < "u" ? require : typeof
|
|
|
21
21
|
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
22
22
|
});
|
|
23
23
|
var __commonJS = (cb, mod) => function() {
|
|
24
|
-
|
|
24
|
+
try {
|
|
25
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
26
|
+
} catch (e) {
|
|
27
|
+
throw mod = 0, e;
|
|
28
|
+
}
|
|
25
29
|
};
|
|
26
30
|
var __copyProps = (to, from, except, desc) => {
|
|
27
31
|
if (from && typeof from == "object" || typeof from == "function")
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_vjlasmp3qhl from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_vjlasmp3qhl from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_vjlasmp3qhl from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_vjlasmp3qhl.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_vjlasmp3qhl.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_vjlasmp3qhl.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
13
|
require_picocolors
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-P3OSTOIF.js";
|
|
15
15
|
import {
|
|
16
16
|
ADDON_ID2 as ADDON_ID
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-SEGAFIJW.js";
|
|
18
18
|
import {
|
|
19
19
|
__toESM
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-EJGRW64Z.js";
|
|
21
21
|
|
|
22
22
|
// src/logger.ts
|
|
23
23
|
var import_picocolors = __toESM(require_picocolors(), 1);
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_vjlasmp3qhl from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_vjlasmp3qhl from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_vjlasmp3qhl from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_vjlasmp3qhl.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_vjlasmp3qhl.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_vjlasmp3qhl.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
13
|
__commonJS
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-EJGRW64Z.js";
|
|
15
15
|
|
|
16
16
|
// ../../../node_modules/semver/internal/constants.js
|
|
17
17
|
var require_constants = __commonJS({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_vjlasmp3qhl from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_vjlasmp3qhl from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_vjlasmp3qhl from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_vjlasmp3qhl.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_vjlasmp3qhl.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_vjlasmp3qhl.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_vjlasmp3qhl from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_vjlasmp3qhl from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_vjlasmp3qhl from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_vjlasmp3qhl.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_vjlasmp3qhl.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_vjlasmp3qhl.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
13
|
__commonJS
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-EJGRW64Z.js";
|
|
15
15
|
|
|
16
16
|
// ../../../node_modules/picocolors/picocolors.js
|
|
17
17
|
var require_picocolors = __commonJS({
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_vjlasmp3qhl from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_vjlasmp3qhl from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_vjlasmp3qhl from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_vjlasmp3qhl.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_vjlasmp3qhl.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_vjlasmp3qhl.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
13
|
__commonJS
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-EJGRW64Z.js";
|
|
15
15
|
|
|
16
16
|
// ../../../node_modules/ts-dedent/dist/index.js
|
|
17
17
|
var require_dist = __commonJS({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_vjlasmp3qhl from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_vjlasmp3qhl from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_vjlasmp3qhl from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_vjlasmp3qhl.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_vjlasmp3qhl.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_vjlasmp3qhl.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_vjlasmp3qhl from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_vjlasmp3qhl from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_vjlasmp3qhl from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_vjlasmp3qhl.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_vjlasmp3qhl.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_vjlasmp3qhl.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_vjlasmp3qhl from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_vjlasmp3qhl from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_vjlasmp3qhl from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_vjlasmp3qhl.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_vjlasmp3qhl.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_vjlasmp3qhl.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-EJGRW64Z.js";
|
|
13
13
|
|
|
14
14
|
// raw:../templates/vitest.config.3.2.template.ts
|
|
15
15
|
var vitest_config_3_2_template_default = `import path from 'node:path';
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_vjlasmp3qhl from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_vjlasmp3qhl from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_vjlasmp3qhl from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_vjlasmp3qhl.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_vjlasmp3qhl.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_vjlasmp3qhl.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-EJGRW64Z.js";
|
|
13
13
|
|
|
14
14
|
// raw:../templates/vitest.config.4.template.ts
|
|
15
15
|
var vitest_config_4_template_default = `import path from 'node:path';
|
package/dist/_node-chunks/{vitest.config.template-EOTRCT4G.js → vitest.config.template-DPGVDYP5.js}
RENAMED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_vjlasmp3qhl from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_vjlasmp3qhl from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_vjlasmp3qhl from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_vjlasmp3qhl.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_vjlasmp3qhl.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_vjlasmp3qhl.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-EJGRW64Z.js";
|
|
13
13
|
|
|
14
14
|
// raw:../templates/vitest.config.template.ts
|
|
15
15
|
var vitest_config_template_default = `import path from 'node:path';
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_vjlasmp3qhl from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_vjlasmp3qhl from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_vjlasmp3qhl from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_vjlasmp3qhl.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_vjlasmp3qhl.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_vjlasmp3qhl.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-EJGRW64Z.js";
|
|
13
13
|
|
|
14
14
|
// raw:../templates/vitest.workspace.template.ts
|
|
15
15
|
var vitest_workspace_template_default = `import path from 'node:path';
|
package/dist/constants.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_vjlasmp3qhl from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_vjlasmp3qhl from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_vjlasmp3qhl from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_vjlasmp3qhl.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_vjlasmp3qhl.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_vjlasmp3qhl.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -32,8 +32,8 @@ import {
|
|
|
32
32
|
TRIGGER_TEST_RUN_RESPONSE,
|
|
33
33
|
TUTORIAL_VIDEO_LINK,
|
|
34
34
|
storeOptions
|
|
35
|
-
} from "./_node-chunks/chunk-
|
|
36
|
-
import "./_node-chunks/chunk-
|
|
35
|
+
} from "./_node-chunks/chunk-SEGAFIJW.js";
|
|
36
|
+
import "./_node-chunks/chunk-EJGRW64Z.js";
|
|
37
37
|
export {
|
|
38
38
|
ADDON_ID as A11Y_ADDON_ID,
|
|
39
39
|
PANEL_ID2 as A11Y_PANEL_ID,
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_vjlasmp3qhl from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_vjlasmp3qhl from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_vjlasmp3qhl from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_vjlasmp3qhl.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_vjlasmp3qhl.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_vjlasmp3qhl.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
13
|
require_gte
|
|
14
|
-
} from "../_node-chunks/chunk-
|
|
14
|
+
} from "../_node-chunks/chunk-NDKIW6Y7.js";
|
|
15
15
|
import {
|
|
16
16
|
__commonJS,
|
|
17
17
|
__require,
|
|
18
18
|
__toESM
|
|
19
|
-
} from "../_node-chunks/chunk-
|
|
19
|
+
} from "../_node-chunks/chunk-EJGRW64Z.js";
|
|
20
20
|
|
|
21
21
|
// ../../../node_modules/istanbul-lib-report/node_modules/make-dir/index.js
|
|
22
22
|
var require_make_dir = __commonJS({
|
|
@@ -1289,7 +1289,7 @@ var require_context = __commonJS({
|
|
|
1289
1289
|
var require_report_base = __commonJS({
|
|
1290
1290
|
"../../../node_modules/istanbul-lib-report/lib/report-base.js"(exports, module) {
|
|
1291
1291
|
"use strict";
|
|
1292
|
-
var _summarizer = Symbol("ReportBase.#summarizer"), ReportBase2 = class {
|
|
1292
|
+
var _summarizer = /* @__PURE__ */ Symbol("ReportBase.#summarizer"), ReportBase2 = class {
|
|
1293
1293
|
constructor(opts = {}) {
|
|
1294
1294
|
this[_summarizer] = opts.summarizer;
|
|
1295
1295
|
}
|
package/dist/node/vitest.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_vjlasmp3qhl from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_vjlasmp3qhl from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_vjlasmp3qhl from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_vjlasmp3qhl.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_vjlasmp3qhl.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_vjlasmp3qhl.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -12,19 +12,19 @@ var require = CJS_COMPAT_NODE_MODULE_fg1f9eu8mhq.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
errorToErrorLike,
|
|
14
14
|
log
|
|
15
|
-
} from "../_node-chunks/chunk-
|
|
15
|
+
} from "../_node-chunks/chunk-KMNN4HCK.js";
|
|
16
16
|
import {
|
|
17
17
|
any,
|
|
18
18
|
up
|
|
19
|
-
} from "../_node-chunks/chunk-
|
|
20
|
-
import "../_node-chunks/chunk-
|
|
19
|
+
} from "../_node-chunks/chunk-VQJYHFKQ.js";
|
|
20
|
+
import "../_node-chunks/chunk-P3OSTOIF.js";
|
|
21
21
|
import {
|
|
22
22
|
dirname,
|
|
23
23
|
join,
|
|
24
24
|
normalize,
|
|
25
25
|
path,
|
|
26
26
|
resolve
|
|
27
|
-
} from "../_node-chunks/chunk-
|
|
27
|
+
} from "../_node-chunks/chunk-OFJTD63J.js";
|
|
28
28
|
import {
|
|
29
29
|
ADDON_ID2 as ADDON_ID,
|
|
30
30
|
COVERAGE_DIRECTORY,
|
|
@@ -32,8 +32,8 @@ import {
|
|
|
32
32
|
STATUS_TYPE_ID_COMPONENT_TEST,
|
|
33
33
|
STORYBOOK_TEST_PROVIDE_KEY,
|
|
34
34
|
storeOptions
|
|
35
|
-
} from "../_node-chunks/chunk-
|
|
36
|
-
import "../_node-chunks/chunk-
|
|
35
|
+
} from "../_node-chunks/chunk-SEGAFIJW.js";
|
|
36
|
+
import "../_node-chunks/chunk-EJGRW64Z.js";
|
|
37
37
|
|
|
38
38
|
// src/node/vitest.ts
|
|
39
39
|
import process2 from "node:process";
|
|
@@ -81,7 +81,7 @@ function partialImpl(func, placeholder, ...partialArgs) {
|
|
|
81
81
|
};
|
|
82
82
|
return func.prototype && (partialed.prototype = Object.create(func.prototype)), partialed;
|
|
83
83
|
}
|
|
84
|
-
var placeholderSymbol = Symbol("partial.placeholder");
|
|
84
|
+
var placeholderSymbol = /* @__PURE__ */ Symbol("partial.placeholder");
|
|
85
85
|
partial.placeholder = placeholderSymbol;
|
|
86
86
|
|
|
87
87
|
// ../../../node_modules/es-toolkit/dist/function/partialRight.mjs
|
|
@@ -95,7 +95,7 @@ function partialRightImpl(func, placeholder, ...partialArgs) {
|
|
|
95
95
|
};
|
|
96
96
|
return func.prototype && (partialedRight.prototype = Object.create(func.prototype)), partialedRight;
|
|
97
97
|
}
|
|
98
|
-
var placeholderSymbol2 = Symbol("partialRight.placeholder");
|
|
98
|
+
var placeholderSymbol2 = /* @__PURE__ */ Symbol("partialRight.placeholder");
|
|
99
99
|
partialRight.placeholder = placeholderSymbol2;
|
|
100
100
|
|
|
101
101
|
// ../../../node_modules/es-toolkit/dist/function/retry.mjs
|
package/dist/postinstall.js
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_vjlasmp3qhl from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_vjlasmp3qhl from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_vjlasmp3qhl from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_vjlasmp3qhl.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_vjlasmp3qhl.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_vjlasmp3qhl.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
13
|
any
|
|
14
|
-
} from "./_node-chunks/chunk-
|
|
14
|
+
} from "./_node-chunks/chunk-VQJYHFKQ.js";
|
|
15
15
|
import {
|
|
16
16
|
require_dist
|
|
17
|
-
} from "./_node-chunks/chunk-
|
|
17
|
+
} from "./_node-chunks/chunk-SCPT342R.js";
|
|
18
18
|
import {
|
|
19
19
|
dirname,
|
|
20
20
|
normalize,
|
|
21
21
|
relative,
|
|
22
22
|
resolve
|
|
23
|
-
} from "./_node-chunks/chunk-
|
|
23
|
+
} from "./_node-chunks/chunk-OFJTD63J.js";
|
|
24
24
|
import {
|
|
25
25
|
DOCUMENTATION_LINK
|
|
26
|
-
} from "./_node-chunks/chunk-
|
|
26
|
+
} from "./_node-chunks/chunk-SEGAFIJW.js";
|
|
27
27
|
import {
|
|
28
28
|
require_compare,
|
|
29
29
|
require_constants,
|
|
@@ -33,11 +33,11 @@ import {
|
|
|
33
33
|
require_parse_options,
|
|
34
34
|
require_re,
|
|
35
35
|
require_semver
|
|
36
|
-
} from "./_node-chunks/chunk-
|
|
36
|
+
} from "./_node-chunks/chunk-NDKIW6Y7.js";
|
|
37
37
|
import {
|
|
38
38
|
__commonJS,
|
|
39
39
|
__toESM
|
|
40
|
-
} from "./_node-chunks/chunk-
|
|
40
|
+
} from "./_node-chunks/chunk-EJGRW64Z.js";
|
|
41
41
|
|
|
42
42
|
// ../../../node_modules/semver/functions/parse.js
|
|
43
43
|
var require_parse = __commonJS({
|
|
@@ -486,7 +486,7 @@ var require_range = __commonJS({
|
|
|
486
486
|
var require_comparator = __commonJS({
|
|
487
487
|
"../../../node_modules/semver/classes/comparator.js"(exports, module) {
|
|
488
488
|
"use strict";
|
|
489
|
-
var ANY = Symbol("SemVer ANY"), Comparator = class _Comparator {
|
|
489
|
+
var ANY = /* @__PURE__ */ Symbol("SemVer ANY"), Comparator = class _Comparator {
|
|
490
490
|
static get ANY() {
|
|
491
491
|
return ANY;
|
|
492
492
|
}
|
|
@@ -902,13 +902,13 @@ import {
|
|
|
902
902
|
async function getTemplatePath(name) {
|
|
903
903
|
switch (name) {
|
|
904
904
|
case "vitest.config.template":
|
|
905
|
-
return import("./_node-chunks/vitest.config.template-
|
|
905
|
+
return import("./_node-chunks/vitest.config.template-DPGVDYP5.js");
|
|
906
906
|
case "vitest.config.4.template":
|
|
907
|
-
return import("./_node-chunks/vitest.config.4.template-
|
|
907
|
+
return import("./_node-chunks/vitest.config.4.template-SUIIABCN.js");
|
|
908
908
|
case "vitest.config.3.2.template":
|
|
909
|
-
return import("./_node-chunks/vitest.config.3.2.template-
|
|
909
|
+
return import("./_node-chunks/vitest.config.3.2.template-HURFO34B.js");
|
|
910
910
|
case "vitest.workspace.template":
|
|
911
|
-
return import("./_node-chunks/vitest.workspace.template-
|
|
911
|
+
return import("./_node-chunks/vitest.workspace.template-U7OMTZY4.js");
|
|
912
912
|
default:
|
|
913
913
|
throw new Error(`Unknown template: ${name}`);
|
|
914
914
|
}
|
package/dist/preset.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_vjlasmp3qhl from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_vjlasmp3qhl from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_vjlasmp3qhl from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_vjlasmp3qhl.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_vjlasmp3qhl.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_vjlasmp3qhl.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -13,16 +13,16 @@ import {
|
|
|
13
13
|
errorToErrorLike,
|
|
14
14
|
log,
|
|
15
15
|
noop
|
|
16
|
-
} from "./_node-chunks/chunk-
|
|
16
|
+
} from "./_node-chunks/chunk-KMNN4HCK.js";
|
|
17
17
|
import {
|
|
18
18
|
require_picocolors
|
|
19
|
-
} from "./_node-chunks/chunk-
|
|
19
|
+
} from "./_node-chunks/chunk-P3OSTOIF.js";
|
|
20
20
|
import {
|
|
21
21
|
require_dist
|
|
22
|
-
} from "./_node-chunks/chunk-
|
|
22
|
+
} from "./_node-chunks/chunk-SCPT342R.js";
|
|
23
23
|
import {
|
|
24
24
|
normalize
|
|
25
|
-
} from "./_node-chunks/chunk-
|
|
25
|
+
} from "./_node-chunks/chunk-OFJTD63J.js";
|
|
26
26
|
import {
|
|
27
27
|
ADDON_ID2 as ADDON_ID,
|
|
28
28
|
COVERAGE_DIRECTORY,
|
|
@@ -33,10 +33,10 @@ import {
|
|
|
33
33
|
TRIGGER_TEST_RUN_REQUEST,
|
|
34
34
|
TRIGGER_TEST_RUN_RESPONSE,
|
|
35
35
|
storeOptions
|
|
36
|
-
} from "./_node-chunks/chunk-
|
|
36
|
+
} from "./_node-chunks/chunk-SEGAFIJW.js";
|
|
37
37
|
import {
|
|
38
38
|
__toESM
|
|
39
|
-
} from "./_node-chunks/chunk-
|
|
39
|
+
} from "./_node-chunks/chunk-EJGRW64Z.js";
|
|
40
40
|
|
|
41
41
|
// src/preset.ts
|
|
42
42
|
import { mkdir } from "node:fs/promises";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_vjlasmp3qhl from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_vjlasmp3qhl from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_vjlasmp3qhl from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_vjlasmp3qhl.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_vjlasmp3qhl.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_vjlasmp3qhl.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
__commonJS,
|
|
14
14
|
__require,
|
|
15
15
|
__toESM
|
|
16
|
-
} from "../_node-chunks/chunk-
|
|
16
|
+
} from "../_node-chunks/chunk-EJGRW64Z.js";
|
|
17
17
|
|
|
18
18
|
// ../../../node_modules/tree-kill/index.js
|
|
19
19
|
var require_tree_kill = __commonJS({
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_vjlasmp3qhl from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_vjlasmp3qhl from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_vjlasmp3qhl from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_vjlasmp3qhl.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_vjlasmp3qhl.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_vjlasmp3qhl.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
13
|
require_picocolors
|
|
14
|
-
} from "../_node-chunks/chunk-
|
|
14
|
+
} from "../_node-chunks/chunk-P3OSTOIF.js";
|
|
15
15
|
import {
|
|
16
16
|
require_dist
|
|
17
|
-
} from "../_node-chunks/chunk-
|
|
17
|
+
} from "../_node-chunks/chunk-SCPT342R.js";
|
|
18
18
|
import {
|
|
19
19
|
dirname,
|
|
20
20
|
join,
|
|
@@ -23,16 +23,16 @@ import {
|
|
|
23
23
|
relative,
|
|
24
24
|
resolve,
|
|
25
25
|
sep
|
|
26
|
-
} from "../_node-chunks/chunk-
|
|
26
|
+
} from "../_node-chunks/chunk-OFJTD63J.js";
|
|
27
27
|
import {
|
|
28
28
|
STORYBOOK_CORE_GHOST_STORIES_PROVIDE_KEY,
|
|
29
29
|
STORYBOOK_CORE_RENDER_ANALYSIS_PROVIDE_KEY
|
|
30
|
-
} from "../_node-chunks/chunk-
|
|
30
|
+
} from "../_node-chunks/chunk-SEGAFIJW.js";
|
|
31
31
|
import {
|
|
32
32
|
__commonJS,
|
|
33
33
|
__require,
|
|
34
34
|
__toESM
|
|
35
|
-
} from "../_node-chunks/chunk-
|
|
35
|
+
} from "../_node-chunks/chunk-EJGRW64Z.js";
|
|
36
36
|
|
|
37
37
|
// ../../../node_modules/braces/lib/utils.js
|
|
38
38
|
var require_utils = __commonJS({
|
|
@@ -5,9 +5,21 @@ import {
|
|
|
5
5
|
// src/vitest-plugin/setup-file.ts
|
|
6
6
|
import { afterEach, beforeAll, vi } from "vitest";
|
|
7
7
|
import { Channel } from "storybook/internal/channels";
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
import { getChannel, setChannel } from "storybook/internal/channels";
|
|
9
|
+
var defaultChannel = null, initTransport = () => {
|
|
10
|
+
let existing = getChannel();
|
|
11
|
+
if (existing) {
|
|
12
|
+
defaultChannel ??= existing;
|
|
13
|
+
return;
|
|
14
|
+
}
|
|
15
|
+
let transport = { setHandler: vi.fn(), send: vi.fn() }, channel = new Channel({ transport });
|
|
16
|
+
defaultChannel = channel, setChannel(channel);
|
|
17
|
+
}, restoreDefaultChannel = () => {
|
|
18
|
+
if (!defaultChannel) {
|
|
19
|
+
initTransport();
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
getChannel() !== defaultChannel && setChannel(defaultChannel);
|
|
11
23
|
}, modifyErrorMessage = ({ task }) => {
|
|
12
24
|
let meta = task.meta;
|
|
13
25
|
if (task.type === "test" && task.result?.state === "fail" && meta.storyId && task.result.errors?.[0]) {
|
|
@@ -23,8 +35,11 @@ beforeAll(() => {
|
|
|
23
35
|
if (globalThis.globalProjectAnnotations)
|
|
24
36
|
return globalThis.globalProjectAnnotations.beforeAll();
|
|
25
37
|
});
|
|
26
|
-
afterEach(
|
|
38
|
+
afterEach((ctx) => {
|
|
39
|
+
restoreDefaultChannel(), modifyErrorMessage({ task: ctx.task });
|
|
40
|
+
});
|
|
27
41
|
export {
|
|
28
42
|
initTransport,
|
|
29
|
-
modifyErrorMessage
|
|
43
|
+
modifyErrorMessage,
|
|
44
|
+
restoreDefaultChannel
|
|
30
45
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/addon-vitest",
|
|
3
|
-
"version": "10.5.0-alpha.
|
|
3
|
+
"version": "10.5.0-alpha.7",
|
|
4
4
|
"description": "Storybook Vitest addon: Blazing fast component testing using stories",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook",
|
|
@@ -82,8 +82,8 @@
|
|
|
82
82
|
"@storybook/icons": "^2.0.2"
|
|
83
83
|
},
|
|
84
84
|
"devDependencies": {
|
|
85
|
-
"@storybook/addon-a11y": "10.5.0-alpha.
|
|
86
|
-
"@storybook/builder-vite": "10.5.0-alpha.
|
|
85
|
+
"@storybook/addon-a11y": "10.5.0-alpha.7",
|
|
86
|
+
"@storybook/builder-vite": "10.5.0-alpha.7",
|
|
87
87
|
"@types/istanbul-lib-report": "^3.0.3",
|
|
88
88
|
"@types/micromatch": "^4.0.0",
|
|
89
89
|
"@types/node": "^22.19.1",
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
"@vitest/browser": "^3.0.0 || ^4.0.0",
|
|
112
112
|
"@vitest/browser-playwright": "^4.0.0",
|
|
113
113
|
"@vitest/runner": "^3.0.0 || ^4.0.0",
|
|
114
|
-
"storybook": "^10.5.0-alpha.
|
|
114
|
+
"storybook": "^10.5.0-alpha.7",
|
|
115
115
|
"vitest": "^3.0.0 || ^4.0.0"
|
|
116
116
|
},
|
|
117
117
|
"peerDependenciesMeta": {
|