@storybook/addon-vitest 0.0.0-pr-32458-sha-6b5f19fe → 0.0.0-pr-32555-sha-1ad9a19c

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.
@@ -1,17 +1,17 @@
1
- import CJS_COMPAT_NODE_URL_y82ktfk8gw from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_y82ktfk8gw from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_y82ktfk8gw from "node:module";
1
+ import CJS_COMPAT_NODE_URL_dtff3sa7tkp from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_dtff3sa7tkp from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_dtff3sa7tkp from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_y82ktfk8gw.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_y82ktfk8gw.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_y82ktfk8gw.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_dtff3sa7tkp.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_dtff3sa7tkp.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_dtff3sa7tkp.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
  __name
14
- } from "./chunk-CA23L3FE.js";
14
+ } from "./chunk-UFIE5MWZ.js";
15
15
 
16
16
  // src/utils.ts
17
17
  function getAddonNames(mainConfig) {
@@ -1,17 +1,17 @@
1
- import CJS_COMPAT_NODE_URL_y82ktfk8gw from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_y82ktfk8gw from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_y82ktfk8gw from "node:module";
1
+ import CJS_COMPAT_NODE_URL_dtff3sa7tkp from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_dtff3sa7tkp from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_dtff3sa7tkp from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_y82ktfk8gw.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_y82ktfk8gw.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_y82ktfk8gw.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_dtff3sa7tkp.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_dtff3sa7tkp.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_dtff3sa7tkp.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
  __name
14
- } from "./chunk-CA23L3FE.js";
14
+ } from "./chunk-UFIE5MWZ.js";
15
15
 
16
16
  // ../../node_modules/pathe/dist/shared/pathe.ff20891b.mjs
17
17
  var _DRIVE_LETTER_START_RE = /^[A-Za-z]:\//;
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_y82ktfk8gw from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_y82ktfk8gw from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_y82ktfk8gw from "node:module";
1
+ import CJS_COMPAT_NODE_URL_dtff3sa7tkp from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_dtff3sa7tkp from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_dtff3sa7tkp from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_y82ktfk8gw.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_y82ktfk8gw.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_y82ktfk8gw.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_dtff3sa7tkp.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_dtff3sa7tkp.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_dtff3sa7tkp.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
@@ -12,13 +12,13 @@ var require = CJS_COMPAT_NODE_MODULE_y82ktfk8gw.createRequire(import.meta.url);
12
12
  import {
13
13
  dirname,
14
14
  join
15
- } from "./chunk-EDA7S3ZJ.js";
15
+ } from "./chunk-DEMQK5IQ.js";
16
16
  import {
17
17
  __commonJS,
18
18
  __name,
19
19
  __require,
20
20
  __toESM
21
- } from "./chunk-CA23L3FE.js";
21
+ } from "./chunk-UFIE5MWZ.js";
22
22
 
23
23
  // ../../node_modules/isexe/windows.js
24
24
  var require_windows = __commonJS({
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_y82ktfk8gw from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_y82ktfk8gw from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_y82ktfk8gw from "node:module";
1
+ import CJS_COMPAT_NODE_URL_dtff3sa7tkp from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_dtff3sa7tkp from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_dtff3sa7tkp from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_y82ktfk8gw.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_y82ktfk8gw.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_y82ktfk8gw.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_dtff3sa7tkp.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_dtff3sa7tkp.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_dtff3sa7tkp.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_y82ktfk8gw from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_y82ktfk8gw from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_y82ktfk8gw from "node:module";
1
+ import CJS_COMPAT_NODE_URL_dtff3sa7tkp from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_dtff3sa7tkp from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_dtff3sa7tkp from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_y82ktfk8gw.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_y82ktfk8gw.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_y82ktfk8gw.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_dtff3sa7tkp.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_dtff3sa7tkp.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_dtff3sa7tkp.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
@@ -12,7 +12,7 @@ var require = CJS_COMPAT_NODE_MODULE_y82ktfk8gw.createRequire(import.meta.url);
12
12
  import {
13
13
  __commonJS,
14
14
  __name
15
- } from "./chunk-CA23L3FE.js";
15
+ } from "./chunk-UFIE5MWZ.js";
16
16
 
17
17
  // ../../node_modules/picocolors/picocolors.js
18
18
  var require_picocolors = __commonJS({
@@ -1,24 +1,24 @@
1
- import CJS_COMPAT_NODE_URL_y82ktfk8gw from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_y82ktfk8gw from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_y82ktfk8gw from "node:module";
1
+ import CJS_COMPAT_NODE_URL_dtff3sa7tkp from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_dtff3sa7tkp from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_dtff3sa7tkp from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_y82ktfk8gw.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_y82ktfk8gw.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_y82ktfk8gw.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_dtff3sa7tkp.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_dtff3sa7tkp.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_dtff3sa7tkp.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-IIXZOIYS.js";
14
+ } from "./chunk-FVWVRQKC.js";
15
15
  import {
16
16
  require_picocolors
17
- } from "./chunk-HGWNRKRE.js";
17
+ } from "./chunk-H3URSZCW.js";
18
18
  import {
19
19
  __name,
20
20
  __toESM
21
- } from "./chunk-CA23L3FE.js";
21
+ } from "./chunk-UFIE5MWZ.js";
22
22
 
