@storybook/addon-vitest 11.0.0-beta.1 → 11.0.0-beta.2
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-H4T7M5H2.js → chunk-BIBVDNHH.js} +6 -6
- package/dist/_node-chunks/{chunk-EZ2GJA55.js → chunk-DX5XAAV3.js} +9 -9
- package/dist/_node-chunks/{chunk-QJJWKVEL.js → chunk-H6P4MQ2A.js} +6 -6
- package/dist/_node-chunks/{chunk-4O3ELV7Z.js → chunk-KU7SQ3KB.js} +6 -6
- package/dist/_node-chunks/{chunk-F4S6LH6A.js → chunk-M4HPIOHU.js} +6 -6
- package/dist/_node-chunks/{chunk-M6KGRZCR.js → chunk-SXATVQ73.js} +7 -7
- package/dist/_node-chunks/{chunk-AWFFQZGX.js → chunk-YLZRXWKY.js} +7 -7
- package/dist/_node-chunks/{vitest.config.4.template-D5LCIFQF.js → vitest.config.4.template-G2P77GDP.js} +7 -7
- package/dist/constants.js +8 -8
- package/dist/manager.js +0 -7
- package/dist/node/coverage-reporter.js +7 -7
- package/dist/node/vitest.js +12 -12
- package/dist/postinstall.js +12 -12
- package/dist/preset.js +27 -17
- package/dist/vitest-plugin/global-setup.js +7 -7
- package/dist/vitest-plugin/index.js +11 -11
- package/package.json +4 -4
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_ycvuvp62uk from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_ycvuvp62uk from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_ycvuvp62uk from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_ycvuvp62uk.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_ycvuvp62uk.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_ycvuvp62uk.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_ycvuvp62uk from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_ycvuvp62uk from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_ycvuvp62uk from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_ycvuvp62uk.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_ycvuvp62uk.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_ycvuvp62uk.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-SXATVQ73.js";
|
|
15
15
|
import {
|
|
16
16
|
ADDON_ID2 as ADDON_ID
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-M4HPIOHU.js";
|
|
18
18
|
import {
|
|
19
19
|
__toESM
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-BIBVDNHH.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_ycvuvp62uk from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_ycvuvp62uk from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_ycvuvp62uk from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_ycvuvp62uk.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_ycvuvp62uk.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_ycvuvp62uk.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_ycvuvp62uk from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_ycvuvp62uk from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_ycvuvp62uk from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_ycvuvp62uk.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_ycvuvp62uk.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_ycvuvp62uk.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_ycvuvp62uk from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_ycvuvp62uk from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_ycvuvp62uk from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_ycvuvp62uk.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_ycvuvp62uk.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_ycvuvp62uk.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_ycvuvp62uk from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_ycvuvp62uk from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_ycvuvp62uk from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_ycvuvp62uk.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_ycvuvp62uk.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_ycvuvp62uk.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-BIBVDNHH.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_ycvuvp62uk from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_ycvuvp62uk from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_ycvuvp62uk from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_ycvuvp62uk.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_ycvuvp62uk.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_ycvuvp62uk.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-BIBVDNHH.js";
|
|
15
15
|
|
|
16
16
|
// ../../../node_modules/ts-dedent/dist/index.js
|
|
17
17
|
var require_dist = __commonJS({
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_ycvuvp62uk from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_ycvuvp62uk from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_ycvuvp62uk from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_ycvuvp62uk.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_ycvuvp62uk.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_ycvuvp62uk.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-BIBVDNHH.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_ycvuvp62uk from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_ycvuvp62uk from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_ycvuvp62uk from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_ycvuvp62uk.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_ycvuvp62uk.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_ycvuvp62uk.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-M4HPIOHU.js";
|
|
39
|
+
import "./_node-chunks/chunk-BIBVDNHH.js";
|
|
40
40
|
export {
|
|
41
41
|
ADDON_ID as A11Y_ADDON_ID,
|
|
42
42
|
PANEL_ID2 as A11Y_PANEL_ID,
|
package/dist/manager.js
CHANGED
|
@@ -565,13 +565,6 @@ addons2.register(ADDON_ID2, (api) => {
|
|
|
565
565
|
openPanel2(PANEL_ID);
|
|
566
566
|
}), a11yStatusStore.onSelect(() => {
|
|
567
567
|
openPanel2(PANEL_ID2);
|
|
568
|
-
}), testProviderStore.onRunAll(() => {
|
|
569
|
-
store.send({
|
|
570
|
-
type: "TRIGGER_RUN",
|
|
571
|
-
payload: {
|
|
572
|
-
triggeredBy: "run-all"
|
|
573
|
-
}
|
|
574
|
-
});
|
|
575
568
|
}), store.subscribe("TEST_RUN_COMPLETED", ({ payload }) => {
|
|
576
569
|
api.emit(STORYBOOK_ADDON_TEST_CHANNEL, { type: "test-run-completed", payload });
|
|
577
570
|
}), addons2.add(TEST_PROVIDER_ID, {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_ycvuvp62uk from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_ycvuvp62uk from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_ycvuvp62uk from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_ycvuvp62uk.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_ycvuvp62uk.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_ycvuvp62uk.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-BIBVDNHH.js";
|
|
17
17
|
|
|
18
18
|
// ../../../node_modules/semver/internal/debug.js
|
|
19
19
|
var require_debug = __commonJS({
|
package/dist/node/vitest.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_ycvuvp62uk from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_ycvuvp62uk from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_ycvuvp62uk from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_ycvuvp62uk.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_ycvuvp62uk.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_ycvuvp62uk.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-DX5XAAV3.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-KU7SQ3KB.js";
|
|
21
|
+
import "../_node-chunks/chunk-SXATVQ73.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-H6P4MQ2A.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-M4HPIOHU.js";
|
|
38
|
+
import "../_node-chunks/chunk-BIBVDNHH.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_ycvuvp62uk from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_ycvuvp62uk from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_ycvuvp62uk from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_ycvuvp62uk.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_ycvuvp62uk.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_ycvuvp62uk.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-KU7SQ3KB.js";
|
|
15
15
|
import {
|
|
16
16
|
require_dist
|
|
17
|
-
} from "./_node-chunks/chunk-
|
|
17
|
+
} from "./_node-chunks/chunk-YLZRXWKY.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-H6P4MQ2A.js";
|
|
24
24
|
import {
|
|
25
25
|
DOCUMENTATION_LINK
|
|
26
|
-
} from "./_node-chunks/chunk-
|
|
26
|
+
} from "./_node-chunks/chunk-M4HPIOHU.js";
|
|
27
27
|
import {
|
|
28
28
|
__toESM
|
|
29
|
-
} from "./_node-chunks/chunk-
|
|
29
|
+
} from "./_node-chunks/chunk-BIBVDNHH.js";
|
|
30
30
|
|
|
31
31
|
// src/postinstall.ts
|
|
32
32
|
import * as fs from "node:fs/promises";
|
|
@@ -130,7 +130,7 @@ import {
|
|
|
130
130
|
staticKey
|
|
131
131
|
} from "storybook/internal/csf-tools";
|
|
132
132
|
async function getTemplatePath() {
|
|
133
|
-
return import("./_node-chunks/vitest.config.4.template-
|
|
133
|
+
return import("./_node-chunks/vitest.config.4.template-G2P77GDP.js");
|
|
134
134
|
}
|
|
135
135
|
var loadTemplate = async (name, replacements) => {
|
|
136
136
|
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_ycvuvp62uk from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_ycvuvp62uk from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_ycvuvp62uk from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_ycvuvp62uk.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_ycvuvp62uk.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_ycvuvp62uk.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-DX5XAAV3.js";
|
|
18
18
|
import {
|
|
19
19
|
require_picocolors
|
|
20
|
-
} from "./_node-chunks/chunk-
|
|
20
|
+
} from "./_node-chunks/chunk-SXATVQ73.js";
|
|
21
21
|
import {
|
|
22
22
|
require_dist
|
|
23
|
-
} from "./_node-chunks/chunk-
|
|
23
|
+
} from "./_node-chunks/chunk-YLZRXWKY.js";
|
|
24
24
|
import {
|
|
25
25
|
normalize
|
|
26
|
-
} from "./_node-chunks/chunk-
|
|
26
|
+
} from "./_node-chunks/chunk-H6P4MQ2A.js";
|
|
27
27
|
import {
|
|
28
28
|
ADDON_ID2 as ADDON_ID,
|
|
29
29
|
COVERAGE_DIRECTORY,
|
|
@@ -35,10 +35,10 @@ 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-M4HPIOHU.js";
|
|
39
39
|
import {
|
|
40
40
|
__toESM
|
|
41
|
-
} from "./_node-chunks/chunk-
|
|
41
|
+
} from "./_node-chunks/chunk-BIBVDNHH.js";
|
|
42
42
|
|
|
43
43
|
// src/preset.ts
|
|
44
44
|
var import_picocolors = __toESM(require_picocolors(), 1), import_ts_dedent = __toESM(require_dist(), 1);
|
|
@@ -547,6 +547,13 @@ var resolvePreviewBuilderName = (core) => typeof core?.builder == "string" ? cor
|
|
|
547
547
|
error
|
|
548
548
|
}
|
|
549
549
|
})), testProviderStore.setState("test-provider-state:crashed");
|
|
550
|
+
}), testProviderStore.onRunAll(() => {
|
|
551
|
+
store.send({
|
|
552
|
+
type: "TRIGGER_RUN",
|
|
553
|
+
payload: {
|
|
554
|
+
triggeredBy: "run-all"
|
|
555
|
+
}
|
|
556
|
+
});
|
|
550
557
|
}), testProviderStore.onClearAll(() => {
|
|
551
558
|
store.setState((s) => ({
|
|
552
559
|
...s,
|
|
@@ -1228,7 +1235,8 @@ import {
|
|
|
1228
1235
|
storyInputArraySchema
|
|
1229
1236
|
} from "storybook/internal/core-server";
|
|
1230
1237
|
import {
|
|
1231
|
-
defineToolset
|
|
1238
|
+
defineToolset,
|
|
1239
|
+
getSkillCommand
|
|
1232
1240
|
} from "storybook/open-service";
|
|
1233
1241
|
|
|
1234
1242
|
// src/node/toolset/format.ts
|
|
@@ -1622,7 +1630,7 @@ var errorLikeSchema = object({
|
|
|
1622
1630
|
description(
|
|
1623
1631
|
`Stories to test for focused feedback. Omit this field to run tests for all available stories.
|
|
1624
1632
|
Prefer running tests for specific stories while developing to get faster feedback,
|
|
1625
|
-
and
|
|
1633
|
+
and omit it once before you finish, to verify every story.
|
|
1626
1634
|
Prefer { storyId } when you don't already have story file context, since this avoids filesystem discovery.
|
|
1627
1635
|
Use { storyId } when IDs were discovered from documentation tools.
|
|
1628
1636
|
Use { absoluteStoryPath + exportName } only when you're currently working in a story file and already know those values.`
|
|
@@ -1639,8 +1647,10 @@ Use { absoluteStoryPath + exportName } only when you're currently working in a s
|
|
|
1639
1647
|
!0
|
|
1640
1648
|
)
|
|
1641
1649
|
});
|
|
1642
|
-
function describeRun(a11yEnabled) {
|
|
1643
|
-
|
|
1650
|
+
function describeRun(a11yEnabled, ctx) {
|
|
1651
|
+
let skill = getSkillCommand(ctx)("test-stories");
|
|
1652
|
+
return `Run story tests.${skill ? `
|
|
1653
|
+
First run ${skill} once and follow it: it has the rules for running the tests and fixing what fails.` : ""}
|
|
1644
1654
|
Run them after editing anything that changes how the UI looks \u2014 components, stories, styles, CSS, themes, colors, or design tokens \u2014 shell-level substitutes like typecheck, lint, or package.json test scripts do not replace this.
|
|
1645
1655
|
Provide stories for focused runs (faster while iterating),
|
|
1646
1656
|
or omit stories to run all tests for full-project verification.
|
|
@@ -1699,7 +1709,7 @@ function createTestToolset({
|
|
|
1699
1709
|
run: {
|
|
1700
1710
|
input: runInputSchema,
|
|
1701
1711
|
title: "Run Storybook tests",
|
|
1702
|
-
description: describeRun(a11yEnabled),
|
|
1712
|
+
description: (ctx) => describeRun(a11yEnabled, ctx),
|
|
1703
1713
|
handler: async (input, ctx) => {
|
|
1704
1714
|
let done = await queue.wait();
|
|
1705
1715
|
try {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_ycvuvp62uk from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_ycvuvp62uk from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_ycvuvp62uk from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_ycvuvp62uk.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_ycvuvp62uk.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_ycvuvp62uk.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-BIBVDNHH.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_ycvuvp62uk from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_ycvuvp62uk from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_ycvuvp62uk from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_ycvuvp62uk.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_ycvuvp62uk.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_ycvuvp62uk.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-SXATVQ73.js";
|
|
15
15
|
import {
|
|
16
16
|
require_dist
|
|
17
|
-
} from "../_node-chunks/chunk-
|
|
17
|
+
} from "../_node-chunks/chunk-YLZRXWKY.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-H6P4MQ2A.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-M4HPIOHU.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-BIBVDNHH.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-beta.
|
|
3
|
+
"version": "11.0.0-beta.2",
|
|
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-beta.
|
|
85
|
-
"@storybook/builder-vite": "11.0.0-beta.
|
|
84
|
+
"@storybook/addon-a11y": "11.0.0-beta.2",
|
|
85
|
+
"@storybook/builder-vite": "11.0.0-beta.2",
|
|
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
|
"peerDependencies": {
|
|
111
111
|
"@vitest/browser": "^4.0.0 || ^5.0.0",
|
|
112
112
|
"@vitest/browser-playwright": "^4.0.0 || ^5.0.0",
|
|
113
|
-
"storybook": "^11.0.0-beta.
|
|
113
|
+
"storybook": "^11.0.0-beta.2",
|
|
114
114
|
"vitest": "^4.0.0 || ^5.0.0"
|
|
115
115
|
},
|
|
116
116
|
"peerDependenciesMeta": {
|