@storybook/addon-vitest 10.3.0-alpha.7 → 10.3.0-alpha.8

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.
@@ -19,7 +19,7 @@ var storeOptions = {
19
19
  watching: !1,
20
20
  cancelling: !1,
21
21
  fatalError: void 0,
22
- indexUrl: void 0,
22
+ index: { entries: {}, v: 5 },
23
23
  previewAnnotations: [],
24
24
  currentRun: {
25
25
  triggeredBy: void 0,
@@ -27,6 +27,9 @@ var storeOptions = {
27
27
  coverage: !1,
28
28
  a11y: !1
29
29
  },
30
+ componentTestStatuses: [],
31
+ a11yStatuses: [],
32
+ a11yReports: {},
30
33
  componentTestCount: {
31
34
  success: 0,
32
35
  error: 0
@@ -45,7 +48,7 @@ var storeOptions = {
45
48
  }
46
49
  }
47
50
  }, FULL_RUN_TRIGGERS = ["global", "run-all"], STORE_CHANNEL_EVENT_NAME = `UNIVERSAL_STORE:${storeOptions.id}`;
48
- var STATUS_TYPE_ID_COMPONENT_TEST = "storybook/component-test", STATUS_TYPE_ID_A11Y = "storybook/a11y";
51
+ var STATUS_TYPE_ID_COMPONENT_TEST = "storybook/component-test", STATUS_TYPE_ID_A11Y = "storybook/a11y", TRIGGER_TEST_RUN_REQUEST = `${ADDON_ID3}/trigger-test-run-request`, TRIGGER_TEST_RUN_RESPONSE = `${ADDON_ID3}/trigger-test-run-response`;
49
52
 
50
53
  export {
51
54
  PANEL_ID,
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_g0psqpo75ib from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_g0psqpo75ib from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_g0psqpo75ib from "node:module";
1
+ import CJS_COMPAT_NODE_URL_kcvris1e0og from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_kcvris1e0og from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_kcvris1e0og from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_g0psqpo75ib.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_g0psqpo75ib.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_g0psqpo75ib.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_kcvris1e0og.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_kcvris1e0og.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_kcvris1e0og.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_g0psqpo75ib from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_g0psqpo75ib from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_g0psqpo75ib from "node:module";
1
+ import CJS_COMPAT_NODE_URL_kcvris1e0og from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_kcvris1e0og from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_kcvris1e0og from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_g0psqpo75ib.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_g0psqpo75ib.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_g0psqpo75ib.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_kcvris1e0og.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_kcvris1e0og.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_kcvris1e0og.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-V75YOJAB.js";
14
+ } from "./chunk-CMEPFTWL.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_g0psqpo75ib from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_g0psqpo75ib from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_g0psqpo75ib from "node:module";
1
+ import CJS_COMPAT_NODE_URL_kcvris1e0og from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_kcvris1e0og from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_kcvris1e0og from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_g0psqpo75ib.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_g0psqpo75ib.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_g0psqpo75ib.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_kcvris1e0og.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_kcvris1e0og.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_kcvris1e0og.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
- ADDON_ID
14
- } from "./chunk-YY2HJHG6.js";
13
+ ADDON_ID2 as ADDON_ID
14
+ } from "./chunk-PPDGQAGO.js";
15
15
  import {
16
16
  require_picocolors
17
- } from "./chunk-MVGTYBTG.js";
17
+ } from "./chunk-XMFVMTKT.js";
18
18
  import {
19
19
  __toESM
20
- } from "./chunk-V75YOJAB.js";
20
+ } from "./chunk-CMEPFTWL.js";
21
21
 
22
22
  // src/logger.ts
23
23
  var import_picocolors = __toESM(require_picocolors(), 1);
@@ -1,17 +1,17 @@
1
- import CJS_COMPAT_NODE_URL_g0psqpo75ib from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_g0psqpo75ib from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_g0psqpo75ib from "node:module";
1
+ import CJS_COMPAT_NODE_URL_kcvris1e0og from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_kcvris1e0og from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_kcvris1e0og from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_g0psqpo75ib.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_g0psqpo75ib.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_g0psqpo75ib.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_kcvris1e0og.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_kcvris1e0og.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_kcvris1e0og.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-V75YOJAB.js";
14
+ } from "./chunk-CMEPFTWL.js";
15
15
 
