@storybook/addon-vitest 11.0.0-alpha.2 → 11.0.0-alpha.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-DGXSIU5P.js → chunk-5GNPPJQV.js} +7 -7
- package/dist/_node-chunks/{chunk-A6JLOT6F.js → chunk-6NFSBXSS.js} +9 -9
- package/dist/_node-chunks/{chunk-SHDZ5XSG.js → chunk-AXJTCGQ6.js} +6 -6
- package/dist/_node-chunks/{chunk-GVGQIPSE.js → chunk-DV6UVKTZ.js} +6 -6
- package/dist/_node-chunks/{chunk-TOGST5VQ.js → chunk-HTXPUKC3.js} +6 -6
- package/dist/_node-chunks/{chunk-A4O47QSY.js → chunk-LYUQDYUI.js} +7 -7
- package/dist/_node-chunks/{chunk-6VUWJJXG.js → chunk-PIHEAU4G.js} +7 -7
- package/dist/_node-chunks/{chunk-HNM37S6Y.js → chunk-VGWOZJS4.js} +6 -6
- package/dist/_node-chunks/{vitest.config.4.template-V4ACHTR5.js → vitest.config.4.template-RTNEUQC3.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 +12 -12
- package/dist/preset.js +85 -14
- package/dist/vitest-plugin/global-setup.js +7 -7
- package/dist/vitest-plugin/index.js +11 -11
- package/package.json +4 -4
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_bxcoj7l8k1g from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_bxcoj7l8k1g from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_bxcoj7l8k1g from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_bxcoj7l8k1g.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_bxcoj7l8k1g.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_bxcoj7l8k1g.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-DV6UVKTZ.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_bxcoj7l8k1g from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_bxcoj7l8k1g from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_bxcoj7l8k1g from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_bxcoj7l8k1g.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_bxcoj7l8k1g.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_bxcoj7l8k1g.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-LYUQDYUI.js";
|
|
15
15
|
import {
|
|
16
16
|
ADDON_ID2 as ADDON_ID
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-HTXPUKC3.js";
|
|
18
18
|
import {
|
|
19
19
|
__toESM
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-DV6UVKTZ.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_bxcoj7l8k1g from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_bxcoj7l8k1g from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_bxcoj7l8k1g from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_bxcoj7l8k1g.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_bxcoj7l8k1g.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_bxcoj7l8k1g.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_bxcoj7l8k1g from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_bxcoj7l8k1g from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_bxcoj7l8k1g from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_bxcoj7l8k1g.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_bxcoj7l8k1g.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_bxcoj7l8k1g.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_bxcoj7l8k1g from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_bxcoj7l8k1g from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_bxcoj7l8k1g from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_bxcoj7l8k1g.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_bxcoj7l8k1g.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_bxcoj7l8k1g.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_bxcoj7l8k1g from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_bxcoj7l8k1g from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_bxcoj7l8k1g from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_bxcoj7l8k1g.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_bxcoj7l8k1g.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_bxcoj7l8k1g.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-DV6UVKTZ.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_bxcoj7l8k1g from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_bxcoj7l8k1g from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_bxcoj7l8k1g from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_bxcoj7l8k1g.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_bxcoj7l8k1g.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_bxcoj7l8k1g.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-DV6UVKTZ.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_bxcoj7l8k1g from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_bxcoj7l8k1g from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_bxcoj7l8k1g from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_bxcoj7l8k1g.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_bxcoj7l8k1g.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_bxcoj7l8k1g.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_bxcoj7l8k1g from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_bxcoj7l8k1g from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_bxcoj7l8k1g from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_bxcoj7l8k1g.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_bxcoj7l8k1g.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_bxcoj7l8k1g.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-DV6UVKTZ.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/constants.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_bxcoj7l8k1g from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_bxcoj7l8k1g from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_bxcoj7l8k1g from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_bxcoj7l8k1g.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_bxcoj7l8k1g.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_bxcoj7l8k1g.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -35,8 +35,8 @@ import {
|
|
|
35
35
|
TRIGGER_TEST_RUN_RESPONSE,
|
|
36
36
|
TUTORIAL_VIDEO_LINK,
|
|
37
37
|
storeOptions
|
|
38
|
-
} from "./_node-chunks/chunk-
|
|
39
|
-
import "./_node-chunks/chunk-
|
|
38
|
+
} from "./_node-chunks/chunk-HTXPUKC3.js";
|
|
39
|
+
import "./_node-chunks/chunk-DV6UVKTZ.js";
|
|
40
40
|
export {
|
|
41
41
|
ADDON_ID as A11Y_ADDON_ID,
|
|
42
42
|
PANEL_ID2 as A11Y_PANEL_ID,
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_bxcoj7l8k1g from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_bxcoj7l8k1g from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_bxcoj7l8k1g from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_bxcoj7l8k1g.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_bxcoj7l8k1g.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_bxcoj7l8k1g.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-PIHEAU4G.js";
|
|
15
15
|
import {
|
|
16
16
|
__commonJS,
|
|
17
17
|
__require,
|
|
18
18
|
__toESM
|
|
19
|
-
} from "../_node-chunks/chunk-
|
|
19
|
+
} from "../_node-chunks/chunk-DV6UVKTZ.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_bxcoj7l8k1g from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_bxcoj7l8k1g from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_bxcoj7l8k1g from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_bxcoj7l8k1g.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_bxcoj7l8k1g.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_bxcoj7l8k1g.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -13,19 +13,19 @@ import {
|
|
|
13
13
|
errorToErrorLike,
|
|
14
14
|
globalThis_,
|
|
15
15
|
log
|
|
16
|
-
} from "../_node-chunks/chunk-
|
|
16
|
+
} from "../_node-chunks/chunk-6NFSBXSS.js";
|
|
17
17
|
import {
|
|
18
18
|
any,
|
|
19
19
|
up
|
|
20
|
-
} from "../_node-chunks/chunk-
|
|
21
|
-
import "../_node-chunks/chunk-
|
|
20
|
+
} from "../_node-chunks/chunk-VGWOZJS4.js";
|
|
21
|
+
import "../_node-chunks/chunk-LYUQDYUI.js";
|
|
22
22
|
import {
|
|
23
23
|
dirname,
|
|
24
24
|
join,
|
|
25
25
|
normalize,
|
|
26
26
|
path,
|
|
27
27
|
resolve
|
|
28
|
-
} from "../_node-chunks/chunk-
|
|
28
|
+
} from "../_node-chunks/chunk-AXJTCGQ6.js";
|
|
29
29
|
import {
|
|
30
30
|
ADDON_ID2 as ADDON_ID,
|
|
31
31
|
COVERAGE_DIRECTORY,
|
|
@@ -34,8 +34,8 @@ import {
|
|
|
34
34
|
STORYBOOK_TEST_PROVIDE_KEY,
|
|
35
35
|
STORY_INDEX_CHANNEL_EVENT_NAME,
|
|
36
36
|
storeOptions
|
|
37
|
-
} from "../_node-chunks/chunk-
|
|
38
|
-
import "../_node-chunks/chunk-
|
|
37
|
+
} from "../_node-chunks/chunk-HTXPUKC3.js";
|
|
38
|
+
import "../_node-chunks/chunk-DV6UVKTZ.js";
|
|
39
39
|
|
|
40
40
|
// src/node/vitest.ts
|
|
41
41
|
import process2 from "node:process";
|
package/dist/postinstall.js
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_bxcoj7l8k1g from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_bxcoj7l8k1g from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_bxcoj7l8k1g from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_bxcoj7l8k1g.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_bxcoj7l8k1g.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_bxcoj7l8k1g.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-VGWOZJS4.js";
|
|
15
15
|
import {
|
|
16
16
|
require_dist
|
|
17
|
-
} from "./_node-chunks/chunk-
|
|
17
|
+
} from "./_node-chunks/chunk-5GNPPJQV.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-AXJTCGQ6.js";
|
|
24
24
|
import {
|
|
25
25
|
DOCUMENTATION_LINK
|
|
26
|
-
} from "./_node-chunks/chunk-
|
|
26
|
+
} from "./_node-chunks/chunk-HTXPUKC3.js";
|
|
27
27
|
import {
|
|
28
28
|
__toESM
|
|
29
|
-
} from "./_node-chunks/chunk-
|
|
29
|
+
} from "./_node-chunks/chunk-DV6UVKTZ.js";
|
|
30
30
|
|
|
31
31
|
// src/postinstall.ts
|
|
32
32
|
import * as fs from "node:fs/promises";
|
|
@@ -142,7 +142,7 @@ import {
|
|
|
142
142
|
resolveExpression
|
|
143
143
|
} from "storybook/internal/babel";
|
|
144
144
|
async function getTemplatePath() {
|
|
145
|
-
return import("./_node-chunks/vitest.config.4.template-
|
|
145
|
+
return import("./_node-chunks/vitest.config.4.template-RTNEUQC3.js");
|
|
146
146
|
}
|
|
147
147
|
var loadTemplate = async (name, replacements) => {
|
|
148
148
|
let template = (await getTemplatePath()).default;
|
package/dist/preset.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_bxcoj7l8k1g from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_bxcoj7l8k1g from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_bxcoj7l8k1g from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_bxcoj7l8k1g.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_bxcoj7l8k1g.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_bxcoj7l8k1g.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -14,16 +14,16 @@ import {
|
|
|
14
14
|
globalThis_,
|
|
15
15
|
log,
|
|
16
16
|
noop
|
|
17
|
-
} from "./_node-chunks/chunk-
|
|
17
|
+
} from "./_node-chunks/chunk-6NFSBXSS.js";
|
|
18
18
|
import {
|
|
19
19
|
require_picocolors
|
|
20
|
-
} from "./_node-chunks/chunk-
|
|
20
|
+
} from "./_node-chunks/chunk-LYUQDYUI.js";
|
|
21
21
|
import {
|
|
22
22
|
require_dist
|
|
23
|
-
} from "./_node-chunks/chunk-
|
|
23
|
+
} from "./_node-chunks/chunk-5GNPPJQV.js";
|
|
24
24
|
import {
|
|
25
25
|
normalize
|
|
26
|
-
} from "./_node-chunks/chunk-
|
|
26
|
+
} from "./_node-chunks/chunk-AXJTCGQ6.js";
|
|
27
27
|
import {
|
|
28
28
|
ADDON_ID2 as ADDON_ID,
|
|
29
29
|
COVERAGE_DIRECTORY,
|
|
@@ -35,7 +35,7 @@ import {
|
|
|
35
35
|
TRIGGER_TEST_RUN_REQUEST,
|
|
36
36
|
TRIGGER_TEST_RUN_RESPONSE,
|
|
37
37
|
storeOptions
|
|
38
|
-
} from "./_node-chunks/chunk-
|
|
38
|
+
} from "./_node-chunks/chunk-HTXPUKC3.js";
|
|
39
39
|
import {
|
|
40
40
|
require_compare,
|
|
41
41
|
require_constants,
|
|
@@ -45,11 +45,11 @@ import {
|
|
|
45
45
|
require_parse_options,
|
|
46
46
|
require_re,
|
|
47
47
|
require_semver
|
|
48
|
-
} from "./_node-chunks/chunk-
|
|
48
|
+
} from "./_node-chunks/chunk-PIHEAU4G.js";
|
|
49
49
|
import {
|
|
50
50
|
__commonJS,
|
|
51
51
|
__toESM
|
|
52
|
-
} from "./_node-chunks/chunk-
|
|
52
|
+
} from "./_node-chunks/chunk-DV6UVKTZ.js";
|
|
53
53
|
|
|
54
54
|
// ../../../node_modules/semver/functions/parse.js
|
|
55
55
|
var require_parse = __commonJS({
|
|
@@ -1889,6 +1889,77 @@ function record(key, value$1, message$1) {
|
|
|
1889
1889
|
}
|
|
1890
1890
|
};
|
|
1891
1891
|
}
|
|
1892
|
+
function strictObject(entries$1, message$1) {
|
|
1893
|
+
return {
|
|
1894
|
+
kind: "schema",
|
|
1895
|
+
type: "strict_object",
|
|
1896
|
+
reference: strictObject,
|
|
1897
|
+
expects: "Object",
|
|
1898
|
+
async: !1,
|
|
1899
|
+
entries: entries$1,
|
|
1900
|
+
message: message$1,
|
|
1901
|
+
get "~standard"() {
|
|
1902
|
+
return _getStandardProps(this);
|
|
1903
|
+
},
|
|
1904
|
+
"~run"(dataset, config$1) {
|
|
1905
|
+
let input = dataset.value;
|
|
1906
|
+
if (input && typeof input == "object") {
|
|
1907
|
+
dataset.typed = !0, dataset.value = {};
|
|
1908
|
+
for (let key in this.entries) {
|
|
1909
|
+
let valueSchema = this.entries[key];
|
|
1910
|
+
if (key in input || (valueSchema.type === "exact_optional" || valueSchema.type === "optional" || valueSchema.type === "nullish") && valueSchema.default !== void 0) {
|
|
1911
|
+
let value$1 = key in input ? input[key] : getDefault(valueSchema), valueDataset = valueSchema["~run"]({ value: value$1 }, config$1);
|
|
1912
|
+
if (valueDataset.issues) {
|
|
1913
|
+
let pathItem = {
|
|
1914
|
+
type: "object",
|
|
1915
|
+
origin: "value",
|
|
1916
|
+
input,
|
|
1917
|
+
key,
|
|
1918
|
+
value: value$1
|
|
1919
|
+
};
|
|
1920
|
+
for (let issue of valueDataset.issues)
|
|
1921
|
+
issue.path ? issue.path.unshift(pathItem) : issue.path = [pathItem], dataset.issues?.push(issue);
|
|
1922
|
+
if (dataset.issues || (dataset.issues = valueDataset.issues), config$1.abortEarly) {
|
|
1923
|
+
dataset.typed = !1;
|
|
1924
|
+
break;
|
|
1925
|
+
}
|
|
1926
|
+
}
|
|
1927
|
+
valueDataset.typed || (dataset.typed = !1), dataset.value[key] = valueDataset.value;
|
|
1928
|
+
} else if (valueSchema.fallback !== void 0) dataset.value[key] = getFallback(valueSchema);
|
|
1929
|
+
else if (valueSchema.type !== "exact_optional" && valueSchema.type !== "optional" && valueSchema.type !== "nullish" && (_addIssue(this, "key", dataset, config$1, {
|
|
1930
|
+
input: void 0,
|
|
1931
|
+
expected: `"${key}"`,
|
|
1932
|
+
path: [{
|
|
1933
|
+
type: "object",
|
|
1934
|
+
origin: "key",
|
|
1935
|
+
input,
|
|
1936
|
+
key,
|
|
1937
|
+
value: input[key]
|
|
1938
|
+
}]
|
|
1939
|
+
}), config$1.abortEarly))
|
|
1940
|
+
break;
|
|
1941
|
+
}
|
|
1942
|
+
if (!dataset.issues || !config$1.abortEarly) {
|
|
1943
|
+
for (let key in input) if (!(key in this.entries)) {
|
|
1944
|
+
_addIssue(this, "key", dataset, config$1, {
|
|
1945
|
+
input: key,
|
|
1946
|
+
expected: "never",
|
|
1947
|
+
path: [{
|
|
1948
|
+
type: "object",
|
|
1949
|
+
origin: "key",
|
|
1950
|
+
input,
|
|
1951
|
+
key,
|
|
1952
|
+
value: input[key]
|
|
1953
|
+
}]
|
|
1954
|
+
});
|
|
1955
|
+
break;
|
|
1956
|
+
}
|
|
1957
|
+
}
|
|
1958
|
+
} else _addIssue(this, "type", dataset, config$1);
|
|
1959
|
+
return dataset;
|
|
1960
|
+
}
|
|
1961
|
+
};
|
|
1962
|
+
}
|
|
1892
1963
|
function string(message$1) {
|
|
1893
1964
|
return {
|
|
1894
1965
|
kind: "schema",
|
|
@@ -2360,7 +2431,7 @@ var errorLikeSchema = object({
|
|
|
2360
2431
|
object({
|
|
2361
2432
|
status: literal("cancelled")
|
|
2362
2433
|
})
|
|
2363
|
-
]), runInputSchema =
|
|
2434
|
+
]), runInputSchema = strictObject({
|
|
2364
2435
|
stories: optional(
|
|
2365
2436
|
pipe(
|
|
2366
2437
|
storyInputArraySchema,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_bxcoj7l8k1g from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_bxcoj7l8k1g from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_bxcoj7l8k1g from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_bxcoj7l8k1g.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_bxcoj7l8k1g.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_bxcoj7l8k1g.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-DV6UVKTZ.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_bxcoj7l8k1g from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_bxcoj7l8k1g from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_bxcoj7l8k1g from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_bxcoj7l8k1g.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_bxcoj7l8k1g.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_bxcoj7l8k1g.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-LYUQDYUI.js";
|
|
15
15
|
import {
|
|
16
16
|
require_dist
|
|
17
|
-
} from "../_node-chunks/chunk-
|
|
17
|
+
} from "../_node-chunks/chunk-5GNPPJQV.js";
|
|
18
18
|
import {
|
|
19
19
|
join,
|
|
20
20
|
normalize,
|
|
@@ -22,13 +22,13 @@ import {
|
|
|
22
22
|
relative,
|
|
23
23
|
resolve,
|
|
24
24
|
sep
|
|
25
|
-
} from "../_node-chunks/chunk-
|
|
25
|
+
} from "../_node-chunks/chunk-AXJTCGQ6.js";
|
|
26
26
|
import {
|
|
27
27
|
STORYBOOK_CORE_GHOST_STORIES_PROVIDE_KEY,
|
|
28
28
|
STORYBOOK_CORE_RENDER_ANALYSIS_PROVIDE_KEY,
|
|
29
29
|
STORYBOOK_TEST_FEATURES_PROVIDE_KEY,
|
|
30
30
|
STORYBOOK_TEST_INITIAL_GLOBALS_PROVIDE_KEY
|
|
31
|
-
} from "../_node-chunks/chunk-
|
|
31
|
+
} from "../_node-chunks/chunk-HTXPUKC3.js";
|
|
32
32
|
import {
|
|
33
33
|
__commonJS,
|
|
34
34
|
__esm,
|
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
__require,
|
|
37
37
|
__toCommonJS,
|
|
38
38
|
__toESM
|
|
39
|
-
} from "../_node-chunks/chunk-
|
|
39
|
+
} from "../_node-chunks/chunk-DV6UVKTZ.js";
|
|
40
40
|
|
|
41
41
|
// ../../../node_modules/braces/lib/utils.js
|
|
42
42
|
var require_utils = __commonJS({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/addon-vitest",
|
|
3
|
-
"version": "11.0.0-alpha.
|
|
3
|
+
"version": "11.0.0-alpha.3",
|
|
4
4
|
"description": "Storybook Vitest addon: Blazing fast component testing using stories",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook",
|
|
@@ -81,8 +81,8 @@
|
|
|
81
81
|
"@storybook/icons": "^2.0.2"
|
|
82
82
|
},
|
|
83
83
|
"devDependencies": {
|
|
84
|
-
"@storybook/addon-a11y": "11.0.0-alpha.
|
|
85
|
-
"@storybook/builder-vite": "11.0.0-alpha.
|
|
84
|
+
"@storybook/addon-a11y": "11.0.0-alpha.3",
|
|
85
|
+
"@storybook/builder-vite": "11.0.0-alpha.3",
|
|
86
86
|
"@types/istanbul-lib-report": "^3.0.3",
|
|
87
87
|
"@types/micromatch": "^4.0.0",
|
|
88
88
|
"@types/node": "^22.19.1",
|
|
@@ -110,7 +110,7 @@
|
|
|
110
110
|
"@vitest/browser": "^3.0.0 || ^4.0.0 || ^5.0.0",
|
|
111
111
|
"@vitest/browser-playwright": "^4.0.0 || ^5.0.0",
|
|
112
112
|
"@vitest/runner": "^3.0.0 || ^4.0.0 || ^5.0.0",
|
|
113
|
-
"storybook": "^11.0.0-alpha.
|
|
113
|
+
"storybook": "^11.0.0-alpha.3",
|
|
114
114
|
"vitest": "^3.0.0 || ^4.0.0 || ^5.0.0"
|
|
115
115
|
},
|
|
116
116
|
"peerDependenciesMeta": {
|