23
23
  // src/logger.ts
24
24
  var import_picocolors = __toESM(require_picocolors(), 1);
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_y82ktfk8gw from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_y82ktfk8gw from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_y82ktfk8gw from "node:module";
1
+ import CJS_COMPAT_NODE_URL_dtff3sa7tkp from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_dtff3sa7tkp from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_dtff3sa7tkp from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_y82ktfk8gw.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_y82ktfk8gw.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_y82ktfk8gw.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_dtff3sa7tkp.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_dtff3sa7tkp.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_dtff3sa7tkp.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
@@ -12,7 +12,7 @@ var require = CJS_COMPAT_NODE_MODULE_y82ktfk8gw.createRequire(import.meta.url);
12
12
  import {
13
13
  __commonJS,
14
14
  __name
15
- } from "./chunk-CA23L3FE.js";
15
+ } from "./chunk-UFIE5MWZ.js";
16
16
 
17
17
  // ../../node_modules/semver/internal/constants.js
18
18
  var require_constants = __commonJS({
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_y82ktfk8gw from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_y82ktfk8gw from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_y82ktfk8gw from "node:module";
1
+ import CJS_COMPAT_NODE_URL_dtff3sa7tkp from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_dtff3sa7tkp from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_dtff3sa7tkp from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_y82ktfk8gw.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_y82ktfk8gw.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_y82ktfk8gw.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_dtff3sa7tkp.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_dtff3sa7tkp.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_dtff3sa7tkp.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
package/dist/manager.js CHANGED
@@ -37,8 +37,8 @@ import { addons as addons2 } from "storybook/manager-api";
37
37
 
38
38
  // src/components/GlobalErrorModal.tsx
39
39
  import React, { useContext } from "react";
40
- import { Button, Modal } from "storybook/internal/components";
41
- import { SyncIcon } from "@storybook/icons";
40
+ import { Button, IconButton, Modal } from "storybook/internal/components";
41
+ import { CloseIcon, SyncIcon } from "@storybook/icons";
42
42
  import { useStorybookApi } from "storybook/manager-api";
43
43
  import { styled } from "storybook/theming";
44
44
  var ModalBar = styled.div({
@@ -85,6 +85,7 @@ __name(ErrorCause, "ErrorCause");
85
85
  function GlobalErrorModal({ onRerun, storeState }) {
86
86
  const api = useStorybookApi();
87
87
  const { isModalOpen, setModalOpen } = useContext(GlobalErrorContext);
88
+ const handleClose = /* @__PURE__ */ __name(() => setModalOpen?.(false), "handleClose");
88
89
  const troubleshootURL = api.getDocsUrl({
89
90
  subpath: DOCUMENTATION_FATAL_ERROR_LINK,
90
91
  versioned: true,
@@ -95,7 +96,7 @@ function GlobalErrorModal({ onRerun, storeState }) {
95
96
  currentRun: { unhandledErrors }
96
97
  } = storeState;
97
98
  const content = fatalError ? React.createElement(React.Fragment, null, React.createElement("p", null, fatalError.error.name || "Error"), fatalError.message && React.createElement("p", null, fatalError.message), fatalError.error.message && React.createElement("p", null, fatalError.error.message), fatalError.error.stack && React.createElement("p", null, fatalError.error.stack), fatalError.error.cause && React.createElement(ErrorCause, { error: fatalError.error.cause })) : unhandledErrors.length > 0 ? React.createElement("ol", null, unhandledErrors.map((error) => React.createElement("li", { key: error.name + error.message }, React.createElement("p", null, error.name, ": ", error.message), error.VITEST_TEST_PATH && React.createElement("p", null, 'This error originated in "', React.createElement("b", null, error.VITEST_TEST_PATH), `". It doesn't mean the error was thrown inside the file itself, but while it was running.`), error.VITEST_TEST_NAME && React.createElement(React.Fragment, null, React.createElement("p", null, `The latest test that might've caused the error is "`, React.createElement("b", null, error.VITEST_TEST_NAME), '". It might mean one of the following:'), React.createElement("ul", null, React.createElement("li", null, "The error was thrown, while Vitest was running this test."), React.createElement("li", null, "If the error occurred after the test had been completed, this was the last documented test before it was thrown."))), error.stacks && React.createElement(React.Fragment, null, React.createElement("p", null, React.createElement("b", null, "Stacks:")), React.createElement("ul", null, error.stacks.map((stack) => React.createElement("li", { key: stack.file + stack.line + stack.column }, stack.file, ":", stack.line, ":", stack.column, " - ", stack.method || "unknown method")))), error.stack && React.createElement("p", null, error.stack), error.cause ? React.createElement(ErrorCause, { error: error.cause }) : null))) : null;
98
- return React.createElement(Modal, { ariaLabel: "Storybook Tests error details", onOpenChange: setModalOpen, open: isModalOpen }, React.createElement(ModalBar, null, React.createElement(ModalTitle, null, "Storybook Tests error details"), React.createElement(ModalActionBar, null, React.createElement(Button, { onClick: onRerun, variant: "ghost", ariaLabel: false }, React.createElement(SyncIcon, null), "Rerun"), React.createElement(Button, { variant: "ghost", ariaLabel: false, asChild: true }, React.createElement("a", { target: "_blank", href: troubleshootURL, rel: "noreferrer" }, "Troubleshoot")), React.createElement(Modal.Close, null))), React.createElement(ModalStackTrace, null, content, React.createElement("br", null), React.createElement("br", null), "Troubleshoot:", " ", React.createElement(TroubleshootLink, { target: "_blank", href: troubleshootURL }, troubleshootURL)));
99
+ return React.createElement(Modal, { onEscapeKeyDown: handleClose, onInteractOutside: handleClose, open: isModalOpen }, React.createElement(ModalBar, null, React.createElement(ModalTitle, null, "Storybook Tests error details"), React.createElement(ModalActionBar, null, React.createElement(Button, { onClick: onRerun, variant: "ghost" }, React.createElement(SyncIcon, null), "Rerun"), React.createElement(Button, { variant: "ghost", asChild: true }, React.createElement("a", { target: "_blank", href: troubleshootURL, rel: "noreferrer" }, "Troubleshoot")), React.createElement(IconButton, { onClick: handleClose, "aria-label": "Close modal" }, React.createElement(CloseIcon, null)))), React.createElement(ModalStackTrace, null, content, React.createElement("br", null), React.createElement("br", null), "Troubleshoot:", " ", React.createElement(TroubleshootLink, { target: "_blank", href: troubleshootURL }, troubleshootURL)));
99
100
  }
100
101
  __name(GlobalErrorModal, "GlobalErrorModal");
101
102
 
@@ -433,11 +434,12 @@ var useTestProvider = /* @__PURE__ */ __name((api, entryId) => {
433
434
  // src/components/TestProviderRender.tsx
434
435
  import React3 from "react";
435
436
  import {
436
- Button as Button2,
437
437
  Form,
438
+ IconButton as IconButton2,
438
439
  ListItem,
439
440
  ProgressSpinner,
440
- ToggleButton
441
+ TooltipNote,
442
+ WithTooltip
441
443
  } from "storybook/internal/components";
442
444
  import { EyeIcon, InfoIcon, PlayHollowIcon, StopAltIcon } from "@storybook/icons";
443
445
  import { addons } from "storybook/manager-api";
@@ -550,8 +552,8 @@ var TestStatusIcon = styled3.div(
550
552
  "--status-background": `${theme.color.defaultText}66`
551
553
  },
552
554
  ({ status, theme }) => status === "unknown" && {
553
- "--status-color": theme.textMutedColor,
554
- "--status-background": `${theme.textMutedColor}66`
555
+ "--status-color": theme.color.mediumdark,
556
+ "--status-background": `${theme.color.mediumdark}66`
555
557
  }
556
558
  );
557
559
 
@@ -640,61 +642,79 @@ var TestProviderRender = /* @__PURE__ */ __name(({
640
642
  isSettingsUpdated
641
643
  }
642
644
  )), React3.createElement(Actions, null, !entry && React3.createElement(
643
- ToggleButton,
645
+ WithTooltip,
644
646
  {
645
- ariaLabel: isRunning ? "Watch mode (cannot toggle while running)" : "Watch mode",
646
- tooltip: isRunning ? "Watch mode unavailable while running" : `Watch mode is ${watching ? "enabled" : "disabled"}`,
647
- padding: "small",
648
- size: "medium",
649
- variant: "ghost",
650
- pressed: watching,
651
- onClick: () => store.send({
652
- type: "TOGGLE_WATCHING",
653
- payload: {
654
- to: !watching
655
- }
656
- }),
657
- disabled: isRunning
647
+ hasChrome: false,
648
+ trigger: "hover",
649
+ tooltip: React3.createElement(TooltipNote, { note: `${watching ? "Disable" : "Enable"} watch mode` })
658
650
  },
659
- React3.createElement(EyeIcon, null)
651
+ React3.createElement(
652
+ IconButton2,
653
+ {
654
+ "aria-label": `${watching ? "Disable" : "Enable"} watch mode`,
655
+ size: "medium",
656
+ active: watching,
657
+ onClick: () => store.send({
658
+ type: "TOGGLE_WATCHING",
659
+ payload: {
660
+ to: !watching
661
+ }
662
+ }),
663
+ disabled: isRunning
664
+ },
665
+ React3.createElement(EyeIcon, null)
666
+ )
660
667
  ), isRunning ? React3.createElement(
661
- Button2,
668
+ WithTooltip,
662
669
  {
663
- ariaLabel: cancelling ? "Stop test run (already stopping...)" : "Stop test run",
664
- padding: "none",
665
- size: "medium",
666
- variant: "ghost",
667
- onClick: () => store.send({
668
- type: "CANCEL_RUN"
669
- }),
670
- disabled: cancelling || isStarting
670
+ hasChrome: false,
671
+ trigger: "hover",
672
+ tooltip: React3.createElement(TooltipNote, { note: cancelling ? "Stopping..." : "Stop test run" })
671
673
  },
672
674
  React3.createElement(
673
- Progress,
675
+ IconButton2,
674
676
  {
675
- percentage: finishedTestCount && storeState.currentRun.totalTestCount ? finishedTestCount / storeState.currentRun.totalTestCount * 100 : void 0
677
+ "aria-label": cancelling ? "Stopping..." : "Stop test run",
678
+ padding: "none",
679
+ size: "medium",
680
+ onClick: () => store.send({
681
+ type: "CANCEL_RUN"
682
+ }),
683
+ disabled: cancelling || isStarting
676
684
  },
677
- React3.createElement(StopIcon, null)
685
+ React3.createElement(
686
+ Progress,
687
+ {
688
+ percentage: finishedTestCount && storeState.currentRun.totalTestCount ? finishedTestCount / storeState.currentRun.totalTestCount * 100 : void 0
689
+ },
690
+ React3.createElement(StopIcon, null)
691
+ )
678
692
  )
679
693
  ) : React3.createElement(
680
- Button2,
694
+ WithTooltip,
681
695
  {
682
- ariaLabel: "Start test run",
683
- padding: "small",
684
- size: "medium",
685
- variant: "ghost",
686
- onClick: () => {
687
- let storyIds;
688
- if (entry) {
689
- storyIds = entry.type === "story" ? [entry.id] : api.findAllLeafStoryIds(entry.id);
690
- }
691
- store.send({
692
- type: "TRIGGER_RUN",
693
- payload: { storyIds, triggeredBy: entry?.type ?? "global" }
694
- });
695
- }
696
+ hasChrome: false,
697
+ trigger: "hover",
698
+ tooltip: React3.createElement(TooltipNote, { note: "Start test run" })
696
699
  },
697
- React3.createElement(PlayHollowIcon, null)
700
+ React3.createElement(
701
+ IconButton2,
702
+ {
703
+ "aria-label": "Start test run",
704
+ size: "medium",
705
+ onClick: () => {
706
+ let storyIds;
707
+ if (entry) {
708
+ storyIds = entry.type === "story" ? [entry.id] : api.findAllLeafStoryIds(entry.id);
709
+ }
710
+ store.send({
711
+ type: "TRIGGER_RUN",
712
+ payload: { storyIds, triggeredBy: entry?.type ?? "global" }
713
+ });
714
+ }
715
+ },
716
+ React3.createElement(PlayHollowIcon, null)
717
+ )
698
718
  ))), React3.createElement(Extras, null, React3.createElement(Row, null, React3.createElement(
699
719
  ListItem,
700
720
  {
@@ -703,24 +723,35 @@ var TestProviderRender = /* @__PURE__ */ __name(({
703
723
  icon: entry ? null : React3.createElement(Form.Checkbox, { checked: true, disabled: true })
704
724
  }
705
725
  ), React3.createElement(
706
- Button2,
726
+ WithTooltip,
707
727
  {
708
- ariaLabel: `${componentTestStatusLabel}${componentTestStatusValueToStoryIds["status-value:error"].length + componentTestStatusValueToStoryIds["status-value:warning"].length > 0 ? ` (${componentTestStatusValueToStoryIds["status-value:error"].length + componentTestStatusValueToStoryIds["status-value:warning"].length} errors or warnings so far)` : ""}`,
709
- tooltip: componentTestStatusLabel,
710
- padding: "small",
711
- size: "medium",
712
- variant: "ghost",
713
- disabled: componentTestStatusValueToStoryIds["status-value:error"].length === 0 && componentTestStatusValueToStoryIds["status-value:warning"].length === 0 && componentTestStatusValueToStoryIds["status-value:success"].length === 0,
714
- onClick: () => {
715
- openPanel({
716
- api,
717
- panelId: PANEL_ID,
718
- entryId: componentTestStatusValueToStoryIds["status-value:error"][0] ?? componentTestStatusValueToStoryIds["status-value:warning"][0] ?? componentTestStatusValueToStoryIds["status-value:success"][0] ?? entry?.id
719
- });
720
- }
728
+ hasChrome: false,
729
+ trigger: "hover",
730
+ tooltip: React3.createElement(TooltipNote, { note: componentTestStatusLabel })
721
731
  },
722
- React3.createElement(TestStatusIcon, { status: componentTestStatusIcon, isRunning }),
723
- componentTestStatusValueToStoryIds["status-value:error"].length + componentTestStatusValueToStoryIds["status-value:warning"].length || null
732
+ React3.createElement(
733
+ IconButton2,
734
+ {
735
+ size: "medium",
736
+ disabled: componentTestStatusValueToStoryIds["status-value:error"].length === 0 && componentTestStatusValueToStoryIds["status-value:warning"].length === 0 && componentTestStatusValueToStoryIds["status-value:success"].length === 0,
737
+ onClick: () => {
738
+ openPanel({
739
+ api,
740
+ panelId: PANEL_ID,
741
+ entryId: componentTestStatusValueToStoryIds["status-value:error"][0] ?? componentTestStatusValueToStoryIds["status-value:warning"][0] ?? componentTestStatusValueToStoryIds["status-value:success"][0] ?? entry?.id
742
+ });
743
+ }
744
+ },
745
+ React3.createElement(
746
+ TestStatusIcon,
747
+ {
748
+ status: componentTestStatusIcon,
749
+ "aria-label": componentTestStatusLabel,
750
+ isRunning
751
+ }
752
+ ),
753
+ componentTestStatusValueToStoryIds["status-value:error"].length + componentTestStatusValueToStoryIds["status-value:warning"].length || null
754
+ )
724
755
  )), !entry && React3.createElement(Row, null, React3.createElement(
725
756
  ListItem,
726
757
  {
@@ -738,53 +769,39 @@ var TestProviderRender = /* @__PURE__ */ __name(({
738
769
  }
739
770
  )
740
771
  }
741
- ), watching || currentRun.triggeredBy && !FULL_RUN_TRIGGERS.includes(currentRun.triggeredBy) ? React3.createElement(
742
- Button2,
743
- {
744
- padding: "small",
745
- size: "medium",
746
- variant: "ghost",
747
- disabled: true,
748
- ariaLabel: watching ? `Coverage unavailable in watch mode` : `Coverage unavailable when running focused tests`
749
- },
750
- React3.createElement(InfoIcon, null)
751
- ) : currentRun.coverageSummary ? React3.createElement(
752
- Button2,
772
+ ), React3.createElement(
773
+ WithTooltip,
753
774
  {
754
- asChild: true,
755
- padding: "small",
756
- size: "medium",
757
- variant: "ghost",
758
- ariaLabel: (
759
- // FIXME: I can't deduce from the original tooltip logic whether this use case
760
- // is logically possible or not. It is a reachable conditional branch in the original code.
761
- isRunning ? "Open coverage report (testing still in progress)" : `Open coverage report (${currentRun.coverageSummary.percentage}% coverage)`
775
+ hasChrome: false,
776
+ trigger: "hover",
777
+ tooltip: React3.createElement(
778
+ TooltipNote,
779
+ {
780
+ note: watching ? "Unavailable in watch mode" : currentRun.triggeredBy && !FULL_RUN_TRIGGERS.includes(currentRun.triggeredBy) ? "Unavailable when running focused tests" : isRunning ? "Testing in progress" : currentRun.coverageSummary ? "View coverage report" : fatalError ? "Component tests crashed" : "Run tests to calculate coverage"
781
+ }
762
782
  )
763
783
  },
764
- React3.createElement("a", { href: "/coverage/index.html", target: "_blank" }, React3.createElement(
784
+ watching || currentRun.triggeredBy && !FULL_RUN_TRIGGERS.includes(currentRun.triggeredBy) ? React3.createElement(IconButton2, { size: "medium", disabled: true }, React3.createElement(
785
+ InfoIcon,
786
+ {
787
+ "aria-label": watching ? `Coverage is unavailable in watch mode` : `Coverage is unavailable when running focused tests`
788
+ }
789
+ )) : currentRun.coverageSummary ? React3.createElement(IconButton2, { asChild: true, size: "medium" }, React3.createElement("a", { href: "/coverage/index.html", target: "_blank", "aria-label": "Open coverage report" }, React3.createElement(
765
790
  TestStatusIcon,
766
791
  {
767
792
  isRunning,
768
793
  percentage: currentRun.coverageSummary.percentage,
769
- status: currentRun.coverageSummary.status
794
+ status: currentRun.coverageSummary.status,
795
+ "aria-label": `Coverage status: ${currentRun.coverageSummary.status}`
770
796
  }
771
- ), currentRun.coverageSummary.percentage, "%")
772
- ) : React3.createElement(
773
- Button2,
774
- {
775
- padding: "small",
776
- size: "medium",
777
- variant: "ghost",
778
- disabled: true,
779
- ariaLabel: isRunning ? "Coverage unavailable, testing still in progress" : fatalError ? "Coverage unavailable, component tests crashed" : "Coverage unavailable, run tests first"
780
- },
781
- React3.createElement(
797
+ ), React3.createElement("span", { "aria-label": `${currentRun.coverageSummary.percentage} percent coverage` }, currentRun.coverageSummary.percentage, "%"))) : React3.createElement(IconButton2, { size: "medium", disabled: true }, React3.createElement(
782
798
  TestStatusIcon,
783
799
  {
784
800
  isRunning,
785
- status: fatalError ? "critical" : "unknown"
801
+ status: fatalError ? "critical" : "unknown",
802
+ "aria-label": "Coverage status: unknown"
786
803
  }
787
- )
804
+ ))
788
805
  )), hasA11yAddon && React3.createElement(Row, null, React3.createElement(
789
806
  ListItem,
790
807
  {
@@ -803,23 +820,35 @@ var TestProviderRender = /* @__PURE__ */ __name(({
803
820
  )
804
821
  }
805
822
  ), React3.createElement(
806
- Button2,
823
+ WithTooltip,
807
824
  {
808
- ariaLabel: a11yStatusLabel,
809
- padding: "small",
810
- size: "medium",
811
- variant: "ghost",
812
- disabled: a11yStatusValueToStoryIds["status-value:error"].length === 0 && a11yStatusValueToStoryIds["status-value:warning"].length === 0 && a11yStatusValueToStoryIds["status-value:success"].length === 0,
813
- onClick: () => {
814
- openPanel({
815
- api,
816
- entryId: a11yStatusValueToStoryIds["status-value:error"][0] ?? a11yStatusValueToStoryIds["status-value:warning"][0] ?? a11yStatusValueToStoryIds["status-value:success"][0] ?? entry?.id,
817
- panelId: PANEL_ID2
818
- });
819
- }
825
+ hasChrome: false,
826
+ trigger: "hover",
827
+ tooltip: React3.createElement(TooltipNote, { note: a11yStatusLabel })
820
828
  },
821
- React3.createElement(TestStatusIcon, { status: a11yStatusIcon, isRunning }),
822
- a11yStatusValueToStoryIds["status-value:error"].length + a11yStatusValueToStoryIds["status-value:warning"].length || null
829
+ React3.createElement(
830
+ IconButton2,
831
+ {
832
+ size: "medium",
833
+ disabled: a11yStatusValueToStoryIds["status-value:error"].length === 0 && a11yStatusValueToStoryIds["status-value:warning"].length === 0 && a11yStatusValueToStoryIds["status-value:success"].length === 0,
834
+ onClick: () => {
835
+ openPanel({
836
+ api,
837
+ entryId: a11yStatusValueToStoryIds["status-value:error"][0] ?? a11yStatusValueToStoryIds["status-value:warning"][0] ?? a11yStatusValueToStoryIds["status-value:success"][0] ?? entry?.id,
838
+ panelId: PANEL_ID2
839
+ });
840
+ }
841
+ },
842
+ React3.createElement(
843
+ TestStatusIcon,
844
+ {
845
+ status: a11yStatusIcon,
846
+ "aria-label": a11yStatusLabel,
847
+ isRunning
848
+ }
849
+ ),
850
+ a11yStatusValueToStoryIds["status-value:error"].length + a11yStatusValueToStoryIds["status-value:warning"].length || null
851
+ )
823
852
  ))));
824
853
  }, "TestProviderRender");
825
854
 
@@ -1,23 +1,23 @@
1
- import CJS_COMPAT_NODE_URL_y82ktfk8gw from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_y82ktfk8gw from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_y82ktfk8gw from "node:module";
1
+ import CJS_COMPAT_NODE_URL_dtff3sa7tkp from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_dtff3sa7tkp from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_dtff3sa7tkp from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_y82ktfk8gw.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_y82ktfk8gw.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_y82ktfk8gw.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_dtff3sa7tkp.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_dtff3sa7tkp.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_dtff3sa7tkp.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-45EFBH2V.js";
14
+ } from "../_node-chunks/chunk-NOE4KEKA.js";
15
15
  import {
16
16
  __commonJS,
17
17
  __name,
18
18
  __require,
19
19
  __toESM
20
- } from "../_node-chunks/chunk-CA23L3FE.js";
20
+ } from "../_node-chunks/chunk-UFIE5MWZ.js";
21
21
 
22
22
  // ../../node_modules/istanbul-lib-report/node_modules/make-dir/index.js
23
23
  var require_make_dir = __commonJS({
@@ -1,38 +1,38 @@
1
- import CJS_COMPAT_NODE_URL_y82ktfk8gw from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_y82ktfk8gw from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_y82ktfk8gw from "node:module";
1
+ import CJS_COMPAT_NODE_URL_dtff3sa7tkp from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_dtff3sa7tkp from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_dtff3sa7tkp from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_y82ktfk8gw.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_y82ktfk8gw.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_y82ktfk8gw.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_dtff3sa7tkp.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_dtff3sa7tkp.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_dtff3sa7tkp.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
  log
14
- } from "../_node-chunks/chunk-CGCU2PRT.js";
14
+ } from "../_node-chunks/chunk-LTSGNWY6.js";
15
15
  import {
16
16
  any,
17
17
  errorToErrorLike
18
- } from "../_node-chunks/chunk-N7O2UVYB.js";
18
+ } from "../_node-chunks/chunk-4WHCN3NM.js";
19
19
  import {
20
20
  ADDON_ID,
21
21
  COVERAGE_DIRECTORY,
22
22
  STATUS_TYPE_ID_A11Y,
23
23
  STATUS_TYPE_ID_COMPONENT_TEST,
24
24
  storeOptions
25
- } from "../_node-chunks/chunk-IIXZOIYS.js";
26
- import "../_node-chunks/chunk-HGWNRKRE.js";
25
+ } from "../_node-chunks/chunk-FVWVRQKC.js";
26
+ import "../_node-chunks/chunk-H3URSZCW.js";
27
27
  import {
28
28
  dirname,
29
29
  join,
30
30
  normalize,
31
31
  path
32
- } from "../_node-chunks/chunk-EDA7S3ZJ.js";
32
+ } from "../_node-chunks/chunk-DEMQK5IQ.js";
33
33
  import {
34
34
  __name
35
- } from "../_node-chunks/chunk-CA23L3FE.js";
35
+ } from "../_node-chunks/chunk-UFIE5MWZ.js";
36
36
 
37
37
  // src/node/vitest.ts
38
38
  import process2 from "node:process";
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_y82ktfk8gw from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_y82ktfk8gw from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_y82ktfk8gw from "node:module";
1
+ import CJS_COMPAT_NODE_URL_dtff3sa7tkp from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_dtff3sa7tkp from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_dtff3sa7tkp from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_y82ktfk8gw.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_y82ktfk8gw.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_y82ktfk8gw.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_dtff3sa7tkp.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_dtff3sa7tkp.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_dtff3sa7tkp.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
@@ -12,22 +12,22 @@ var require = CJS_COMPAT_NODE_MODULE_y82ktfk8gw.createRequire(import.meta.url);
12
12
  import {
13
13
  execa,
14
14
  resolvePackageDir
15
- } from "./_node-chunks/chunk-5W3THARU.js";
15
+ } from "./_node-chunks/chunk-F4QLTCUZ.js";
16
16
  import {
17
17
  any,
18
18
  getAddonNames,
19
19
  up
20
- } from "./_node-chunks/chunk-N7O2UVYB.js";
20
+ } from "./_node-chunks/chunk-4WHCN3NM.js";
21
21
  import {
22
22
  DOCUMENTATION_LINK,
23
23
  SUPPORTED_FRAMEWORKS
24
- } from "./_node-chunks/chunk-IIXZOIYS.js";
24
+ } from "./_node-chunks/chunk-FVWVRQKC.js";
25
25
  import {
26
26
  dirname,
27
27
  join,
28
28
  relative,
29
29
  resolve
30
- } from "./_node-chunks/chunk-EDA7S3ZJ.js";
30
+ } from "./_node-chunks/chunk-DEMQK5IQ.js";
31
31
  import {
32
32
  require_compare,
33
33
  require_constants,
@@ -37,12 +37,12 @@ import {
37
37
  require_parse_options,
38
38
  require_re,
39
39
  require_semver
40
- } from "./_node-chunks/chunk-45EFBH2V.js";
40
+ } from "./_node-chunks/chunk-NOE4KEKA.js";
41
41
  import {
42
42
  __commonJS,
43
43
  __name,
44
44
  __toESM
45
- } from "./_node-chunks/chunk-CA23L3FE.js";
45
+ } from "./_node-chunks/chunk-UFIE5MWZ.js";
46
46
 
