@storybook/addon-vitest 10.6.0 → 11.0.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.
Files changed (29) hide show
  1. package/dist/_browser-chunks/{chunk-M3DFATXT.js → chunk-P3VMEGAH.js} +3 -2
  2. package/dist/_node-chunks/{chunk-663KREDK.js → chunk-7O2KM6XB.js} +6 -6
  3. package/dist/_node-chunks/{chunk-NAWTBYUG.js → chunk-BJNMSFCV.js} +6 -6
  4. package/dist/_node-chunks/{chunk-R62V2LJK.js → chunk-FJYC3WLL.js} +7 -7
  5. package/dist/_node-chunks/{chunk-NFMPJAAG.js → chunk-IFEDTR44.js} +7 -7
  6. package/dist/_node-chunks/{chunk-WPYSC2GJ.js → chunk-PJX2NPBX.js} +7 -7
  7. package/dist/_node-chunks/{chunk-SEKG4QNQ.js → chunk-QCZYOUQU.js} +9 -9
  8. package/dist/_node-chunks/{chunk-776M6X45.js → chunk-SRJSZZF5.js} +8 -7
  9. package/dist/_node-chunks/{chunk-INJUEWZI.js → chunk-V5KQAKV7.js} +6 -6
  10. package/dist/_node-chunks/{vitest.config.4.template-4ST5CPM2.js → vitest.config.4.template-RVSXXWU2.js} +7 -7
  11. package/dist/constants.d.ts +2 -1
  12. package/dist/constants.js +10 -8
  13. package/dist/manager.js +26 -28
  14. package/dist/node/coverage-reporter.js +8 -8
  15. package/dist/node/vitest.js +37 -46
  16. package/dist/postinstall.js +33 -1024
  17. package/dist/preset.js +932 -48
  18. package/dist/vitest-plugin/global-setup.js +7 -7
  19. package/dist/vitest-plugin/index.js +14 -22
  20. package/dist/vitest-plugin/setup-file.js +6 -3
  21. package/dist/vitest-plugin/test-utils.js +2 -2
  22. package/package.json +8 -9
  23. package/dist/_node-chunks/vitest.config.3.2.template-3R6HXUAI.js +0 -52
  24. package/dist/_node-chunks/vitest.config.template-7WDRR2VA.js +0 -52
  25. package/dist/_node-chunks/vitest.workspace.template-CN4HVAEJ.js +0 -49
  26. package/dist/vitest-plugin/setup-file.browser.3.js +0 -16
  27. package/templates/vitest.config.3.2.template.ts +0 -34
  28. package/templates/vitest.config.template.ts +0 -34
  29. package/templates/vitest.workspace.template.ts +0 -31
@@ -49,7 +49,7 @@ var storeOptions = {
49
49
  }
50
50
  }
51
51
  }, FULL_RUN_TRIGGERS = ["global", "run-all"], STORE_CHANNEL_EVENT_NAME = `UNIVERSAL_STORE:${storeOptions.id}`;
52
- var STATUS_TYPE_ID_COMPONENT_TEST = "storybook/component-test", STATUS_TYPE_ID_A11Y = "storybook/a11y", STORYBOOK_TEST_PROVIDE_KEY = "storybook/test-provided", STORYBOOK_CORE_GHOST_STORIES_PROVIDE_KEY = "storybook/core-ghost-stories", STORYBOOK_CORE_RENDER_ANALYSIS_PROVIDE_KEY = "storybook/core-render-analysis", STORYBOOK_TEST_INITIAL_GLOBALS_PROVIDE_KEY = "storybook/test-initial-globals", TRIGGER_TEST_RUN_REQUEST = `${ADDON_ID3}/trigger-test-run-request`, TRIGGER_TEST_RUN_RESPONSE = `${ADDON_ID3}/trigger-test-run-response`;
52
+ var STATUS_TYPE_ID_COMPONENT_TEST = "storybook/component-test", STATUS_TYPE_ID_A11Y = "storybook/a11y", STORYBOOK_TEST_PROVIDE_KEY = "storybook/test-provided", STORYBOOK_CORE_GHOST_STORIES_PROVIDE_KEY = "storybook/core-ghost-stories", STORYBOOK_CORE_RENDER_ANALYSIS_PROVIDE_KEY = "storybook/core-render-analysis", STORYBOOK_TEST_INITIAL_GLOBALS_PROVIDE_KEY = "storybook/test-initial-globals", STORYBOOK_TEST_FEATURES_PROVIDE_KEY = "storybook/test-features", TRIGGER_TEST_RUN_REQUEST = `${ADDON_ID3}/trigger-test-run-request`, TRIGGER_TEST_RUN_RESPONSE = `${ADDON_ID3}/trigger-test-run-response`;
53
53
 
