@storybook/addon-vitest 10.1.0-alpha.10 → 10.1.0-alpha.11

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.
@@ -0,0 +1,60 @@
1
+ // ../../core/src/component-testing/constants.ts
2
+ var ADDON_ID = "storybook/interactions", PANEL_ID = `${ADDON_ID}/panel`, DOCUMENTATION_LINK = "writing-tests/integrations/vitest-addon", DOCUMENTATION_DISCREPANCY_LINK = `${DOCUMENTATION_LINK}#what-happens-when-there-are-different-test-results-in-multiple-environments`;
3
+
4
+ // ../a11y/src/constants.ts
5
+ var ADDON_ID2 = "storybook/a11y", PANEL_ID2 = `${ADDON_ID2}/panel`;
6
+ 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`;
7
+
8
+ // src/constants.ts
9
+ var ADDON_ID3 = "storybook/test", TEST_PROVIDER_ID = `${ADDON_ID3}/test-provider`;
10
+ var DOCUMENTATION_LINK3 = "writing-tests/integrations/vitest-addon", DOCUMENTATION_FATAL_ERROR_LINK = `${DOCUMENTATION_LINK3}#what-happens-if-vitest-itself-has-an-error`;
11
+ var storeOptions = {
12
+ id: ADDON_ID3,
13
+ initialState: {
14
+ config: {
15
+ coverage: !1,
16
+ a11y: !1
17
+ },
18
+ watching: !1,
19
+ cancelling: !1,
20
+ fatalError: void 0,
21
+ indexUrl: void 0,
22
+ previewAnnotations: [],
23
+ currentRun: {
24
+ triggeredBy: void 0,
25
+ config: {
26
+ coverage: !1,
27
+ a11y: !1
28
+ },
29
+ componentTestCount: {
30
+ success: 0,
31
+ error: 0
32
+ },
33
+ a11yCount: {
34
+ success: 0,
35
+ warning: 0,
36
+ error: 0
37
+ },
38
+ storyIds: void 0,
39
+ totalTestCount: void 0,
40
+ startedAt: void 0,
41
+ finishedAt: void 0,
42
+ unhandledErrors: [],
43
+ coverageSummary: void 0
44
+ }
45
+ }
46
+ }, FULL_RUN_TRIGGERS = ["global", "run-all"], STORE_CHANNEL_EVENT_NAME = `UNIVERSAL_STORE:${storeOptions.id}`;
47
+ var STATUS_TYPE_ID_COMPONENT_TEST = "storybook/component-test", STATUS_TYPE_ID_A11Y = "storybook/a11y";
48
+
49
+ export {
50
+ PANEL_ID,
51
+ ADDON_ID2 as ADDON_ID,
52
+ PANEL_ID2,
53
+ ADDON_ID3 as ADDON_ID2,
54
+ TEST_PROVIDER_ID,
55
+ DOCUMENTATION_FATAL_ERROR_LINK,
56
+ storeOptions,
57
+ FULL_RUN_TRIGGERS,
58
+ STATUS_TYPE_ID_COMPONENT_TEST,
59
+ STATUS_TYPE_ID_A11Y
60
+ };
@@ -1,35 +1,33 @@
1
- import CJS_COMPAT_NODE_URL_w4lts2u9au from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_w4lts2u9au from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_w4lts2u9au from "node:module";
1
+ import CJS_COMPAT_NODE_URL_zfiyucf8tb from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_zfiyucf8tb from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_zfiyucf8tb from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_w4lts2u9au.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_w4lts2u9au.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_w4lts2u9au.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_zfiyucf8tb.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_zfiyucf8tb.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_zfiyucf8tb.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
  ADDON_ID
14
- } from "./chunk-ESR57AJV.js";
14
+ } from "./chunk-TCQNKRGF.js";
15
15
  import {
16
16
  require_picocolors
17
- } from "./chunk-U3WHYFEY.js";
17
+ } from "./chunk-XN666246.js";
18
18
  import {
19
- __name,
20
19
  __toESM
21
- } from "./chunk-7J6TCEGO.js";
20
+ } from "./chunk-FCFZB5YS.js";
22
21
 
23
22
  // src/logger.ts
24
23
  var import_picocolors = __toESM(require_picocolors(), 1);
25
- var log = /* @__PURE__ */ __name((message) => {
24
+ var log = (message) => {
26
25
  console.log(`${import_picocolors.default.magenta(ADDON_ID)}: ${message.toString().trim()}`);
27
- }, "log");
26
+ };
28
27
 
29
28
  // ../../node_modules/es-toolkit/dist/function/noop.mjs
30
29
  function noop() {
31
30
  }
32
- __name(noop, "noop");
33
31
 
34
32
  export {
35
33
  noop,