47
47
  // ../../node_modules/semver/functions/parse.js
48
48
  var require_parse = __commonJS({
package/dist/preset.js CHANGED
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_y82ktfk8gw from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_y82ktfk8gw from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_y82ktfk8gw from "node:module";
1
+ import CJS_COMPAT_NODE_URL_dtff3sa7tkp from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_dtff3sa7tkp from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_dtff3sa7tkp from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_y82ktfk8gw.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_y82ktfk8gw.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_y82ktfk8gw.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_dtff3sa7tkp.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_dtff3sa7tkp.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_dtff3sa7tkp.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
@@ -12,11 +12,11 @@ var require = CJS_COMPAT_NODE_MODULE_y82ktfk8gw.createRequire(import.meta.url);
12
12
  import {
13
13
  log,
14
14
  noop
15
- } from "./_node-chunks/chunk-CGCU2PRT.js";
15
+ } from "./_node-chunks/chunk-LTSGNWY6.js";
16
16
  import {
17
17
  execaNode,
18
18
  importMetaResolve
19
- } from "./_node-chunks/chunk-5W3THARU.js";
19
+ } from "./_node-chunks/chunk-F4QLTCUZ.js";
20
20
  import {
21
21
  ADDON_ID,
22
22
  COVERAGE_DIRECTORY,
@@ -25,17 +25,17 @@ import {
25
25
  STORYBOOK_ADDON_TEST_CHANNEL,
26
26
  TEST_PROVIDER_STORE_CHANNEL_EVENT_NAME,
27
27
  storeOptions
28
- } from "./_node-chunks/chunk-IIXZOIYS.js";
28
+ } from "./_node-chunks/chunk-FVWVRQKC.js";
29
29
  import {
30
30
  require_picocolors
31
- } from "./_node-chunks/chunk-HGWNRKRE.js";
31
+ } from "./_node-chunks/chunk-H3URSZCW.js";
32
32
  import {
33
33
  normalize
34
- } from "./_node-chunks/chunk-EDA7S3ZJ.js";
34
+ } from "./_node-chunks/chunk-DEMQK5IQ.js";
35
35
  import {
36
36
  __name,
37
37
  __toESM
38
- } from "./_node-chunks/chunk-CA23L3FE.js";
38
+ } from "./_node-chunks/chunk-UFIE5MWZ.js";
39
39
 
