@storybook/addon-vitest 10.6.2 → 10.6.3
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-IAP3JOBD.js → chunk-7FWHRPN2.js} +6 -6
- package/dist/_node-chunks/{chunk-SMUOZJPP.js → chunk-DK5722VQ.js} +6 -6
- package/dist/_node-chunks/{chunk-UB4BGFHG.js → chunk-EMZ37AEQ.js} +7 -7
- package/dist/_node-chunks/{chunk-ERH5HTX6.js → chunk-FWU3VWS2.js} +7 -7
- package/dist/_node-chunks/{chunk-6EC2RPJW.js → chunk-I4F5W2M3.js} +9 -9
- package/dist/_node-chunks/{chunk-P4PNFNRB.js → chunk-U4B5LQWW.js} +7 -7
- package/dist/_node-chunks/{chunk-4U4TZHX3.js → chunk-UEOHGPKK.js} +6 -6
- package/dist/_node-chunks/{chunk-UAKLLJBC.js → chunk-UP2Y7EME.js} +6 -6
- package/dist/_node-chunks/{vitest.config.3.2.template-RNJ72RDA.js → vitest.config.3.2.template-ZGH22ERH.js} +7 -7
- package/dist/_node-chunks/{vitest.config.4.template-ZPVZ4ING.js → vitest.config.4.template-DHLO3TB4.js} +7 -7
- package/dist/_node-chunks/{vitest.config.template-KAIIPMMD.js → vitest.config.template-CVUMUCGB.js} +7 -7
- package/dist/_node-chunks/{vitest.workspace.template-CMF4G7YG.js → vitest.workspace.template-C5UEYGVW.js} +7 -7
- package/dist/constants.js +8 -8
- package/dist/node/coverage-reporter.js +12 -12
- package/dist/node/vitest.js +19 -17
- 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 +11 -11
- package/package.json +8 -11
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_g16l5b0gw2h from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_g16l5b0gw2h from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_g16l5b0gw2h from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_g16l5b0gw2h.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_g16l5b0gw2h.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_g16l5b0gw2h.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_g16l5b0gw2h from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_g16l5b0gw2h from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_g16l5b0gw2h from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_g16l5b0gw2h.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_g16l5b0gw2h.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_g16l5b0gw2h.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_g16l5b0gw2h from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_g16l5b0gw2h from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_g16l5b0gw2h from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_g16l5b0gw2h.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_g16l5b0gw2h.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_g16l5b0gw2h.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-7FWHRPN2.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_g16l5b0gw2h from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_g16l5b0gw2h from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_g16l5b0gw2h from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_g16l5b0gw2h.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_g16l5b0gw2h.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_g16l5b0gw2h.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-7FWHRPN2.js";
|
|
15
15
|
|
|
16
16
|
// ../../../node_modules/ts-dedent/dist/index.js
|
|
17
17
|
var require_dist = __commonJS({
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_g16l5b0gw2h from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_g16l5b0gw2h from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_g16l5b0gw2h from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_g16l5b0gw2h.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_g16l5b0gw2h.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_g16l5b0gw2h.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-EMZ37AEQ.js";
|
|
15
15
|
import {
|
|
16
16
|
ADDON_ID2 as ADDON_ID
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-UP2Y7EME.js";
|
|
18
18
|
import {
|
|
19
19
|
__toESM
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-7FWHRPN2.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_g16l5b0gw2h from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_g16l5b0gw2h from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_g16l5b0gw2h from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_g16l5b0gw2h.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_g16l5b0gw2h.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_g16l5b0gw2h.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-7FWHRPN2.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_g16l5b0gw2h from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_g16l5b0gw2h from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_g16l5b0gw2h from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_g16l5b0gw2h.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_g16l5b0gw2h.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_g16l5b0gw2h.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_g16l5b0gw2h from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_g16l5b0gw2h from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_g16l5b0gw2h from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_g16l5b0gw2h.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_g16l5b0gw2h.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_g16l5b0gw2h.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_g16l5b0gw2h from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_g16l5b0gw2h from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_g16l5b0gw2h from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_g16l5b0gw2h.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_g16l5b0gw2h.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_g16l5b0gw2h.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-7FWHRPN2.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_g16l5b0gw2h from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_g16l5b0gw2h from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_g16l5b0gw2h from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_g16l5b0gw2h.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_g16l5b0gw2h.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_g16l5b0gw2h.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-7FWHRPN2.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-KAIIPMMD.js → vitest.config.template-CVUMUCGB.js}
RENAMED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_g16l5b0gw2h from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_g16l5b0gw2h from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_g16l5b0gw2h from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_g16l5b0gw2h.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_g16l5b0gw2h.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_g16l5b0gw2h.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-7FWHRPN2.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_g16l5b0gw2h from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_g16l5b0gw2h from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_g16l5b0gw2h from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_g16l5b0gw2h.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_g16l5b0gw2h.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_g16l5b0gw2h.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-7FWHRPN2.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_g16l5b0gw2h from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_g16l5b0gw2h from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_g16l5b0gw2h from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_g16l5b0gw2h.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_g16l5b0gw2h.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_g16l5b0gw2h.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -34,8 +34,8 @@ import {
|
|
|
34
34
|
TRIGGER_TEST_RUN_RESPONSE,
|
|
35
35
|
TUTORIAL_VIDEO_LINK,
|
|
36
36
|
storeOptions
|
|
37
|
-
} from "./_node-chunks/chunk-
|
|
38
|
-
import "./_node-chunks/chunk-
|
|
37
|
+
} from "./_node-chunks/chunk-UP2Y7EME.js";
|
|
38
|
+
import "./_node-chunks/chunk-7FWHRPN2.js";
|
|
39
39
|
export {
|
|
40
40
|
ADDON_ID as A11Y_ADDON_ID,
|
|
41
41
|
PANEL_ID2 as A11Y_PANEL_ID,
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_g16l5b0gw2h from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_g16l5b0gw2h from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_g16l5b0gw2h from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_g16l5b0gw2h.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_g16l5b0gw2h.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_g16l5b0gw2h.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-U4B5LQWW.js";
|
|
15
15
|
import {
|
|
16
16
|
__commonJS,
|
|
17
17
|
__require,
|
|
18
18
|
__toESM
|
|
19
|
-
} from "../_node-chunks/chunk-
|
|
19
|
+
} from "../_node-chunks/chunk-7FWHRPN2.js";
|
|
20
20
|
|
|
21
21
|
// ../../../node_modules/istanbul-lib-report/node_modules/make-dir/index.js
|
|
22
22
|
var require_make_dir = __commonJS({
|
|
@@ -1336,20 +1336,20 @@ var require_istanbul_lib_report = __commonJS({
|
|
|
1336
1336
|
// src/node/coverage-reporter.ts
|
|
1337
1337
|
var import_istanbul_lib_report = __toESM(require_istanbul_lib_report(), 1), StorybookCoverageReporter = class extends import_istanbul_lib_report.ReportBase {
|
|
1338
1338
|
#testManager;
|
|
1339
|
-
#coverageOptions;
|
|
1340
1339
|
constructor(opts) {
|
|
1341
|
-
super(), this.#testManager = opts.testManager
|
|
1340
|
+
super(), this.#testManager = opts.testManager;
|
|
1342
1341
|
}
|
|
1343
1342
|
onSummary(node) {
|
|
1344
1343
|
if (!node.isRoot())
|
|
1345
1344
|
return;
|
|
1346
|
-
let rawCoverageSummary = node.getCoverageSummary(!1), percentage = Math.round(rawCoverageSummary.data.statements.pct), [lowWatermark = 50, highWatermark = 80] = this.#
|
|
1345
|
+
let rawCoverageSummary = node.getCoverageSummary(!1), percentage = Math.round(rawCoverageSummary.data.statements.pct), [lowWatermark = 50, highWatermark = 80] = this.#testManager.vitestManager.vitest?.config.coverage.watermarks?.statements ?? [], coverageSummary = {
|
|
1347
1346
|
percentage,
|
|
1348
1347
|
status: percentage < lowWatermark ? "negative" : percentage < highWatermark ? "warning" : "positive"
|
|
1349
1348
|
};
|
|
1350
1349
|
this.#testManager.onCoverageCollected(coverageSummary);
|
|
1351
1350
|
}
|
|
1352
|
-
};
|
|
1351
|
+
}, coverage_reporter_default = StorybookCoverageReporter;
|
|
1353
1352
|
export {
|
|
1353
|
+
coverage_reporter_default as default,
|
|
1354
1354
|
StorybookCoverageReporter as "module.exports"
|
|
1355
1355
|
};
|
package/dist/node/vitest.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_g16l5b0gw2h from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_g16l5b0gw2h from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_g16l5b0gw2h from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_g16l5b0gw2h.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_g16l5b0gw2h.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_g16l5b0gw2h.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_i3ukfiy0i9.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
errorToErrorLike,
|
|
14
14
|
log
|
|
15
|
-
} from "../_node-chunks/chunk-
|
|
15
|
+
} from "../_node-chunks/chunk-I4F5W2M3.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-UEOHGPKK.js";
|
|
20
|
+
import "../_node-chunks/chunk-EMZ37AEQ.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-DK5722VQ.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-UP2Y7EME.js";
|
|
36
|
+
import "../_node-chunks/chunk-7FWHRPN2.js";
|
|
37
37
|
|
|
38
38
|
// src/node/vitest.ts
|
|
39
39
|
import process2 from "node:process";
|
|
@@ -177,16 +177,18 @@ var DOUBLE_SPACES = " ", getTestName = (name) => `${name}${DOUBLE_SPACES}`, Vit
|
|
|
177
177
|
constructor(testManager) {
|
|
178
178
|
this.testManager = testManager;
|
|
179
179
|
this.vitest = null;
|
|
180
|
+
this.testNameSeparator = " ";
|
|
180
181
|
this.vitestStartupCounter = 0;
|
|
181
182
|
this.vitestRestartPromise = null;
|
|
182
183
|
this.runningPromise = null;
|
|
183
184
|
}
|
|
184
185
|
async startVitest({ coverage }) {
|
|
185
|
-
let { createVitest } = await import("vitest/node")
|
|
186
|
+
let { createVitest, version } = await import("vitest/node");
|
|
187
|
+
this.testNameSeparator = Number.parseInt(version, 10) >= 5 ? " > " : " ";
|
|
188
|
+
let storybookCoverageReporter = [
|
|
186
189
|
"@storybook/addon-vitest/internal/coverage-reporter",
|
|
187
190
|
{
|
|
188
|
-
testManager: this.testManager
|
|
189
|
-
coverageOptions: this.vitest?.config?.coverage
|
|
191
|
+
testManager: this.testManager
|
|
190
192
|
}
|
|
191
193
|
], coverageOptions = coverage ? {
|
|
192
194
|
enabled: !0,
|
|
@@ -253,7 +255,7 @@ var DOUBLE_SPACES = " ", getTestName = (name) => `${name}${DOUBLE_SPACES}`, Vit
|
|
|
253
255
|
this.vitest && this.vitest.onCancel(() => {
|
|
254
256
|
});
|
|
255
257
|
try {
|
|
256
|
-
await this.vitest.init();
|
|
258
|
+
typeof this.vitest.standalone == "function" ? await this.vitest.standalone() : await this.vitest.init();
|
|
257
259
|
} catch (e) {
|
|
258
260
|
let message = "Failed to initialize Vitest", isV8 = e.message?.includes("@vitest/coverage-v8"), isIstanbul = e.message?.includes("@vitest/coverage-istanbul");
|
|
259
261
|
(e.message?.includes("Failed to load url") && (isIstanbul || isV8) || // Vitest will sometimes not throw the correct missing-package-detection error, so we have to check for this as well
|
|
@@ -312,7 +314,7 @@ Please install the @vitest/${isIstanbul ? "coverage-istanbul" : "coverage-v8"} p
|
|
|
312
314
|
let parentStory = storiesById[story.parent];
|
|
313
315
|
if (!parentStory)
|
|
314
316
|
throw new Error(`Parent story not found for story ${story.id}`);
|
|
315
|
-
return `^${escapeRegExp(getTestName(parentStory.name))}
|
|
317
|
+
return `^${escapeRegExp(getTestName(parentStory.name))}${this.testNameSeparator}${escapeRegExp(story.name)}$`;
|
|
316
318
|
}
|
|
317
319
|
return `^${escapeRegExp(story.name)}$`;
|
|
318
320
|
}
|
package/dist/postinstall.js
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_g16l5b0gw2h from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_g16l5b0gw2h from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_g16l5b0gw2h from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_g16l5b0gw2h.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_g16l5b0gw2h.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_g16l5b0gw2h.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-UEOHGPKK.js";
|
|
15
15
|
import {
|
|
16
16
|
require_dist
|
|
17
|
-
} from "./_node-chunks/chunk-
|
|
17
|
+
} from "./_node-chunks/chunk-FWU3VWS2.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-DK5722VQ.js";
|
|
24
24
|
import {
|
|
25
25
|
DOCUMENTATION_LINK
|
|
26
|
-
} from "./_node-chunks/chunk-
|
|
26
|
+
} from "./_node-chunks/chunk-UP2Y7EME.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-U4B5LQWW.js";
|
|
37
37
|
import {
|
|
38
38
|
__commonJS,
|
|
39
39
|
__toESM
|
|
40
|
-
} from "./_node-chunks/chunk-
|
|
40
|
+
} from "./_node-chunks/chunk-7FWHRPN2.js";
|
|
41
41
|
|
|
42
42
|
// ../../../node_modules/semver/functions/parse.js
|
|
43
43
|
var require_parse = __commonJS({
|
|
@@ -1019,13 +1019,13 @@ import {
|
|
|
1019
1019
|
async function getTemplatePath(name) {
|
|
1020
1020
|
switch (name) {
|
|
1021
1021
|
case "vitest.config.template":
|
|
1022
|
-
return import("./_node-chunks/vitest.config.template-
|
|
1022
|
+
return import("./_node-chunks/vitest.config.template-CVUMUCGB.js");
|
|
1023
1023
|
case "vitest.config.4.template":
|
|
1024
|
-
return import("./_node-chunks/vitest.config.4.template-
|
|
1024
|
+
return import("./_node-chunks/vitest.config.4.template-DHLO3TB4.js");
|
|
1025
1025
|
case "vitest.config.3.2.template":
|
|
1026
|
-
return import("./_node-chunks/vitest.config.3.2.template-
|
|
1026
|
+
return import("./_node-chunks/vitest.config.3.2.template-ZGH22ERH.js");
|
|
1027
1027
|
case "vitest.workspace.template":
|
|
1028
|
-
return import("./_node-chunks/vitest.workspace.template-
|
|
1028
|
+
return import("./_node-chunks/vitest.workspace.template-C5UEYGVW.js");
|
|
1029
1029
|
default:
|
|
1030
1030
|
throw new Error(`Unknown template: ${name}`);
|
|
1031
1031
|
}
|
package/dist/preset.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_g16l5b0gw2h from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_g16l5b0gw2h from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_g16l5b0gw2h from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_g16l5b0gw2h.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_g16l5b0gw2h.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_g16l5b0gw2h.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-I4F5W2M3.js";
|
|
17
17
|
import {
|
|
18
18
|
require_picocolors
|
|
19
|
-
} from "./_node-chunks/chunk-
|
|
19
|
+
} from "./_node-chunks/chunk-EMZ37AEQ.js";
|
|
20
20
|
import {
|
|
21
21
|
require_dist
|
|
22
|
-
} from "./_node-chunks/chunk-
|
|
22
|
+
} from "./_node-chunks/chunk-FWU3VWS2.js";
|
|
23
23
|
import {
|
|
24
24
|
normalize
|
|
25
|
-
} from "./_node-chunks/chunk-
|
|
25
|
+
} from "./_node-chunks/chunk-DK5722VQ.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-UP2Y7EME.js";
|
|
37
37
|
import {
|
|
38
38
|
__toESM
|
|
39
|
-
} from "./_node-chunks/chunk-
|
|
39
|
+
} from "./_node-chunks/chunk-7FWHRPN2.js";
|
|
40
40
|
|
|
41
41
|
// src/preset.ts
|
|
42
42
|
var import_picocolors = __toESM(require_picocolors(), 1), import_ts_dedent = __toESM(require_dist(), 1);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_g16l5b0gw2h from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_g16l5b0gw2h from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_g16l5b0gw2h from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_g16l5b0gw2h.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_g16l5b0gw2h.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_g16l5b0gw2h.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-7FWHRPN2.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_g16l5b0gw2h from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_g16l5b0gw2h from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_g16l5b0gw2h from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_g16l5b0gw2h.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_g16l5b0gw2h.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_g16l5b0gw2h.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-EMZ37AEQ.js";
|
|
15
15
|
import {
|
|
16
16
|
require_dist
|
|
17
|
-
} from "../_node-chunks/chunk-
|
|
17
|
+
} from "../_node-chunks/chunk-FWU3VWS2.js";
|
|
18
18
|
import {
|
|
19
19
|
dirname,
|
|
20
20
|
join,
|
|
@@ -23,13 +23,13 @@ import {
|
|
|
23
23
|
relative,
|
|
24
24
|
resolve,
|
|
25
25
|
sep
|
|
26
|
-
} from "../_node-chunks/chunk-
|
|
26
|
+
} from "../_node-chunks/chunk-DK5722VQ.js";
|
|
27
27
|
import {
|
|
28
28
|
STORYBOOK_CORE_GHOST_STORIES_PROVIDE_KEY,
|
|
29
29
|
STORYBOOK_CORE_RENDER_ANALYSIS_PROVIDE_KEY,
|
|
30
30
|
STORYBOOK_TEST_FEATURES_PROVIDE_KEY,
|
|
31
31
|
STORYBOOK_TEST_INITIAL_GLOBALS_PROVIDE_KEY
|
|
32
|
-
} from "../_node-chunks/chunk-
|
|
32
|
+
} from "../_node-chunks/chunk-UP2Y7EME.js";
|
|
33
33
|
import {
|
|
34
34
|
__commonJS,
|
|
35
35
|
__esm,
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
__require,
|
|
38
38
|
__toCommonJS,
|
|
39
39
|
__toESM
|
|
40
|
-
} from "../_node-chunks/chunk-
|
|
40
|
+
} from "../_node-chunks/chunk-7FWHRPN2.js";
|
|
41
41
|
|
|
42
42
|
// ../../../node_modules/braces/lib/utils.js
|
|
43
43
|
var require_utils = __commonJS({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/addon-vitest",
|
|
3
|
-
"version": "10.6.
|
|
3
|
+
"version": "10.6.3",
|
|
4
4
|
"description": "Storybook Vitest addon: Blazing fast component testing using stories",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook",
|
|
@@ -82,17 +82,18 @@
|
|
|
82
82
|
"@storybook/icons": "^2.0.2"
|
|
83
83
|
},
|
|
84
84
|
"devDependencies": {
|
|
85
|
-
"@storybook/addon-a11y": "10.6.
|
|
86
|
-
"@storybook/builder-vite": "10.6.
|
|
85
|
+
"@storybook/addon-a11y": "10.6.3",
|
|
86
|
+
"@storybook/builder-vite": "10.6.3",
|
|
87
87
|
"@types/istanbul-lib-report": "^3.0.3",
|
|
88
88
|
"@types/micromatch": "^4.0.0",
|
|
89
89
|
"@types/node": "^22.19.1",
|
|
90
90
|
"@types/semver": "^7.7.1",
|
|
91
91
|
"@vitest/browser-playwright": "^4.1.6",
|
|
92
|
-
"@vitest/
|
|
92
|
+
"@vitest/istanbul-lib-report": "^1.0.1",
|
|
93
93
|
"empathic": "^2.0.0",
|
|
94
94
|
"es-toolkit": "^1.43.0",
|
|
95
95
|
"istanbul-lib-report": "^3.0.1",
|
|
96
|
+
"istanbul-reports": "^3.2.0",
|
|
96
97
|
"micromatch": "^4.0.8",
|
|
97
98
|
"pathe": "^1.1.2",
|
|
98
99
|
"picocolors": "^1.1.0",
|
|
@@ -108,11 +109,10 @@
|
|
|
108
109
|
"vitest": "^4.1.6"
|
|
109
110
|
},
|
|
110
111
|
"peerDependencies": {
|
|
111
|
-
"@vitest/browser": "^
|
|
112
|
+
"@vitest/browser": "^4.0.0 || ^5.0.0",
|
|
112
113
|
"@vitest/browser-playwright": "^4.0.0 || ^5.0.0",
|
|
113
|
-
"
|
|
114
|
-
"
|
|
115
|
-
"vitest": "^3.0.0 || ^4.0.0 || ^5.0.0"
|
|
114
|
+
"storybook": "^10.6.3",
|
|
115
|
+
"vitest": "^4.0.0 || ^5.0.0"
|
|
116
116
|
},
|
|
117
117
|
"peerDependenciesMeta": {
|
|
118
118
|
"@vitest/browser": {
|
|
@@ -121,9 +121,6 @@
|
|
|
121
121
|
"@vitest/browser-playwright": {
|
|
122
122
|
"optional": true
|
|
123
123
|
},
|
|
124
|
-
"@vitest/runner": {
|
|
125
|
-
"optional": true
|
|
126
|
-
},
|
|
127
124
|
"vitest": {
|
|
128
125
|
"optional": true
|
|
129
126
|
}
|