@storybook/addon-vitest 10.3.3 → 10.3.4
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-RPXAXMRB.js → chunk-7HNB5W2Z.js} +6 -6
- package/dist/_node-chunks/{chunk-SOYYQXDN.js → chunk-DCADB5BI.js} +7 -7
- package/dist/_node-chunks/{chunk-OMN5RMAO.js → chunk-HFCDUWQD.js} +6 -6
- package/dist/_node-chunks/{chunk-65GB4V3J.js → chunk-KS57WJVQ.js} +9 -9
- package/dist/_node-chunks/{chunk-2R462NIP.js → chunk-KZFGSABW.js} +7 -7
- package/dist/_node-chunks/{chunk-LS3BTHYS.js → chunk-PNAYVBQ6.js} +6 -6
- package/dist/_node-chunks/{chunk-ZUFKVVHZ.js → chunk-SGRNOCCG.js} +6 -6
- package/dist/_node-chunks/{chunk-HQMHJHT7.js → chunk-STW33YZB.js} +7 -7
- package/dist/_node-chunks/{vitest.config-ZYJXB2RL.js → vitest.config-KMFSIDBY.js} +7 -7
- package/dist/_node-chunks/{vitest.config.3.2-A54WIPT5.js → vitest.config.3.2-LAHBEY53.js} +7 -7
- package/dist/_node-chunks/{vitest.config.4-HZ2OMWNA.js → vitest.config.4-FONTDJZC.js} +7 -7
- package/dist/_node-chunks/{vitest.workspace-RCBHDJAW.js → vitest.workspace-Z2V6BVEI.js} +7 -7
- package/dist/constants.js +8 -8
- package/dist/node/coverage-reporter.js +8 -8
- package/dist/node/vitest.js +12 -12
- package/dist/postinstall.js +16 -16
- package/dist/preset.js +12 -12
- package/dist/vitest-plugin/global-setup.js +7 -7
- package/dist/vitest-plugin/index.js +15 -19
- package/package.json +3 -3
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_93yk2j72xw4 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_93yk2j72xw4 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_93yk2j72xw4 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_93yk2j72xw4.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_93yk2j72xw4.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_93yk2j72xw4.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_93yk2j72xw4 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_93yk2j72xw4 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_93yk2j72xw4 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_93yk2j72xw4.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_93yk2j72xw4.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_93yk2j72xw4.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-SGRNOCCG.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_93yk2j72xw4 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_93yk2j72xw4 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_93yk2j72xw4 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_93yk2j72xw4.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_93yk2j72xw4.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_93yk2j72xw4.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_93yk2j72xw4 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_93yk2j72xw4 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_93yk2j72xw4 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_93yk2j72xw4.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_93yk2j72xw4.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_93yk2j72xw4.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
|
ADDON_ID2 as ADDON_ID
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-PNAYVBQ6.js";
|
|
15
15
|
import {
|
|
16
16
|
require_picocolors
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-STW33YZB.js";
|
|
18
18
|
import {
|
|
19
19
|
__toESM
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-SGRNOCCG.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_93yk2j72xw4 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_93yk2j72xw4 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_93yk2j72xw4 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_93yk2j72xw4.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_93yk2j72xw4.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_93yk2j72xw4.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-SGRNOCCG.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_93yk2j72xw4 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_93yk2j72xw4 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_93yk2j72xw4 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_93yk2j72xw4.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_93yk2j72xw4.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_93yk2j72xw4.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_93yk2j72xw4 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_93yk2j72xw4 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_93yk2j72xw4 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_93yk2j72xw4.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_93yk2j72xw4.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_93yk2j72xw4.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_93yk2j72xw4 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_93yk2j72xw4 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_93yk2j72xw4 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_93yk2j72xw4.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_93yk2j72xw4.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_93yk2j72xw4.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-SGRNOCCG.js";
|
|
15
15
|
|
|
16
16
|
// ../../../node_modules/picocolors/picocolors.js
|
|
17
17
|
var require_picocolors = __commonJS({
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_93yk2j72xw4 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_93yk2j72xw4 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_93yk2j72xw4 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_93yk2j72xw4.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_93yk2j72xw4.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_93yk2j72xw4.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-SGRNOCCG.js";
|
|
13
13
|
|
|
14
14
|
// raw:../templates/vitest.config.template
|
|
15
15
|
var vitest_config_default = `import path from 'node:path';
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_93yk2j72xw4 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_93yk2j72xw4 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_93yk2j72xw4 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_93yk2j72xw4.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_93yk2j72xw4.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_93yk2j72xw4.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-SGRNOCCG.js";
|
|
13
13
|
|
|
14
14
|
// raw:../templates/vitest.config.3.2.template
|
|
15
15
|
var vitest_config_3_2_default = `import path from 'node:path';
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_93yk2j72xw4 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_93yk2j72xw4 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_93yk2j72xw4 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_93yk2j72xw4.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_93yk2j72xw4.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_93yk2j72xw4.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-SGRNOCCG.js";
|
|
13
13
|
|
|
14
14
|
// raw:../templates/vitest.config.4.template
|
|
15
15
|
var vitest_config_4_default = `import path from 'node:path';
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_93yk2j72xw4 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_93yk2j72xw4 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_93yk2j72xw4 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_93yk2j72xw4.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_93yk2j72xw4.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_93yk2j72xw4.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-SGRNOCCG.js";
|
|
13
13
|
|
|
14
14
|
// raw:../templates/vitest.workspace.template
|
|
15
15
|
var vitest_workspace_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_93yk2j72xw4 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_93yk2j72xw4 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_93yk2j72xw4 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_93yk2j72xw4.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_93yk2j72xw4.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_93yk2j72xw4.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -29,8 +29,8 @@ import {
|
|
|
29
29
|
TRIGGER_TEST_RUN_RESPONSE,
|
|
30
30
|
TUTORIAL_VIDEO_LINK,
|
|
31
31
|
storeOptions
|
|
32
|
-
} from "./_node-chunks/chunk-
|
|
33
|
-
import "./_node-chunks/chunk-
|
|
32
|
+
} from "./_node-chunks/chunk-PNAYVBQ6.js";
|
|
33
|
+
import "./_node-chunks/chunk-SGRNOCCG.js";
|
|
34
34
|
export {
|
|
35
35
|
ADDON_ID as A11Y_ADDON_ID,
|
|
36
36
|
PANEL_ID2 as A11Y_PANEL_ID,
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_93yk2j72xw4 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_93yk2j72xw4 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_93yk2j72xw4 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_93yk2j72xw4.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_93yk2j72xw4.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_93yk2j72xw4.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-DCADB5BI.js";
|
|
15
15
|
import {
|
|
16
16
|
__commonJS,
|
|
17
17
|
__require,
|
|
18
18
|
__toESM
|
|
19
|
-
} from "../_node-chunks/chunk-
|
|
19
|
+
} from "../_node-chunks/chunk-SGRNOCCG.js";
|
|
20
20
|
|
|
21
21
|
// ../../../node_modules/istanbul-lib-report/node_modules/make-dir/index.js
|
|
22
22
|
var require_make_dir = __commonJS({
|
package/dist/node/vitest.js
CHANGED
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_93yk2j72xw4 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_93yk2j72xw4 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_93yk2j72xw4 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_93yk2j72xw4.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_93yk2j72xw4.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_93yk2j72xw4.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
|
log
|
|
14
|
-
} from "../_node-chunks/chunk-
|
|
14
|
+
} from "../_node-chunks/chunk-KS57WJVQ.js";
|
|
15
15
|
import {
|
|
16
16
|
any,
|
|
17
17
|
up
|
|
18
|
-
} from "../_node-chunks/chunk-
|
|
18
|
+
} from "../_node-chunks/chunk-7HNB5W2Z.js";
|
|
19
19
|
import {
|
|
20
20
|
ADDON_ID2 as ADDON_ID,
|
|
21
21
|
COVERAGE_DIRECTORY,
|
|
22
22
|
STATUS_TYPE_ID_A11Y,
|
|
23
23
|
STATUS_TYPE_ID_COMPONENT_TEST,
|
|
24
24
|
storeOptions
|
|
25
|
-
} from "../_node-chunks/chunk-
|
|
26
|
-
import "../_node-chunks/chunk-
|
|
25
|
+
} from "../_node-chunks/chunk-PNAYVBQ6.js";
|
|
26
|
+
import "../_node-chunks/chunk-STW33YZB.js";
|
|
27
27
|
import {
|
|
28
28
|
dirname,
|
|
29
29
|
join,
|
|
30
30
|
normalize,
|
|
31
31
|
path,
|
|
32
32
|
resolve
|
|
33
|
-
} from "../_node-chunks/chunk-
|
|
34
|
-
import "../_node-chunks/chunk-
|
|
33
|
+
} from "../_node-chunks/chunk-HFCDUWQD.js";
|
|
34
|
+
import "../_node-chunks/chunk-SGRNOCCG.js";
|
|
35
35
|
|
|
36
36
|
// src/node/vitest.ts
|
|
37
37
|
import process2 from "node:process";
|
package/dist/postinstall.js
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_93yk2j72xw4 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_93yk2j72xw4 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_93yk2j72xw4 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_93yk2j72xw4.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_93yk2j72xw4.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_93yk2j72xw4.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-7HNB5W2Z.js";
|
|
15
15
|
import {
|
|
16
16
|
DOCUMENTATION_LINK
|
|
17
|
-
} from "./_node-chunks/chunk-
|
|
17
|
+
} from "./_node-chunks/chunk-PNAYVBQ6.js";
|
|
18
18
|
import {
|
|
19
19
|
require_dist
|
|
20
|
-
} from "./_node-chunks/chunk-
|
|
20
|
+
} from "./_node-chunks/chunk-KZFGSABW.js";
|
|
21
21
|
import {
|
|
22
22
|
dirname,
|
|
23
23
|
normalize,
|
|
24
24
|
relative,
|
|
25
25
|
resolve
|
|
26
|
-
} from "./_node-chunks/chunk-
|
|
26
|
+
} from "./_node-chunks/chunk-HFCDUWQD.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-DCADB5BI.js";
|
|
37
37
|
import {
|
|
38
38
|
__commonJS,
|
|
39
39
|
__toESM
|
|
40
|
-
} from "./_node-chunks/chunk-
|
|
40
|
+
} from "./_node-chunks/chunk-SGRNOCCG.js";
|
|
41
41
|
|
|
42
42
|
// ../../../node_modules/semver/functions/parse.js
|
|
43
43
|
var require_parse = __commonJS({
|
|
@@ -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-
|
|
905
|
+
return import("./_node-chunks/vitest.config-KMFSIDBY.js");
|
|
906
906
|
case "vitest.config.4.template":
|
|
907
|
-
return import("./_node-chunks/vitest.config.4-
|
|
907
|
+
return import("./_node-chunks/vitest.config.4-FONTDJZC.js");
|
|
908
908
|
case "vitest.config.3.2.template":
|
|
909
|
-
return import("./_node-chunks/vitest.config.3.2-
|
|
909
|
+
return import("./_node-chunks/vitest.config.3.2-LAHBEY53.js");
|
|
910
910
|
case "vitest.workspace.template":
|
|
911
|
-
return import("./_node-chunks/vitest.workspace-
|
|
911
|
+
return import("./_node-chunks/vitest.workspace-Z2V6BVEI.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_93yk2j72xw4 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_93yk2j72xw4 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_93yk2j72xw4 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_93yk2j72xw4.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_93yk2j72xw4.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_93yk2j72xw4.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -12,7 +12,7 @@ var require = CJS_COMPAT_NODE_MODULE_plmkhzyfcj.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
log,
|
|
14
14
|
noop
|
|
15
|
-
} from "./_node-chunks/chunk-
|
|
15
|
+
} from "./_node-chunks/chunk-KS57WJVQ.js";
|
|
16
16
|
import {
|
|
17
17
|
ADDON_ID2 as ADDON_ID,
|
|
18
18
|
COVERAGE_DIRECTORY,
|
|
@@ -23,19 +23,19 @@ import {
|
|
|
23
23
|
TRIGGER_TEST_RUN_REQUEST,
|
|
24
24
|
TRIGGER_TEST_RUN_RESPONSE,
|
|
25
25
|
storeOptions
|
|
26
|
-
} from "./_node-chunks/chunk-
|
|
26
|
+
} from "./_node-chunks/chunk-PNAYVBQ6.js";
|
|
27
27
|
import {
|
|
28
28
|
require_picocolors
|
|
29
|
-
} from "./_node-chunks/chunk-
|
|
29
|
+
} from "./_node-chunks/chunk-STW33YZB.js";
|
|
30
30
|
import {
|
|
31
31
|
require_dist
|
|
32
|
-
} from "./_node-chunks/chunk-
|
|
32
|
+
} from "./_node-chunks/chunk-KZFGSABW.js";
|
|
33
33
|
import {
|
|
34
34
|
normalize
|
|
35
|
-
} from "./_node-chunks/chunk-
|
|
35
|
+
} from "./_node-chunks/chunk-HFCDUWQD.js";
|
|
36
36
|
import {
|
|
37
37
|
__toESM
|
|
38
|
-
} from "./_node-chunks/chunk-
|
|
38
|
+
} from "./_node-chunks/chunk-SGRNOCCG.js";
|
|
39
39
|
|
|
40
40
|
// src/preset.ts
|
|
41
41
|
import { mkdir } from "node:fs/promises";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_93yk2j72xw4 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_93yk2j72xw4 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_93yk2j72xw4 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_93yk2j72xw4.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_93yk2j72xw4.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_93yk2j72xw4.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-SGRNOCCG.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_93yk2j72xw4 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_93yk2j72xw4 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_93yk2j72xw4 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_93yk2j72xw4.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_93yk2j72xw4.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_93yk2j72xw4.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-STW33YZB.js";
|
|
15
15
|
import {
|
|
16
16
|
require_dist
|
|
17
|
-
} from "../_node-chunks/chunk-
|
|
17
|
+
} from "../_node-chunks/chunk-KZFGSABW.js";
|
|
18
18
|
import {
|
|
19
19
|
dirname,
|
|
20
20
|
join,
|
|
@@ -23,12 +23,12 @@ import {
|
|
|
23
23
|
relative,
|
|
24
24
|
resolve,
|
|
25
25
|
sep
|
|
26
|
-
} from "../_node-chunks/chunk-
|
|
26
|
+
} from "../_node-chunks/chunk-HFCDUWQD.js";
|
|
27
27
|
import {
|
|
28
28
|
__commonJS,
|
|
29
29
|
__require,
|
|
30
30
|
__toESM
|
|
31
|
-
} from "../_node-chunks/chunk-
|
|
31
|
+
} from "../_node-chunks/chunk-SGRNOCCG.js";
|
|
32
32
|
|
|
33
33
|
// ../../../node_modules/braces/lib/utils.js
|
|
34
34
|
var require_utils = __commonJS({
|
|
@@ -2328,7 +2328,6 @@ import { mergeConfig } from "vitest/config";
|
|
|
2328
2328
|
import {
|
|
2329
2329
|
DEFAULT_FILES_PATTERN,
|
|
2330
2330
|
getInterpretedFile,
|
|
2331
|
-
loadPreviewOrConfigFile,
|
|
2332
2331
|
normalizeStories,
|
|
2333
2332
|
optionalEnvToBoolean,
|
|
2334
2333
|
resolvePathInStorybookCache,
|
|
@@ -2342,7 +2341,6 @@ import {
|
|
|
2342
2341
|
} from "storybook/internal/core-server";
|
|
2343
2342
|
import {
|
|
2344
2343
|
componentTransform,
|
|
2345
|
-
isCsfFactoryPreview,
|
|
2346
2344
|
readConfig,
|
|
2347
2345
|
vitestTransform
|
|
2348
2346
|
} from "storybook/internal/csf-tools";
|
|
@@ -2365,7 +2363,7 @@ import { CLI_COLORS, logger } from "storybook/internal/node-logger";
|
|
|
2365
2363
|
var import_ts_dedent = __toESM(require_dist(), 1), hasLoggedDeprecationWarning = !1, logBoxOnce = (message) => {
|
|
2366
2364
|
hasLoggedDeprecationWarning || (logger.logBox(message), hasLoggedDeprecationWarning = !0);
|
|
2367
2365
|
};
|
|
2368
|
-
async function requiresProjectAnnotations(testConfig, finalOptions
|
|
2366
|
+
async function requiresProjectAnnotations(testConfig, finalOptions) {
|
|
2369
2367
|
return (Array.isArray(testConfig?.setupFiles) ? testConfig.setupFiles : typeof testConfig?.setupFiles == "string" ? [testConfig.setupFiles] : []).map((setupFile) => {
|
|
2370
2368
|
try {
|
|
2371
2369
|
return resolve(finalOptions.vitestRoot, setupFile);
|
|
@@ -2376,7 +2374,7 @@ async function requiresProjectAnnotations(testConfig, finalOptions, isCSF4) {
|
|
|
2376
2374
|
${CLI_COLORS.info("Info")}: Found a setup file with "setProjectAnnotations".
|
|
2377
2375
|
Skipping automatic provisioning of preview annotations to avoid conflicts. Since Storybook 10.3, "@storybook/addon-vitest" applies these automatically.
|
|
2378
2376
|
You can safely remove the "setProjectAnnotations" call from your setup file, or remove the file entirely if you don't have custom code there.
|
|
2379
|
-
`), !1) : !
|
|
2377
|
+
`), !1) : !0;
|
|
2380
2378
|
}
|
|
2381
2379
|
|
|
2382
2380
|
// src/vitest-plugin/index.ts
|
|
@@ -2515,14 +2513,12 @@ var WORKING_DIR = process.cwd(), defaultOptions = {
|
|
|
2515
2513
|
return typeof story == "string" ? storyPath = story : storyPath = `${story.directory}/${story.files ?? DEFAULT_FILES_PATTERN}`, join(finalOptions.configDir, storyPath);
|
|
2516
2514
|
}).map((story) => relative(finalOptions.vitestRoot, story));
|
|
2517
2515
|
finalOptions.includeStories = includeStories;
|
|
2518
|
-
let projectId = oneWayHash(finalOptions.configDir),
|
|
2516
|
+
let projectId = oneWayHash(finalOptions.configDir), internalSetupFiles = [
|
|
2519
2517
|
"@storybook/addon-vitest/internal/setup-file",
|
|
2520
2518
|
await requiresProjectAnnotations(
|
|
2521
2519
|
nonMutableInputConfig.test,
|
|
2522
|
-
finalOptions
|
|
2523
|
-
|
|
2524
|
-
) && "@storybook/addon-vitest/internal/setup-file-with-project-annotations",
|
|
2525
|
-
isCSF4 && previewOrConfigFile
|
|
2520
|
+
finalOptions
|
|
2521
|
+
) && "@storybook/addon-vitest/internal/setup-file-with-project-annotations"
|
|
2526
2522
|
].filter(Boolean).map((filePath) => fileURLToPath(import.meta.resolve(filePath))), baseConfig = {
|
|
2527
2523
|
cacheDir: resolvePathInStorybookCache("sb-vitest", projectId),
|
|
2528
2524
|
test: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/addon-vitest",
|
|
3
|
-
"version": "10.3.
|
|
3
|
+
"version": "10.3.4",
|
|
4
4
|
"description": "Storybook Vitest addon: Blazing fast component testing using stories",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook",
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"@storybook/icons": "^2.0.1"
|
|
81
81
|
},
|
|
82
82
|
"devDependencies": {
|
|
83
|
-
"@storybook/addon-a11y": "10.3.
|
|
83
|
+
"@storybook/addon-a11y": "10.3.4",
|
|
84
84
|
"@types/istanbul-lib-report": "^3.0.3",
|
|
85
85
|
"@types/micromatch": "^4.0.0",
|
|
86
86
|
"@types/node": "^22.19.1",
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
"@vitest/browser": "^3.0.0 || ^4.0.0",
|
|
109
109
|
"@vitest/browser-playwright": "^4.0.0",
|
|
110
110
|
"@vitest/runner": "^3.0.0 || ^4.0.0",
|
|
111
|
-
"storybook": "^10.3.
|
|
111
|
+
"storybook": "^10.3.4",
|
|
112
112
|
"vitest": "^3.0.0 || ^4.0.0"
|
|
113
113
|
},
|
|
114
114
|
"peerDependenciesMeta": {
|