16
16
  // ../../../node_modules/ts-dedent/dist/index.js
17
17
  var require_dist = __commonJS({
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_g0psqpo75ib from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_g0psqpo75ib from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_g0psqpo75ib from "node:module";
1
+ import CJS_COMPAT_NODE_URL_kcvris1e0og from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_kcvris1e0og from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_kcvris1e0og from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_g0psqpo75ib.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_g0psqpo75ib.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_g0psqpo75ib.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_kcvris1e0og.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_kcvris1e0og.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_kcvris1e0og.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_g0psqpo75ib from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_g0psqpo75ib from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_g0psqpo75ib from "node:module";
1
+ import CJS_COMPAT_NODE_URL_kcvris1e0og from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_kcvris1e0og from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_kcvris1e0og from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_g0psqpo75ib.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_g0psqpo75ib.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_g0psqpo75ib.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_kcvris1e0og.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_kcvris1e0og.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_kcvris1e0og.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
@@ -19,8 +19,7 @@ var ADDON_ID2 = "storybook/a11y", PANEL_ID2 = `${ADDON_ID2}/panel`;
19
19
  var UI_STATE_ID = `${ADDON_ID2}/ui`, RESULT = `${ADDON_ID2}/result`, REQUEST = `${ADDON_ID2}/request`, RUNNING = `${ADDON_ID2}/running`, ERROR = `${ADDON_ID2}/error`, MANUAL = `${ADDON_ID2}/manual`, SELECT = `${ADDON_ID2}/select`, DOCUMENTATION_LINK2 = "writing-tests/accessibility-testing", DOCUMENTATION_DISCREPANCY_LINK2 = `${DOCUMENTATION_LINK2}#why-are-my-tests-failing-in-different-environments`;
20
20
 
21
21
  // src/constants.ts
22
- var ADDON_ID3 = "storybook/test", TEST_PROVIDER_ID = `${ADDON_ID3}/test-provider`, STORYBOOK_ADDON_TEST_CHANNEL = `${ADDON_ID3}/channel`;
23
- var DOCUMENTATION_LINK3 = "writing-tests/integrations/vitest-addon", DOCUMENTATION_FATAL_ERROR_LINK = `${DOCUMENTATION_LINK3}#what-happens-if-vitest-itself-has-an-error`, COVERAGE_DIRECTORY = "coverage", storeOptions = {
22
+ var ADDON_ID3 = "storybook/test", TEST_PROVIDER_ID = `${ADDON_ID3}/test-provider`, STORYBOOK_ADDON_TEST_CHANNEL = `${ADDON_ID3}/channel`, TUTORIAL_VIDEO_LINK = "https://youtu.be/Waht9qq7AoA", DOCUMENTATION_LINK3 = "writing-tests/integrations/vitest-addon", DOCUMENTATION_FATAL_ERROR_LINK = `${DOCUMENTATION_LINK3}#what-happens-if-vitest-itself-has-an-error`, COVERAGE_DIRECTORY = "coverage", storeOptions = {
24
23
  id: ADDON_ID3,
25
24
  initialState: {
26
25
  config: {
@@ -30,7 +29,7 @@ var DOCUMENTATION_LINK3 = "writing-tests/integrations/vitest-addon", DOCUMENTATI
30
29
  watching: !1,
31
30
  cancelling: !1,
32
31
  fatalError: void 0,
33
- indexUrl: void 0,
32
+ index: { entries: {}, v: 5 },
34
33
  previewAnnotations: [],
35
34
  currentRun: {
36
35
  triggeredBy: void 0,
@@ -38,6 +37,9 @@ var DOCUMENTATION_LINK3 = "writing-tests/integrations/vitest-addon", DOCUMENTATI
38
37
  coverage: !1,
39
38
  a11y: !1
40
39
  },
40
+ componentTestStatuses: [],
41
+ a11yStatuses: [],
42
+ a11yReports: {},
41
43
  componentTestCount: {
42
44
  success: 0,
43
45
  error: 0
@@ -55,18 +57,26 @@ var DOCUMENTATION_LINK3 = "writing-tests/integrations/vitest-addon", DOCUMENTATI
55
57
  coverageSummary: void 0
56
58
  }
57
59
  }
58
- };
59
- var 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";
60
+ }, 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", TRIGGER_TEST_RUN_REQUEST = `${ADDON_ID3}/trigger-test-run-request`, TRIGGER_TEST_RUN_RESPONSE = `${ADDON_ID3}/trigger-test-run-response`;
60
61
 
61
62
  export {
62
- ADDON_ID3 as ADDON_ID,
63
+ PANEL_ID,
64
+ ADDON_ID2 as ADDON_ID,
65
+ PANEL_ID2,
66
+ ADDON_ID3 as ADDON_ID2,
67
+ TEST_PROVIDER_ID,
63
68
  STORYBOOK_ADDON_TEST_CHANNEL,
69
+ TUTORIAL_VIDEO_LINK,
64
70
  DOCUMENTATION_LINK3 as DOCUMENTATION_LINK,
71
+ DOCUMENTATION_FATAL_ERROR_LINK,
65
72
  COVERAGE_DIRECTORY,
66
73
  storeOptions,
74
+ FULL_RUN_TRIGGERS,
67
75
  STORE_CHANNEL_EVENT_NAME,
68
76
  STATUS_STORE_CHANNEL_EVENT_NAME,
69
77
  TEST_PROVIDER_STORE_CHANNEL_EVENT_NAME,
70
78
  STATUS_TYPE_ID_COMPONENT_TEST,
71
- STATUS_TYPE_ID_A11Y
79
+ STATUS_TYPE_ID_A11Y,
80
+ TRIGGER_TEST_RUN_REQUEST,
81
+ TRIGGER_TEST_RUN_RESPONSE
72
82
  };
@@ -1,17 +1,17 @@
1
- import CJS_COMPAT_NODE_URL_g0psqpo75ib from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_g0psqpo75ib from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_g0psqpo75ib from "node:module";
1
+ import CJS_COMPAT_NODE_URL_kcvris1e0og from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_kcvris1e0og from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_kcvris1e0og from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_g0psqpo75ib.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_g0psqpo75ib.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_g0psqpo75ib.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_kcvris1e0og.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_kcvris1e0og.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_kcvris1e0og.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-V75YOJAB.js";
14
+ } from "./chunk-CMEPFTWL.js";
15
15
 
16
16
  // ../../../node_modules/picocolors/picocolors.js
17
17
  var require_picocolors = __commonJS({
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_g0psqpo75ib from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_g0psqpo75ib from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_g0psqpo75ib from "node:module";
1
+ import CJS_COMPAT_NODE_URL_kcvris1e0og from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_kcvris1e0og from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_kcvris1e0og from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_g0psqpo75ib.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_g0psqpo75ib.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_g0psqpo75ib.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_kcvris1e0og.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_kcvris1e0og.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_kcvris1e0og.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_g0psqpo75ib from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_g0psqpo75ib from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_g0psqpo75ib from "node:module";
1
+ import CJS_COMPAT_NODE_URL_kcvris1e0og from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_kcvris1e0og from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_kcvris1e0og from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_g0psqpo75ib.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_g0psqpo75ib.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_g0psqpo75ib.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_kcvris1e0og.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_kcvris1e0og.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_kcvris1e0og.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-V75YOJAB.js";
12
+ import "./chunk-CMEPFTWL.js";
13
13
 
14
14
  // raw:../templates/vitest.config.template
15
15
  var vitest_config_default = `import path from 'node:path';
@@ -1,15 +1,15 @@
1
- import CJS_COMPAT_NODE_URL_g0psqpo75ib from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_g0psqpo75ib from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_g0psqpo75ib from "node:module";
1
+ import CJS_COMPAT_NODE_URL_kcvris1e0og from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_kcvris1e0og from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_kcvris1e0og from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_g0psqpo75ib.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_g0psqpo75ib.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_g0psqpo75ib.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_kcvris1e0og.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_kcvris1e0og.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_kcvris1e0og.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-V75YOJAB.js";
12
+ import "./chunk-CMEPFTWL.js";
13
13
 
14
14
  // raw:../templates/vitest.config.3.2.template
15
15
  var vitest_config_3_2_default = `import path from 'node:path';
@@ -1,15 +1,15 @@
1
- import CJS_COMPAT_NODE_URL_g0psqpo75ib from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_g0psqpo75ib from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_g0psqpo75ib from "node:module";
1
+ import CJS_COMPAT_NODE_URL_kcvris1e0og from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_kcvris1e0og from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_kcvris1e0og from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_g0psqpo75ib.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_g0psqpo75ib.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_g0psqpo75ib.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_kcvris1e0og.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_kcvris1e0og.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_kcvris1e0og.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-V75YOJAB.js";
12
+ import "./chunk-CMEPFTWL.js";
13
13
 
14
14
  // raw:../templates/vitest.config.4.template
15
15
  var vitest_config_4_default = `import path from 'node:path';
@@ -1,15 +1,15 @@
1
- import CJS_COMPAT_NODE_URL_g0psqpo75ib from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_g0psqpo75ib from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_g0psqpo75ib from "node:module";
1
+ import CJS_COMPAT_NODE_URL_kcvris1e0og from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_kcvris1e0og from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_kcvris1e0og from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_g0psqpo75ib.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_g0psqpo75ib.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_g0psqpo75ib.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_kcvris1e0og.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_kcvris1e0og.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_kcvris1e0og.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-V75YOJAB.js";
12
+ import "./chunk-CMEPFTWL.js";
13
13
 
14
14
  // raw:../templates/vitest.workspace.template
15
15
  var vitest_workspace_default = `import path from 'node:path';
@@ -0,0 +1,141 @@
1
+ import { API_HashEntry, StoryIndex, PreviewAnnotation, Status, StoryId } from 'storybook/internal/types';
2
+
3
+ type A11yReport = any;
4
+ interface VitestError extends Error {
5
+ VITEST_TEST_PATH?: string;
6
+ VITEST_TEST_NAME?: string;
7
+ stacks?: Array<{
8
+ line: number;
9
+ column: number;
10
+ file: string;
11
+ method: string;
12
+ }>;
13
+ }
14
+ type ErrorLike = {
15
+ message: string;
16
+ name?: string;
17
+ stack?: string;
18
+ cause?: ErrorLike;
19
+ };
20
+ type RunTrigger = 'run-all' | 'global' | 'watch' | Extract<API_HashEntry['type'], string> | `external:${string}`;
21
+ type CurrentRun = {
22
+ triggeredBy: RunTrigger | undefined;
23
+ config: StoreState['config'];
24
+ componentTestStatuses: Status[];
25
+ a11yStatuses: Status[];
26
+ componentTestCount: {
27
+ success: number;
28
+ error: number;
29
+ };
30
+ a11yCount: {
31
+ success: number;
32
+ warning: number;
33
+ error: number;
34
+ };
35
+ a11yReports: Record<StoryId, A11yReport[]>;
36
+ totalTestCount: number | undefined;
37
+ storyIds: StoryId[] | undefined;
38
+ startedAt: number | undefined;
39
+ finishedAt: number | undefined;
40
+ unhandledErrors: VitestError[];
41
+ coverageSummary: {
42
+ status: 'positive' | 'warning' | 'negative' | 'unknown';
43
+ percentage: number;
44
+ } | undefined;
45
+ };
46
+ type StoreState = {
47
+ config: {
48
+ coverage: boolean;
49
+ a11y: boolean;
50
+ };
51
+ watching: boolean;
52
+ cancelling: boolean;
53
+ index: StoryIndex;
54
+ previewAnnotations: PreviewAnnotation[];
55
+ fatalError: {
56
+ message: string | undefined;
57
+ error: ErrorLike;
58
+ } | undefined;
59
+ currentRun: CurrentRun;
60
+ };
61
+
62
+ declare const PANEL_ID$1 = "storybook/interactions/panel";
63
+
64
+ declare const ADDON_ID$1 = "storybook/a11y";
65
+ declare const PANEL_ID = "storybook/a11y/panel";
66
+
67
+ declare const ADDON_ID = "storybook/test";
68
+ declare const TEST_PROVIDER_ID = "storybook/test/test-provider";
69
+ declare const STORYBOOK_ADDON_TEST_CHANNEL = "storybook/test/channel";
70
+ declare const TUTORIAL_VIDEO_LINK = "https://youtu.be/Waht9qq7AoA";
71
+ declare const DOCUMENTATION_LINK = "writing-tests/integrations/vitest-addon";
72
+ declare const DOCUMENTATION_FATAL_ERROR_LINK = "writing-tests/integrations/vitest-addon#what-happens-if-vitest-itself-has-an-error";
73
+ declare const COVERAGE_DIRECTORY = "coverage";
74
+ declare const storeOptions: {
75
+ id: string;
76
+ initialState: {
77
+ config: {
78
+ coverage: false;
79
+ a11y: false;
80
+ };
81
+ watching: false;
82
+ cancelling: false;
83
+ fatalError: undefined;
84
+ index: {
85
+ entries: {};
86
+ v: number;
87
+ };
88
+ previewAnnotations: never[];
89
+ currentRun: {
90
+ triggeredBy: undefined;
91
+ config: {
92
+ coverage: false;
93
+ a11y: false;
94
+ };
95
+ componentTestStatuses: never[];
96
+ a11yStatuses: never[];
97
+ a11yReports: {};
98
+ componentTestCount: {
99
+ success: number;
100
+ error: number;
101
+ };
102
+ a11yCount: {
103
+ success: number;
104
+ warning: number;
105
+ error: number;
106
+ };
107
+ storyIds: undefined;
108
+ totalTestCount: undefined;
109
+ startedAt: undefined;
110
+ finishedAt: undefined;
111
+ unhandledErrors: never[];
112
+ coverageSummary: undefined;
113
+ };
114
+ };
115
+ };
116
+ declare const FULL_RUN_TRIGGERS: RunTrigger[];
117
+ declare const STORE_CHANNEL_EVENT_NAME: string;
118
+ declare const STATUS_STORE_CHANNEL_EVENT_NAME = "UNIVERSAL_STORE:storybook/status";
119
+ declare const TEST_PROVIDER_STORE_CHANNEL_EVENT_NAME = "UNIVERSAL_STORE:storybook/test-provider";
120
+ declare const STATUS_TYPE_ID_COMPONENT_TEST = "storybook/component-test";
121
+ declare const STATUS_TYPE_ID_A11Y = "storybook/a11y";
122
+ declare const TRIGGER_TEST_RUN_REQUEST = "storybook/test/trigger-test-run-request";
123
+ declare const TRIGGER_TEST_RUN_RESPONSE = "storybook/test/trigger-test-run-response";
124
+ type TriggerTestRunRequestPayload = {
125
+ requestId: string;
126
+ actor: string;
127
+ storyIds?: string[];
128
+ config?: Partial<StoreState['config']>;
129
+ };
130
+ type TestRunResult = CurrentRun;
131
+ type TriggerTestRunResponsePayload = {
132
+ requestId: string;
133
+ status: 'completed' | 'error' | 'cancelled';
134
+ result?: TestRunResult;
135
+ error?: {
136
+ message: string;
137
+ error?: ErrorLike;
138
+ };
139
+ };
140
+
141
+ export { ADDON_ID$1 as A11Y_ADDON_ID, PANEL_ID as A11Y_PANEL_ID, 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, TEST_PROVIDER_ID, TEST_PROVIDER_STORE_CHANNEL_EVENT_NAME, TRIGGER_TEST_RUN_REQUEST, TRIGGER_TEST_RUN_RESPONSE, TUTORIAL_VIDEO_LINK, type TestRunResult, type TriggerTestRunRequestPayload, type TriggerTestRunResponsePayload, storeOptions };
@@ -0,0 +1,54 @@
1
+ import CJS_COMPAT_NODE_URL_kcvris1e0og from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_kcvris1e0og from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_kcvris1e0og from "node:module";
4
+
5
+ var __filename = CJS_COMPAT_NODE_URL_kcvris1e0og.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_kcvris1e0og.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_kcvris1e0og.createRequire(import.meta.url);
8
+
9
+ // ------------------------------------------------------------
10
+ // end of CJS compatibility banner, injected by Storybook's esbuild configuration
11
+ // ------------------------------------------------------------
12
+ import {
13
+ ADDON_ID,
14
+ ADDON_ID2,
15
+ COVERAGE_DIRECTORY,
16
+ DOCUMENTATION_FATAL_ERROR_LINK,
17
+ DOCUMENTATION_LINK,
18
+ FULL_RUN_TRIGGERS,
19
+ PANEL_ID,
20
+ PANEL_ID2,
21
+ STATUS_STORE_CHANNEL_EVENT_NAME,
22
+ STATUS_TYPE_ID_A11Y,
23
+ STATUS_TYPE_ID_COMPONENT_TEST,
24
+ STORE_CHANNEL_EVENT_NAME,
25
+ STORYBOOK_ADDON_TEST_CHANNEL,
26
+ TEST_PROVIDER_ID,
27
+ TEST_PROVIDER_STORE_CHANNEL_EVENT_NAME,
28
+ TRIGGER_TEST_RUN_REQUEST,
29
+ TRIGGER_TEST_RUN_RESPONSE,
30
+ TUTORIAL_VIDEO_LINK,
31
+ storeOptions
32
+ } from "./_node-chunks/chunk-PPDGQAGO.js";
33
+ import "./_node-chunks/chunk-CMEPFTWL.js";
34
+ export {
35
+ ADDON_ID as A11Y_ADDON_ID,
36
+ PANEL_ID2 as A11Y_PANEL_ID,
37
+ ADDON_ID2 as ADDON_ID,
38
+ PANEL_ID as COMPONENT_TESTING_PANEL_ID,
39
+ COVERAGE_DIRECTORY,
40
+ DOCUMENTATION_FATAL_ERROR_LINK,
41
+ DOCUMENTATION_LINK,
42
+ FULL_RUN_TRIGGERS,
43
+ STATUS_STORE_CHANNEL_EVENT_NAME,
44
+ STATUS_TYPE_ID_A11Y,
45
+ STATUS_TYPE_ID_COMPONENT_TEST,
46
+ STORE_CHANNEL_EVENT_NAME,
47
+ STORYBOOK_ADDON_TEST_CHANNEL,
48
+ TEST_PROVIDER_ID,
49
+ TEST_PROVIDER_STORE_CHANNEL_EVENT_NAME,
50
+ TRIGGER_TEST_RUN_REQUEST,
51
+ TRIGGER_TEST_RUN_RESPONSE,
52
+ TUTORIAL_VIDEO_LINK,
53
+ storeOptions
54
+ };
package/dist/manager.js CHANGED
@@ -10,7 +10,7 @@ import {
10
10
  STORYBOOK_ADDON_TEST_CHANNEL,
11
11
  TEST_PROVIDER_ID,
12
12
  storeOptions
13
- } from "./_browser-chunks/chunk-QHH5JRC6.js";
13
+ } from "./_browser-chunks/chunk-FP6EVVC6.js";
14
14
 
15
15
  // src/manager.tsx
16
16
  import React5, { useState as useState3 } from "react";
@@ -651,13 +651,8 @@ addons2.register(ADDON_ID2, (api) => {
651
651
  triggeredBy: "run-all"
652
652
  }
653
653
  });
654
- }), store.untilReady().then(() => {
655
- store.setState((state) => ({
656
- ...state,
657
- indexUrl: new URL("index.json", window.location.href).toString()
658
- })), store.subscribe("TEST_RUN_COMPLETED", ({ payload }) => {
659
- api.emit(STORYBOOK_ADDON_TEST_CHANNEL, { type: "test-run-completed", payload });
660
- });
654
+ }), store.subscribe("TEST_RUN_COMPLETED", ({ payload }) => {
655
+ api.emit(STORYBOOK_ADDON_TEST_CHANNEL, { type: "test-run-completed", payload });
661
656
  }), addons2.add(TEST_PROVIDER_ID, {
662
657
  type: Addon_TypesEnum.experimental_TEST_PROVIDER,
663
658
  render: () => {
@@ -1,22 +1,22 @@
1
- import CJS_COMPAT_NODE_URL_g0psqpo75ib from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_g0psqpo75ib from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_g0psqpo75ib from "node:module";
1
+ import CJS_COMPAT_NODE_URL_kcvris1e0og from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_kcvris1e0og from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_kcvris1e0og from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_g0psqpo75ib.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_g0psqpo75ib.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_g0psqpo75ib.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_kcvris1e0og.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_kcvris1e0og.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_kcvris1e0og.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-YED2XXJM.js";
14
+ } from "../_node-chunks/chunk-AAOBFW7E.js";
15
15
  import {
16
16
  __commonJS,
17
17
  __require,
18
18
  __toESM
19
- } from "../_node-chunks/chunk-V75YOJAB.js";
19
+ } from "../_node-chunks/chunk-CMEPFTWL.js";
20
20
 
21
21
  // ../../../node_modules/istanbul-lib-report/node_modules/make-dir/index.js
22
22
  var require_make_dir = __commonJS({