40
40
  // src/preset.ts
41
41
  import { mkdir } from "node:fs/promises";
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_y82ktfk8gw from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_y82ktfk8gw from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_y82ktfk8gw from "node:module";
1
+ import CJS_COMPAT_NODE_URL_dtff3sa7tkp from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_dtff3sa7tkp from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_dtff3sa7tkp from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_y82ktfk8gw.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_y82ktfk8gw.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_y82ktfk8gw.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_dtff3sa7tkp.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_dtff3sa7tkp.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_dtff3sa7tkp.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
@@ -14,7 +14,7 @@ import {
14
14
  __name,
15
15
  __require,
16
16
  __toESM
17
- } from "../_node-chunks/chunk-CA23L3FE.js";
17
+ } from "../_node-chunks/chunk-UFIE5MWZ.js";
18
18
 
19
19
  // ../../node_modules/tree-kill/index.js
20
20
  var require_tree_kill = __commonJS({
@@ -1,30 +1,30 @@
1
- import CJS_COMPAT_NODE_URL_y82ktfk8gw from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_y82ktfk8gw from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_y82ktfk8gw from "node:module";
1
+ import CJS_COMPAT_NODE_URL_dtff3sa7tkp from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_dtff3sa7tkp from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_dtff3sa7tkp from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_y82ktfk8gw.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_y82ktfk8gw.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_y82ktfk8gw.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_dtff3sa7tkp.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_dtff3sa7tkp.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_dtff3sa7tkp.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-HGWNRKRE.js";
14
+ } from "../_node-chunks/chunk-H3URSZCW.js";
15
15
  import {
16
16
  join,
17
17
  normalize,
18
18
  relative,
19
19
  resolve,
20
20
  sep
21
- } from "../_node-chunks/chunk-EDA7S3ZJ.js";
21
+ } from "../_node-chunks/chunk-DEMQK5IQ.js";
22
22
  import {
23
23
  __commonJS,
24
24
  __name,
25
25
  __require,
26
26
  __toESM
27
- } from "../_node-chunks/chunk-CA23L3FE.js";
27
+ } from "../_node-chunks/chunk-UFIE5MWZ.js";
28
28
 
29
29
  // ../../node_modules/braces/lib/utils.js
30
30
  var require_utils = __commonJS({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storybook/addon-vitest",
3
- "version": "0.0.0-pr-32458-sha-6b5f19fe",
3
+ "version": "0.0.0-pr-32555-sha-1ad9a19c",
4
4
  "description": "Storybook Vitest addon: Blazing fast component testing using stories",
5
5
  "keywords": [
6
6
  "storybook",
@@ -106,7 +106,7 @@
106
106
  "peerDependencies": {
107
107
  "@vitest/browser": "^3.0.0",
108
108
  "@vitest/runner": "^3.0.0",
109
- "storybook": "^0.0.0-pr-32458-sha-6b5f19fe",
109
+ "storybook": "^0.0.0-pr-32555-sha-1ad9a19c",
110
110
  "vitest": "^3.0.0"
111
111
  },
112
112
  "peerDependenciesMeta": {