54
54
  export {
55
55
  PANEL_ID,
@@ -66,5 +66,6 @@ export {
66
66
  STORYBOOK_TEST_PROVIDE_KEY,
67
67
  STORYBOOK_CORE_GHOST_STORIES_PROVIDE_KEY,
68
68
  STORYBOOK_CORE_RENDER_ANALYSIS_PROVIDE_KEY,
69
- STORYBOOK_TEST_INITIAL_GLOBALS_PROVIDE_KEY
69
+ STORYBOOK_TEST_INITIAL_GLOBALS_PROVIDE_KEY,
70
+ STORYBOOK_TEST_FEATURES_PROVIDE_KEY
70
71
  };
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_ip34v5ijgwl from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_ip34v5ijgwl from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_ip34v5ijgwl from "node:module";
1
+ import CJS_COMPAT_NODE_URL_rfffrv0uoxe from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_rfffrv0uoxe from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_rfffrv0uoxe from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_ip34v5ijgwl.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_ip34v5ijgwl.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_ip34v5ijgwl.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_rfffrv0uoxe.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_rfffrv0uoxe.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_rfffrv0uoxe.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 CJS_COMPAT_NODE_URL_ip34v5ijgwl from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_ip34v5ijgwl from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_ip34v5ijgwl from "node:module";
1
+ import CJS_COMPAT_NODE_URL_rfffrv0uoxe from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_rfffrv0uoxe from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_rfffrv0uoxe from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_ip34v5ijgwl.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_ip34v5ijgwl.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_ip34v5ijgwl.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_rfffrv0uoxe.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_rfffrv0uoxe.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_rfffrv0uoxe.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 CJS_COMPAT_NODE_URL_ip34v5ijgwl from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_ip34v5ijgwl from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_ip34v5ijgwl from "node:module";
1
+ import CJS_COMPAT_NODE_URL_rfffrv0uoxe from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_rfffrv0uoxe from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_rfffrv0uoxe from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_ip34v5ijgwl.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_ip34v5ijgwl.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_ip34v5ijgwl.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_rfffrv0uoxe.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_rfffrv0uoxe.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_rfffrv0uoxe.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-INJUEWZI.js";
14
+ } from "./chunk-V5KQAKV7.js";
15
15
 
16
16
  // ../../../node_modules/picocolors/picocolors.js
