@storybook/addon-vitest 10.5.0-alpha.0 → 10.5.0-alpha.1
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-7YTIKEYW.js → chunk-7LZCOVOW.js} +9 -9
- package/dist/_node-chunks/{chunk-DJYMVZWS.js → chunk-JXU5T5S3.js} +6 -6
- package/dist/_node-chunks/{chunk-F2G64ZNI.js → chunk-KPH357JY.js} +7 -7
- package/dist/_node-chunks/{chunk-EKFVCDIA.js → chunk-KQ3RLFRT.js} +6 -6
- package/dist/_node-chunks/{chunk-WLF56HFZ.js → chunk-OH5RTNGN.js} +7 -7
- package/dist/_node-chunks/{chunk-JWWH2DNN.js → chunk-RBGXMEUY.js} +7 -7
- package/dist/_node-chunks/{chunk-QSFIYHYI.js → chunk-XOLAT3Q7.js} +6 -6
- package/dist/_node-chunks/{chunk-44IS37CM.js → chunk-YV3RNY6T.js} +6 -6
- package/dist/_node-chunks/{vitest.config.3.2.template-WQ4UIXME.js → vitest.config.3.2.template-IPQM2R6W.js} +7 -7
- package/dist/_node-chunks/{vitest.config.4.template-OPWOJII3.js → vitest.config.4.template-DC24XAJG.js} +7 -7
- package/dist/_node-chunks/{vitest.config.template-DEXFQLOO.js → vitest.config.template-GCKJ6JXG.js} +7 -7
- package/dist/_node-chunks/{vitest.workspace.template-3COXRL3A.js → vitest.workspace.template-37PQA3WO.js} +7 -7
- package/dist/constants.js +8 -8
- package/dist/node/coverage-reporter.js +8 -8
- package/dist/node/vitest.js +16 -14
- package/dist/postinstall.js +16 -16
- package/dist/preset.js +24 -19
- package/dist/vitest-plugin/global-setup.js +7 -7
- package/dist/vitest-plugin/index.js +11 -11
- package/package.json +4 -3
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_5uy8vjo787f from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_5uy8vjo787f from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_5uy8vjo787f from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_5uy8vjo787f.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_5uy8vjo787f.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_5uy8vjo787f.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-KPH357JY.js";
|
|
15
15
|
import {
|
|
16
16
|
ADDON_ID2 as ADDON_ID
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-XOLAT3Q7.js";
|
|
18
18
|
import {
|
|
19
19
|
__toESM
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-YV3RNY6T.js";
|
|
21
21
|
|
|
22
22
|
// src/logger.ts
|
|
23
23
|
var import_picocolors = __toESM(require_picocolors(), 1);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_5uy8vjo787f from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_5uy8vjo787f from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_5uy8vjo787f from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_5uy8vjo787f.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_5uy8vjo787f.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_5uy8vjo787f.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_5uy8vjo787f from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_5uy8vjo787f from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_5uy8vjo787f from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_5uy8vjo787f.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_5uy8vjo787f.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_5uy8vjo787f.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-YV3RNY6T.js";
|
|
15
15
|
|
|
16
16
|
// ../../../node_modules/picocolors/picocolors.js
|
|
17
17
|
var require_picocolors = __commonJS({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_5uy8vjo787f from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_5uy8vjo787f from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_5uy8vjo787f from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_5uy8vjo787f.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_5uy8vjo787f.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_5uy8vjo787f.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_5uy8vjo787f from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_5uy8vjo787f from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_5uy8vjo787f from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_5uy8vjo787f.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_5uy8vjo787f.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_5uy8vjo787f.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-YV3RNY6T.js";
|
|
15
15
|
|
|
16
16
|
// ../../../node_modules/ts-dedent/dist/index.js
|
|
17
17
|
var require_dist = __commonJS({
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_5uy8vjo787f from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_5uy8vjo787f from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_5uy8vjo787f from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_5uy8vjo787f.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_5uy8vjo787f.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_5uy8vjo787f.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-YV3RNY6T.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_5uy8vjo787f from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_5uy8vjo787f from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_5uy8vjo787f from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_5uy8vjo787f.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_5uy8vjo787f.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_5uy8vjo787f.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_5uy8vjo787f from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_5uy8vjo787f from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_5uy8vjo787f from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_5uy8vjo787f.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_5uy8vjo787f.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_5uy8vjo787f.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_5uy8vjo787f from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_5uy8vjo787f from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_5uy8vjo787f from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_5uy8vjo787f.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_5uy8vjo787f.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_5uy8vjo787f.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-YV3RNY6T.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_5uy8vjo787f from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_5uy8vjo787f from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_5uy8vjo787f from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_5uy8vjo787f.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_5uy8vjo787f.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_5uy8vjo787f.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-YV3RNY6T.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-DEXFQLOO.js → vitest.config.template-GCKJ6JXG.js}
RENAMED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_5uy8vjo787f from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_5uy8vjo787f from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_5uy8vjo787f from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_5uy8vjo787f.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_5uy8vjo787f.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_5uy8vjo787f.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-YV3RNY6T.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_5uy8vjo787f from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_5uy8vjo787f from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_5uy8vjo787f from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_5uy8vjo787f.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_5uy8vjo787f.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_5uy8vjo787f.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-YV3RNY6T.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_5uy8vjo787f from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_5uy8vjo787f from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_5uy8vjo787f from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_5uy8vjo787f.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_5uy8vjo787f.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_5uy8vjo787f.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-XOLAT3Q7.js";
|
|
36
|
+
import "./_node-chunks/chunk-YV3RNY6T.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_5uy8vjo787f from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_5uy8vjo787f from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_5uy8vjo787f from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_5uy8vjo787f.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_5uy8vjo787f.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_5uy8vjo787f.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-RBGXMEUY.js";
|
|
15
15
|
import {
|
|
16
16
|
__commonJS,
|
|
17
17
|
__require,
|
|
18
18
|
__toESM
|
|
19
|
-
} from "../_node-chunks/chunk-
|
|
19
|
+
} from "../_node-chunks/chunk-YV3RNY6T.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,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_5uy8vjo787f from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_5uy8vjo787f from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_5uy8vjo787f from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_5uy8vjo787f.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_5uy8vjo787f.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_5uy8vjo787f.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_o6sblrgf4df.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
errorToErrorLike,
|
|
14
14
|
log
|
|
15
|
-
} from "../_node-chunks/chunk-
|
|
15
|
+
} from "../_node-chunks/chunk-7LZCOVOW.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-JXU5T5S3.js";
|
|
20
|
+
import "../_node-chunks/chunk-KPH357JY.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-KQ3RLFRT.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-XOLAT3Q7.js";
|
|
36
|
+
import "../_node-chunks/chunk-YV3RNY6T.js";
|
|
37
37
|
|
|
38
38
|
// src/node/vitest.ts
|
|
39
39
|
import process2 from "node:process";
|
|
@@ -226,6 +226,7 @@ var DOUBLE_SPACES = " ", getTestName = (name) => `${name}${DOUBLE_SPACES}`, Vit
|
|
|
226
226
|
try {
|
|
227
227
|
this.vitest = await createVitest("test", {
|
|
228
228
|
root: vitestWorkspaceConfig ?? vitestConfigFallbackLocation,
|
|
229
|
+
configLoader: this.testManager.configLoader,
|
|
229
230
|
watch: !0,
|
|
230
231
|
passWithNoTests: !1,
|
|
231
232
|
project: [projectName],
|
|
@@ -554,7 +555,7 @@ var testStateToStatusValueMap = {
|
|
|
554
555
|
};
|
|
555
556
|
});
|
|
556
557
|
}, 500);
|
|
557
|
-
this.store = options.store, this.componentTestStatusStore = options.componentTestStatusStore, this.a11yStatusStore = options.a11yStatusStore, this.testProviderStore = options.testProviderStore, this.onReady = options.onReady, this.storybookOptions = options.storybookOptions, this.vitestManager = new VitestManager(this), this.store.subscribe("TRIGGER_RUN", this.handleTriggerRunEvent.bind(this)), this.store.subscribe("CANCEL_RUN", this.handleCancelEvent.bind(this)), this.store.untilReady().then(() => this.vitestManager.startVitest({
|
|
558
|
+
this.store = options.store, this.componentTestStatusStore = options.componentTestStatusStore, this.a11yStatusStore = options.a11yStatusStore, this.testProviderStore = options.testProviderStore, this.onReady = options.onReady, this.storybookOptions = options.storybookOptions, this.configLoader = options.configLoader, this.vitestManager = new VitestManager(this), this.store.subscribe("TRIGGER_RUN", this.handleTriggerRunEvent.bind(this)), this.store.subscribe("CANCEL_RUN", this.handleCancelEvent.bind(this)), this.store.untilReady().then(() => this.vitestManager.startVitest({
|
|
558
559
|
coverage: this.store.getState().config.coverage
|
|
559
560
|
})).then(() => this.onReady?.()).catch((e) => {
|
|
560
561
|
this.reportFatalError("Failed to start Vitest", e);
|
|
@@ -703,7 +704,8 @@ new TestManager({
|
|
|
703
704
|
},
|
|
704
705
|
storybookOptions: {
|
|
705
706
|
configDir: process2.env.STORYBOOK_CONFIG_DIR || ""
|
|
706
|
-
}
|
|
707
|
+
},
|
|
708
|
+
configLoader: process2.env.STORYBOOK_CONFIG_LOADER
|
|
707
709
|
});
|
|
708
710
|
var exit = (code = 0) => {
|
|
709
711
|
channel?.removeAllListeners(), process2.exit(code);
|
package/dist/postinstall.js
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_5uy8vjo787f from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_5uy8vjo787f from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_5uy8vjo787f from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_5uy8vjo787f.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_5uy8vjo787f.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_5uy8vjo787f.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-JXU5T5S3.js";
|
|
15
15
|
import {
|
|
16
16
|
require_dist
|
|
17
|
-
} from "./_node-chunks/chunk-
|
|
17
|
+
} from "./_node-chunks/chunk-OH5RTNGN.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-KQ3RLFRT.js";
|
|
24
24
|
import {
|
|
25
25
|
DOCUMENTATION_LINK
|
|
26
|
-
} from "./_node-chunks/chunk-
|
|
26
|
+
} from "./_node-chunks/chunk-XOLAT3Q7.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-RBGXMEUY.js";
|
|
37
37
|
import {
|
|
38
38
|
__commonJS,
|
|
39
39
|
__toESM
|
|
40
|
-
} from "./_node-chunks/chunk-
|
|
40
|
+
} from "./_node-chunks/chunk-YV3RNY6T.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.template-
|
|
905
|
+
return import("./_node-chunks/vitest.config.template-GCKJ6JXG.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-DC24XAJG.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-IPQM2R6W.js");
|
|
910
910
|
case "vitest.workspace.template":
|
|
911
|
-
return import("./_node-chunks/vitest.workspace.template-
|
|
911
|
+
return import("./_node-chunks/vitest.workspace.template-37PQA3WO.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_5uy8vjo787f from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_5uy8vjo787f from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_5uy8vjo787f from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_5uy8vjo787f.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_5uy8vjo787f.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_5uy8vjo787f.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-7LZCOVOW.js";
|
|
17
17
|
import {
|
|
18
18
|
require_picocolors
|
|
19
|
-
} from "./_node-chunks/chunk-
|
|
19
|
+
} from "./_node-chunks/chunk-KPH357JY.js";
|
|
20
20
|
import {
|
|
21
21
|
require_dist
|
|
22
|
-
} from "./_node-chunks/chunk-
|
|
22
|
+
} from "./_node-chunks/chunk-OH5RTNGN.js";
|
|
23
23
|
import {
|
|
24
24
|
normalize
|
|
25
|
-
} from "./_node-chunks/chunk-
|
|
25
|
+
} from "./_node-chunks/chunk-KQ3RLFRT.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-XOLAT3Q7.js";
|
|
37
37
|
import {
|
|
38
38
|
__toESM
|
|
39
|
-
} from "./_node-chunks/chunk-
|
|
39
|
+
} from "./_node-chunks/chunk-YV3RNY6T.js";
|
|
40
40
|
|
|
41
41
|
// src/preset.ts
|
|
42
42
|
import { mkdir } from "node:fs/promises";
|
|
@@ -360,7 +360,8 @@ var MAX_START_TIME = 3e4, vitestModulePath = fileURLToPath2(importMetaResolve("@
|
|
|
360
360
|
}, bootTestRunner = async ({
|
|
361
361
|
channel,
|
|
362
362
|
store,
|
|
363
|
-
options
|
|
363
|
+
options,
|
|
364
|
+
configLoader
|
|
364
365
|
}) => {
|
|
365
366
|
let stderr = [], killChild = () => {
|
|
366
367
|
unsubscribeStore?.(), unsubscribeStatusStore?.(), unsubscribeTestProviderStore?.(), child?.kill(), child = null;
|
|
@@ -379,7 +380,8 @@ var MAX_START_TIME = 3e4, vitestModulePath = fileURLToPath2(importMetaResolve("@
|
|
|
379
380
|
TEST: "true",
|
|
380
381
|
VITEST_CHILD_PROCESS: "true",
|
|
381
382
|
NODE_ENV: process.env.NODE_ENV ?? "test",
|
|
382
|
-
STORYBOOK_CONFIG_DIR: normalize(options.configDir)
|
|
383
|
+
STORYBOOK_CONFIG_DIR: normalize(options.configDir),
|
|
384
|
+
STORYBOOK_CONFIG_LOADER: configLoader
|
|
383
385
|
},
|
|
384
386
|
extendEnv: !0
|
|
385
387
|
}
|
|
@@ -425,9 +427,10 @@ var MAX_START_TIME = 3e4, vitestModulePath = fileURLToPath2(importMetaResolve("@
|
|
|
425
427
|
store,
|
|
426
428
|
initEvent,
|
|
427
429
|
initArgs,
|
|
428
|
-
options
|
|
430
|
+
options,
|
|
431
|
+
configLoader
|
|
429
432
|
}) => {
|
|
430
|
-
!ready && initEvent && eventQueue.push({ type: initEvent, args: initArgs }), child || (ready = !1, await bootTestRunner({ channel, store, options }), ready = !0);
|
|
433
|
+
!ready && initEvent && eventQueue.push({ type: initEvent, args: initArgs }), child || (ready = !1, await bootTestRunner({ channel, store, options, configLoader }), ready = !0);
|
|
431
434
|
};
|
|
432
435
|
|
|
433
436
|
// src/preset.ts
|
|
@@ -443,7 +446,7 @@ var experimental_serverChannel = async (channel, options) => {
|
|
|
443
446
|
|
|
444
447
|
Refer to the following documentation for more information: ${import_picocolors.default.yellow("https://storybook.js.org/docs/get-started/frameworks/nextjs-vite?ref=upgrade#choose-between-vite-and-webpack")}\n
|
|
445
448
|
`), channel;
|
|
446
|
-
let storyIndexGenerator = await options.presets.apply("storyIndexGenerator"), fsCache = createFileSystemCache({
|
|
449
|
+
let configLoader = typeof core.builder != "string" && core.builder?.options?.configLoader, storyIndexGenerator = await options.presets.apply("storyIndexGenerator"), fsCache = createFileSystemCache({
|
|
447
450
|
basePath: resolvePathInStorybookCache(ADDON_ID.replace("/", "-")),
|
|
448
451
|
ns: "storybook",
|
|
449
452
|
ttl: 336 * 60 * 60 * 1e3
|
|
@@ -482,7 +485,8 @@ var experimental_serverChannel = async (channel, options) => {
|
|
|
482
485
|
store,
|
|
483
486
|
initEvent: STORE_CHANNEL_EVENT_NAME,
|
|
484
487
|
initArgs: [{ event, eventInfo }],
|
|
485
|
-
options
|
|
488
|
+
options,
|
|
489
|
+
configLoader: configLoader || void 0
|
|
486
490
|
});
|
|
487
491
|
}), store.subscribe("TOGGLE_WATCHING", (event, eventInfo) => {
|
|
488
492
|
store.setState((s) => ({
|
|
@@ -500,7 +504,8 @@ var experimental_serverChannel = async (channel, options) => {
|
|
|
500
504
|
store,
|
|
501
505
|
initEvent: STORE_CHANNEL_EVENT_NAME,
|
|
502
506
|
initArgs: [{ event, eventInfo }],
|
|
503
|
-
options
|
|
507
|
+
options,
|
|
508
|
+
configLoader: configLoader || void 0
|
|
504
509
|
});
|
|
505
510
|
}), store.subscribe("FATAL_ERROR", (event) => {
|
|
506
511
|
let { message, error } = event.payload, name = error.name || "Error";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_5uy8vjo787f from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_5uy8vjo787f from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_5uy8vjo787f from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_5uy8vjo787f.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_5uy8vjo787f.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_5uy8vjo787f.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-YV3RNY6T.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_5uy8vjo787f from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_5uy8vjo787f from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_5uy8vjo787f from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_5uy8vjo787f.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_5uy8vjo787f.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_5uy8vjo787f.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-KPH357JY.js";
|
|
15
15
|
import {
|
|
16
16
|
require_dist
|
|
17
|
-
} from "../_node-chunks/chunk-
|
|
17
|
+
} from "../_node-chunks/chunk-OH5RTNGN.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-KQ3RLFRT.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-XOLAT3Q7.js";
|
|
31
31
|
import {
|
|
32
32
|
__commonJS,
|
|
33
33
|
__require,
|
|
34
34
|
__toESM
|
|
35
|
-
} from "../_node-chunks/chunk-
|
|
35
|
+
} from "../_node-chunks/chunk-YV3RNY6T.js";
|
|
36
36
|
|
|
37
37
|
// ../../../node_modules/braces/lib/utils.js
|
|
38
38
|
var require_utils = __commonJS({
|
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.1",
|
|
4
4
|
"description": "Storybook Vitest addon: Blazing fast component testing using stories",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook",
|
|
@@ -80,7 +80,8 @@
|
|
|
80
80
|
"@storybook/icons": "^2.0.2"
|
|
81
81
|
},
|
|
82
82
|
"devDependencies": {
|
|
83
|
-
"@storybook/addon-a11y": "10.5.0-alpha.
|
|
83
|
+
"@storybook/addon-a11y": "10.5.0-alpha.1",
|
|
84
|
+
"@storybook/builder-vite": "10.5.0-alpha.1",
|
|
84
85
|
"@types/istanbul-lib-report": "^3.0.3",
|
|
85
86
|
"@types/micromatch": "^4.0.0",
|
|
86
87
|
"@types/node": "^22.19.1",
|
|
@@ -108,7 +109,7 @@
|
|
|
108
109
|
"@vitest/browser": "^3.0.0 || ^4.0.0",
|
|
109
110
|
"@vitest/browser-playwright": "^4.0.0",
|
|
110
111
|
"@vitest/runner": "^3.0.0 || ^4.0.0",
|
|
111
|
-
"storybook": "^10.5.0-alpha.
|
|
112
|
+
"storybook": "^10.5.0-alpha.1",
|
|
112
113
|
"vitest": "^3.0.0 || ^4.0.0"
|
|
113
114
|
},
|
|
114
115
|
"peerDependenciesMeta": {
|