17
17
  var require_picocolors = __commonJS({
@@ -1,17 +1,17 @@
1
- import CJS_COMPAT_NODE_URL_ip34v5ijgwl from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_ip34v5ijgwl from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_ip34v5ijgwl from "node:module";
1
+ import CJS_COMPAT_NODE_URL_rfffrv0uoxe from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_rfffrv0uoxe from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_rfffrv0uoxe from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_ip34v5ijgwl.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_ip34v5ijgwl.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_ip34v5ijgwl.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_rfffrv0uoxe.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_rfffrv0uoxe.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_rfffrv0uoxe.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-INJUEWZI.js";
14
+ } from "./chunk-V5KQAKV7.js";
15
15
 
16
16
  // ../../../node_modules/ts-dedent/dist/index.js
17
17
  var require_dist = __commonJS({
@@ -1,17 +1,17 @@
1
- import CJS_COMPAT_NODE_URL_ip34v5ijgwl from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_ip34v5ijgwl from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_ip34v5ijgwl from "node:module";
1
+ import CJS_COMPAT_NODE_URL_rfffrv0uoxe from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_rfffrv0uoxe from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_rfffrv0uoxe from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_ip34v5ijgwl.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_ip34v5ijgwl.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_ip34v5ijgwl.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_rfffrv0uoxe.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_rfffrv0uoxe.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_rfffrv0uoxe.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-INJUEWZI.js";
14
+ } from "./chunk-V5KQAKV7.js";
15
15
 
16
16
  // ../../../node_modules/semver/internal/constants.js
17
17
  var require_constants = __commonJS({
@@ -1,23 +1,23 @@
1
- import CJS_COMPAT_NODE_URL_ip34v5ijgwl from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_ip34v5ijgwl from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_ip34v5ijgwl from "node:module";
1
+ import CJS_COMPAT_NODE_URL_rfffrv0uoxe from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_rfffrv0uoxe from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_rfffrv0uoxe from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_ip34v5ijgwl.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_ip34v5ijgwl.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_ip34v5ijgwl.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_rfffrv0uoxe.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_rfffrv0uoxe.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_rfffrv0uoxe.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-R62V2LJK.js";
14
+ } from "./chunk-FJYC3WLL.js";
15
15
  import {
16
16
  ADDON_ID2 as ADDON_ID
17
- } from "./chunk-776M6X45.js";
17
+ } from "./chunk-SRJSZZF5.js";
18
18
  import {
19
19
  __toESM
20
- } from "./chunk-INJUEWZI.js";
20
+ } from "./chunk-V5KQAKV7.js";
21
21
 
22
22
  // src/logger.ts
23
23
  var import_picocolors = __toESM(require_picocolors(), 1);
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_ip34v5ijgwl from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_ip34v5ijgwl from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_ip34v5ijgwl from "node:module";
1
+ import CJS_COMPAT_NODE_URL_rfffrv0uoxe from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_rfffrv0uoxe from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_rfffrv0uoxe from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_ip34v5ijgwl.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_ip34v5ijgwl.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_ip34v5ijgwl.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_rfffrv0uoxe.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_rfffrv0uoxe.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_rfffrv0uoxe.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
@@ -58,7 +58,7 @@ var ADDON_ID3 = "storybook/test", TEST_PROVIDER_ID = `${ADDON_ID3}/test-provider
58
58
  coverageSummary: void 0
59
59
  }
60
60
  }
61
- }, FULL_RUN_TRIGGERS = ["global", "run-all"], STORE_CHANNEL_EVENT_NAME = `UNIVERSAL_STORE:${storeOptions.id}`, STATUS_STORE_CHANNEL_EVENT_NAME = "UNIVERSAL_STORE:storybook/status", TEST_PROVIDER_STORE_CHANNEL_EVENT_NAME = "UNIVERSAL_STORE:storybook/test-provider", STATUS_TYPE_ID_COMPONENT_TEST = "storybook/component-test", STATUS_TYPE_ID_A11Y = "storybook/a11y", STORYBOOK_TEST_PROVIDE_KEY = "storybook/test-provided", STORYBOOK_CORE_GHOST_STORIES_PROVIDE_KEY = "storybook/core-ghost-stories", STORYBOOK_CORE_RENDER_ANALYSIS_PROVIDE_KEY = "storybook/core-render-analysis", STORYBOOK_TEST_INITIAL_GLOBALS_PROVIDE_KEY = "storybook/test-initial-globals", TRIGGER_TEST_RUN_REQUEST = `${ADDON_ID3}/trigger-test-run-request`, TRIGGER_TEST_RUN_RESPONSE = `${ADDON_ID3}/trigger-test-run-response`;
61
+ }, FULL_RUN_TRIGGERS = ["global", "run-all"], STORE_CHANNEL_EVENT_NAME = `UNIVERSAL_STORE:${storeOptions.id}`, STATUS_STORE_CHANNEL_EVENT_NAME = "UNIVERSAL_STORE:storybook/status", TEST_PROVIDER_STORE_CHANNEL_EVENT_NAME = "UNIVERSAL_STORE:storybook/test-provider", STATUS_TYPE_ID_COMPONENT_TEST = "storybook/component-test", STATUS_TYPE_ID_A11Y = "storybook/a11y", STORYBOOK_TEST_PROVIDE_KEY = "storybook/test-provided", STORYBOOK_CORE_GHOST_STORIES_PROVIDE_KEY = "storybook/core-ghost-stories", STORYBOOK_CORE_RENDER_ANALYSIS_PROVIDE_KEY = "storybook/core-render-analysis", STORYBOOK_TEST_INITIAL_GLOBALS_PROVIDE_KEY = "storybook/test-initial-globals", STORYBOOK_TEST_FEATURES_PROVIDE_KEY = "storybook/test-features", TRIGGER_TEST_RUN_REQUEST = `${ADDON_ID3}/trigger-test-run-request`, TRIGGER_TEST_RUN_RESPONSE = `${ADDON_ID3}/trigger-test-run-response`;
62
62
 
63
63
  export {
64
64
  PANEL_ID,
@@ -82,6 +82,7 @@ export {
82
82
  STORYBOOK_CORE_GHOST_STORIES_PROVIDE_KEY,
83
83
  STORYBOOK_CORE_RENDER_ANALYSIS_PROVIDE_KEY,
84
84
  STORYBOOK_TEST_INITIAL_GLOBALS_PROVIDE_KEY,
85
+ STORYBOOK_TEST_FEATURES_PROVIDE_KEY,
85
86
  TRIGGER_TEST_RUN_REQUEST,
86
87
  TRIGGER_TEST_RUN_RESPONSE
87
88
  };
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_ip34v5ijgwl from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_ip34v5ijgwl from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_ip34v5ijgwl from "node:module";
1
+ import CJS_COMPAT_NODE_URL_rfffrv0uoxe from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_rfffrv0uoxe from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_rfffrv0uoxe from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_ip34v5ijgwl.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_ip34v5ijgwl.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_ip34v5ijgwl.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_rfffrv0uoxe.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_rfffrv0uoxe.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_rfffrv0uoxe.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 CJS_COMPAT_NODE_URL_ip34v5ijgwl from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_ip34v5ijgwl from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_ip34v5ijgwl from "node:module";
1
+ import CJS_COMPAT_NODE_URL_rfffrv0uoxe from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_rfffrv0uoxe from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_rfffrv0uoxe from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_ip34v5ijgwl.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_ip34v5ijgwl.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_ip34v5ijgwl.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_rfffrv0uoxe.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_rfffrv0uoxe.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_rfffrv0uoxe.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-INJUEWZI.js";
12
+ import "./chunk-V5KQAKV7.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';
@@ -116,6 +116,7 @@ declare const STORYBOOK_TEST_PROVIDE_KEY = "storybook/test-provided";
116
116
  declare const STORYBOOK_CORE_GHOST_STORIES_PROVIDE_KEY = "storybook/core-ghost-stories";
117
117
  declare const STORYBOOK_CORE_RENDER_ANALYSIS_PROVIDE_KEY = "storybook/core-render-analysis";
118
118
  declare const STORYBOOK_TEST_INITIAL_GLOBALS_PROVIDE_KEY = "storybook/test-initial-globals";
119
+ declare const STORYBOOK_TEST_FEATURES_PROVIDE_KEY = "storybook/test-features";
119
120
  declare const TRIGGER_TEST_RUN_REQUEST = "storybook/test/trigger-test-run-request";
120
121
  declare const TRIGGER_TEST_RUN_RESPONSE = "storybook/test/trigger-test-run-response";
121
122
  type TriggerTestRunRequestPayload = {
@@ -135,4 +136,4 @@ type TriggerTestRunResponsePayload = {
135
136
  };
136
137
  };
137
138
  //#endregion
138
- export { ADDON_ID as A11Y_ADDON_ID, PANEL_ID as A11Y_PANEL_ID, ADDON_ID$1 as ADDON_ID, PANEL_ID$1 as COMPONENT_TESTING_PANEL_ID, COVERAGE_DIRECTORY, DOCUMENTATION_FATAL_ERROR_LINK, DOCUMENTATION_LINK, FULL_RUN_TRIGGERS, STATUS_STORE_CHANNEL_EVENT_NAME, STATUS_TYPE_ID_A11Y, STATUS_TYPE_ID_COMPONENT_TEST, STORE_CHANNEL_EVENT_NAME, STORYBOOK_ADDON_TEST_CHANNEL, STORYBOOK_CORE_GHOST_STORIES_PROVIDE_KEY, STORYBOOK_CORE_RENDER_ANALYSIS_PROVIDE_KEY, STORYBOOK_TEST_INITIAL_GLOBALS_PROVIDE_KEY, STORYBOOK_TEST_PROVIDE_KEY, TEST_PROVIDER_ID, TEST_PROVIDER_STORE_CHANNEL_EVENT_NAME, TRIGGER_TEST_RUN_REQUEST, TRIGGER_TEST_RUN_RESPONSE, TUTORIAL_VIDEO_LINK, TestRunResult, TriggerTestRunRequestPayload, TriggerTestRunResponsePayload, storeOptions };
139
+ export { ADDON_ID as A11Y_ADDON_ID, PANEL_ID as A11Y_PANEL_ID, ADDON_ID$1 as ADDON_ID, PANEL_ID$1 as COMPONENT_TESTING_PANEL_ID, COVERAGE_DIRECTORY, DOCUMENTATION_FATAL_ERROR_LINK, DOCUMENTATION_LINK, FULL_RUN_TRIGGERS, STATUS_STORE_CHANNEL_EVENT_NAME, STATUS_TYPE_ID_A11Y, STATUS_TYPE_ID_COMPONENT_TEST, STORE_CHANNEL_EVENT_NAME, STORYBOOK_ADDON_TEST_CHANNEL, STORYBOOK_CORE_GHOST_STORIES_PROVIDE_KEY, STORYBOOK_CORE_RENDER_ANALYSIS_PROVIDE_KEY, STORYBOOK_TEST_FEATURES_PROVIDE_KEY, STORYBOOK_TEST_INITIAL_GLOBALS_PROVIDE_KEY, STORYBOOK_TEST_PROVIDE_KEY, TEST_PROVIDER_ID, TEST_PROVIDER_STORE_CHANNEL_EVENT_NAME, TRIGGER_TEST_RUN_REQUEST, TRIGGER_TEST_RUN_RESPONSE, TUTORIAL_VIDEO_LINK, TestRunResult, TriggerTestRunRequestPayload, TriggerTestRunResponsePayload, storeOptions };
package/dist/constants.js CHANGED
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_ip34v5ijgwl from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_ip34v5ijgwl from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_ip34v5ijgwl from "node:module";
1
+ import CJS_COMPAT_NODE_URL_rfffrv0uoxe from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_rfffrv0uoxe from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_rfffrv0uoxe from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_ip34v5ijgwl.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_ip34v5ijgwl.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_ip34v5ijgwl.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_rfffrv0uoxe.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_rfffrv0uoxe.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_rfffrv0uoxe.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
@@ -25,6 +25,7 @@ import {
25
25
  STORYBOOK_ADDON_TEST_CHANNEL,
26
26
  STORYBOOK_CORE_GHOST_STORIES_PROVIDE_KEY,
27
27
  STORYBOOK_CORE_RENDER_ANALYSIS_PROVIDE_KEY,
28
+ STORYBOOK_TEST_FEATURES_PROVIDE_KEY,
28
29
  STORYBOOK_TEST_INITIAL_GLOBALS_PROVIDE_KEY,
29
30
  STORYBOOK_TEST_PROVIDE_KEY,
30
31
  TEST_PROVIDER_ID,
@@ -33,8 +34,8 @@ import {
33
34
  TRIGGER_TEST_RUN_RESPONSE,
34
35
  TUTORIAL_VIDEO_LINK,
35
36
  storeOptions
36
- } from "./_node-chunks/chunk-776M6X45.js";
37
- import "./_node-chunks/chunk-INJUEWZI.js";
37
+ } from "./_node-chunks/chunk-SRJSZZF5.js";
38
+ import "./_node-chunks/chunk-V5KQAKV7.js";
38
39
  export {
39
40
  ADDON_ID as A11Y_ADDON_ID,
40
41
  PANEL_ID2 as A11Y_PANEL_ID,
@@ -51,6 +52,7 @@ export {
51
52
  STORYBOOK_ADDON_TEST_CHANNEL,
52
53
  STORYBOOK_CORE_GHOST_STORIES_PROVIDE_KEY,
53
54
  STORYBOOK_CORE_RENDER_ANALYSIS_PROVIDE_KEY,
55
+ STORYBOOK_TEST_FEATURES_PROVIDE_KEY,
54
56
  STORYBOOK_TEST_INITIAL_GLOBALS_PROVIDE_KEY,
55
57
  STORYBOOK_TEST_PROVIDE_KEY,
56
58
  TEST_PROVIDER_ID,
package/dist/manager.js CHANGED
@@ -13,7 +13,7 @@ import {
13
13
  STORYBOOK_ADDON_TEST_CHANNEL,
14
14
  TEST_PROVIDER_ID,
15
15
  storeOptions
16
- } from "./_browser-chunks/chunk-M3DFATXT.js";
16
+ } from "./_browser-chunks/chunk-P3VMEGAH.js";
17
17
 
18
18
  // src/manager.tsx
19
19
  import React5, { useState as useState3 } from "react";
@@ -151,17 +151,30 @@ import {
151
151
  } from "storybook/internal/components";
152
152
  import { EyeIcon, InfoIcon, PlayHollowIcon, StopAltIcon } from "@storybook/icons";
153
153
 
154
- // ../../../node_modules/@react-aria/live-announcer/dist/LiveAnnouncer.mjs
155
- var $319e236875307eab$var$liveAnnouncer = null;
156
- function $319e236875307eab$export$a9b970dcc4ae71a9(message, assertiveness = "assertive", timeout = 7e3) {
157
- $319e236875307eab$var$liveAnnouncer ? $319e236875307eab$var$liveAnnouncer.announce(message, assertiveness, timeout) : ($319e236875307eab$var$liveAnnouncer = new $319e236875307eab$var$LiveAnnouncer(), (typeof IS_REACT_ACT_ENVIRONMENT == "boolean" ? IS_REACT_ACT_ENVIRONMENT : typeof jest < "u") ? $319e236875307eab$var$liveAnnouncer.announce(message, assertiveness, timeout) : setTimeout(() => {
158
- $319e236875307eab$var$liveAnnouncer?.isAttached() && $319e236875307eab$var$liveAnnouncer?.announce(message, assertiveness, timeout);
154
+ // ../../../node_modules/react-aria/dist/private/live-announcer/LiveAnnouncer.mjs
155
+ var $a46cf152bb926da5$var$liveAnnouncer = null;
156
+ function $a46cf152bb926da5$export$a9b970dcc4ae71a9(message, assertiveness = "assertive", timeout = 7e3) {
157
+ $a46cf152bb926da5$var$liveAnnouncer ? $a46cf152bb926da5$var$liveAnnouncer.announce(message, assertiveness, timeout) : ($a46cf152bb926da5$var$liveAnnouncer = new $a46cf152bb926da5$var$LiveAnnouncer(), (typeof IS_REACT_ACT_ENVIRONMENT == "boolean" ? IS_REACT_ACT_ENVIRONMENT : typeof jest < "u") ? $a46cf152bb926da5$var$liveAnnouncer.announce(message, assertiveness, timeout) : setTimeout(() => {
158
+ $a46cf152bb926da5$var$liveAnnouncer?.isAttached() && $a46cf152bb926da5$var$liveAnnouncer?.announce(message, assertiveness, timeout);
159
159
  }, 100));
160
160
  }
161
- var $319e236875307eab$var$LiveAnnouncer = class {
161
+ var $a46cf152bb926da5$var$LiveAnnouncer = class {
162
+ constructor() {
163
+ this.node = null, this.assertiveLog = null, this.politeLog = null, typeof document < "u" && (this.node = document.createElement("div"), this.node.dataset.liveAnnouncer = "true", Object.assign(this.node.style, {
164
+ border: 0,
165
+ clip: "rect(0 0 0 0)",
166
+ clipPath: "inset(50%)",
167
+ height: "1px",
168
+ margin: "-1px",
169
+ overflow: "hidden",
170
+ padding: 0,
171
+ position: "absolute",
172
+ width: "1px",
173
+ whiteSpace: "nowrap"
174
+ }), this.assertiveLog = this.createLog("assertive"), this.node.appendChild(this.assertiveLog), this.politeLog = this.createLog("polite"), this.node.appendChild(this.politeLog), document.body.prepend(this.node));
175
+ }
162
176
  isAttached() {
163
- var _this_node;
164
- return (_this_node = this.node) === null || _this_node === void 0 ? void 0 : _this_node.isConnected;
177
+ return this.node?.isConnected;
165
178
  }
166
179
  createLog(ariaLive) {
167
180
  let node = document.createElement("div");
@@ -171,30 +184,15 @@ var $319e236875307eab$var$LiveAnnouncer = class {
171
184
  this.node && (document.body.removeChild(this.node), this.node = null);
172
185
  }
173
186
  announce(message, assertiveness = "assertive", timeout = 7e3) {
174
- var _this_assertiveLog, _this_politeLog;
175
187
  if (!this.node) return;
176
188
  let node = document.createElement("div");
177
- typeof message == "object" ? (node.setAttribute("role", "img"), node.setAttribute("aria-labelledby", message["aria-labelledby"])) : node.textContent = message, assertiveness === "assertive" ? (_this_assertiveLog = this.assertiveLog) === null || _this_assertiveLog === void 0 || _this_assertiveLog.appendChild(node) : (_this_politeLog = this.politeLog) === null || _this_politeLog === void 0 || _this_politeLog.appendChild(node), message !== "" && setTimeout(() => {
189
+ typeof message == "object" ? (node.setAttribute("role", "img"), node.setAttribute("aria-labelledby", message["aria-labelledby"])) : node.textContent = message, assertiveness === "assertive" ? this.assertiveLog?.appendChild(node) : this.politeLog?.appendChild(node), message !== "" && setTimeout(() => {
178
190
  node.remove();
179
191
  }, timeout);
180
192
  }
181
193
  clear(assertiveness) {
182
194
  this.node && ((!assertiveness || assertiveness === "assertive") && this.assertiveLog && (this.assertiveLog.innerHTML = ""), (!assertiveness || assertiveness === "polite") && this.politeLog && (this.politeLog.innerHTML = ""));
183
195
  }
184
- constructor() {
185
- this.node = null, this.assertiveLog = null, this.politeLog = null, typeof document < "u" && (this.node = document.createElement("div"), this.node.dataset.liveAnnouncer = "true", Object.assign(this.node.style, {
186
- border: 0,
187
- clip: "rect(0 0 0 0)",
188
- clipPath: "inset(50%)",
189
- height: "1px",
190
- margin: "-1px",
191
- overflow: "hidden",
192
- padding: 0,
193
- position: "absolute",
194
- width: "1px",
195
- whiteSpace: "nowrap"
196
- }), this.assertiveLog = this.createLog("assertive"), this.node.appendChild(this.assertiveLog), this.politeLog = this.createLog("polite"), this.node.appendChild(this.politeLog), document.body.prepend(this.node));
197
- }
198
196
  };
199
197
 
200
198
  // src/components/TestProviderRender.tsx
@@ -346,9 +344,9 @@ var Container = styled4.div(({ inContextMenu }) => ({
346
344
  let prevState = prevTestProviderStateRef.current;
347
345
  if (prevTestProviderStateRef.current = testProviderState, prevState !== testProviderState) {
348
346
  if (testProviderState === "test-provider-state:running")
349
- $319e236875307eab$export$a9b970dcc4ae71a9("Test run started.", "polite");
347
+ $a46cf152bb926da5$export$a9b970dcc4ae71a9("Test run started.", "polite");
350
348
  else if (testProviderState === "test-provider-state:crashed")
351
- $319e236875307eab$export$a9b970dcc4ae71a9("Test run crashed.", "assertive");
349
+ $a46cf152bb926da5$export$a9b970dcc4ae71a9("Test run crashed.", "assertive");
352
350
  else if (testProviderState === "test-provider-state:succeeded" && prevState === "test-provider-state:running") {
353
351
  let parts = [], errorCount = componentTestStatusValueToStoryIds["status-value:error"].length, warningCount = componentTestStatusValueToStoryIds["status-value:warning"].length, passedCount = componentTestStatusValueToStoryIds["status-value:success"].length;
354
352
  errorCount > 0 && parts.push(`${errorCount} ${errorCount === 1 ? "component" : "components"} errored`), warningCount > 0 && parts.push(
@@ -365,7 +363,7 @@ var Container = styled4.div(({ inContextMenu }) => ({
365
363
  );
366
364
  }
367
365
  let message = parts.length > 0 ? `Test run finished. ${parts.join(", ")}.` : "Test run finished. No results.", hasErrors = errorCount > 0 || hasA11yAddon && a11yErrorCount > 0;
368
- $319e236875307eab$export$a9b970dcc4ae71a9(message, hasErrors ? "assertive" : "polite");
366
+ $a46cf152bb926da5$export$a9b970dcc4ae71a9(message, hasErrors ? "assertive" : "polite");
369
367
  }
370
368
  }
371
369
  }, [
@@ -1,22 +1,22 @@
1
- import CJS_COMPAT_NODE_URL_ip34v5ijgwl from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_ip34v5ijgwl from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_ip34v5ijgwl from "node:module";
1
+ import CJS_COMPAT_NODE_URL_rfffrv0uoxe from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_rfffrv0uoxe from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_rfffrv0uoxe from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_ip34v5ijgwl.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_ip34v5ijgwl.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_ip34v5ijgwl.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_rfffrv0uoxe.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_rfffrv0uoxe.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_rfffrv0uoxe.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-WPYSC2GJ.js";
14
+ } from "../_node-chunks/chunk-PJX2NPBX.js";
15
15
  import {
16
16
  __commonJS,
17
17
  __require,
18
18
  __toESM
19
- } from "../_node-chunks/chunk-INJUEWZI.js";
19
+ } from "../_node-chunks/chunk-V5KQAKV7.js";
20
20
 
21
21
  // ../../../node_modules/istanbul-lib-report/node_modules/make-dir/index.js
22
22
  var require_make_dir = __commonJS({