@storybook/addon-vitest 10.1.0-alpha.1 → 10.1.0-alpha.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_node-chunks/{chunk-5KVXKVT6.js → chunk-2GFDFSMJ.js} +7 -7
- package/dist/_node-chunks/{chunk-JLLEOCT6.js → chunk-2VMVOZSQ.js} +7 -7
- package/dist/_node-chunks/{chunk-CPO3S7HD.js → chunk-3G477K5F.js} +7 -7
- package/dist/_node-chunks/{chunk-XYGEMTYA.js → chunk-7J6TCEGO.js} +6 -6
- package/dist/_node-chunks/{chunk-4EEN4T72.js → chunk-7SKPZV4T.js} +9 -9
- package/dist/_node-chunks/{chunk-5D5GEQQR.js → chunk-ESR57AJV.js} +7 -6
- package/dist/_node-chunks/{chunk-RWZYDWYZ.js → chunk-U3WHYFEY.js} +7 -7
- package/dist/_node-chunks/{chunk-SIWL37RV.js → chunk-VQBCAO3Q.js} +8 -8
- package/dist/manager.js +116 -145
- package/dist/node/coverage-reporter.js +8 -8
- package/dist/node/vitest.js +12 -12
- package/dist/postinstall.js +12 -12
- package/dist/preset.js +12 -12
- package/dist/vitest-plugin/global-setup.js +7 -7
- package/dist/vitest-plugin/index.js +9 -9
- package/package.json +2 -2
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
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";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
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);
|
|
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-
|
|
14
|
+
} from "./chunk-7J6TCEGO.js";
|
|
15
15
|
|
|
16
16
|
// src/utils.ts
|
|
17
17
|
function getAddonNames(mainConfig) {
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
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";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
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);
|
|
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-
|
|
14
|
+
} from "./chunk-7J6TCEGO.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
|
|
2
|
-
import
|
|
3
|
-
import
|
|
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";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
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);
|
|
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_8w58nre1r1b.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
__commonJS,
|
|
14
14
|
__name
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-7J6TCEGO.js";
|
|
16
16
|
|
|
17
17
|
// ../../node_modules/semver/internal/constants.js
|
|
18
18
|
var require_constants = __commonJS({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
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";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
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);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
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";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
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);
|
|
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-
|
|
14
|
+
} from "./chunk-ESR57AJV.js";
|
|
15
15
|
import {
|
|
16
16
|
require_picocolors
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-U3WHYFEY.js";
|
|
18
18
|
import {
|
|
19
19
|
__name,
|
|
20
20
|
__toESM
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-7J6TCEGO.js";
|
|
22
22
|
|
|
23
23
|
// src/logger.ts
|
|
24
24
|
var import_picocolors = __toESM(require_picocolors(), 1);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
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";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
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);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -40,6 +40,7 @@ var SUPPORTED_FRAMEWORKS = [
|
|
|
40
40
|
"@storybook/nextjs",
|
|
41
41
|
"@storybook/nextjs-vite",
|
|
42
42
|
"@storybook/react-vite",
|
|
43
|
+
"@storybook/preact-vite",
|
|
43
44
|
"@storybook/svelte-vite",
|
|
44
45
|
"@storybook/vue3-vite",
|
|
45
46
|
"@storybook/html-vite",
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
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";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
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);
|
|
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_8w58nre1r1b.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
__commonJS,
|
|
14
14
|
__name
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-7J6TCEGO.js";
|
|
16
16
|
|
|
17
17
|
// ../../node_modules/picocolors/picocolors.js
|
|
18
18
|
var require_picocolors = __commonJS({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
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";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
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);
|
|
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_8w58nre1r1b.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
dirname,
|
|
14
14
|
join
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-2VMVOZSQ.js";
|
|
16
16
|
import {
|
|
17
17
|
__commonJS,
|
|
18
18
|
__name,
|
|
19
19
|
__require,
|
|
20
20
|
__toESM
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-7J6TCEGO.js";
|
|
22
22
|
|
|
23
23
|
// ../../node_modules/isexe/windows.js
|
|
24
24
|
var require_windows = __commonJS({
|
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,
|
|
41
|
-
import {
|
|
40
|
+
import { Button, Modal } from "storybook/internal/components";
|
|
41
|
+
import { 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,7 +85,6 @@ __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");
|
|
89
88
|
const troubleshootURL = api.getDocsUrl({
|
|
90
89
|
subpath: DOCUMENTATION_FATAL_ERROR_LINK,
|
|
91
90
|
versioned: true,
|
|
@@ -96,7 +95,7 @@ function GlobalErrorModal({ onRerun, storeState }) {
|
|
|
96
95
|
currentRun: { unhandledErrors }
|
|
97
96
|
} = storeState;
|
|
98
97
|
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;
|
|
99
|
-
return React.createElement(Modal, {
|
|
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)));
|
|
100
99
|
}
|
|
101
100
|
__name(GlobalErrorModal, "GlobalErrorModal");
|
|
102
101
|
|
|
@@ -434,12 +433,11 @@ var useTestProvider = /* @__PURE__ */ __name((api, entryId) => {
|
|
|
434
433
|
// src/components/TestProviderRender.tsx
|
|
435
434
|
import React3 from "react";
|
|
436
435
|
import {
|
|
436
|
+
Button as Button2,
|
|
437
437
|
Form,
|
|
438
|
-
IconButton as IconButton2,
|
|
439
438
|
ListItem,
|
|
440
439
|
ProgressSpinner,
|
|
441
|
-
|
|
442
|
-
WithTooltip
|
|
440
|
+
ToggleButton
|
|
443
441
|
} from "storybook/internal/components";
|
|
444
442
|
import { EyeIcon, InfoIcon, PlayHollowIcon, StopAltIcon } from "@storybook/icons";
|
|
445
443
|
import { addons } from "storybook/manager-api";
|
|
@@ -552,8 +550,8 @@ var TestStatusIcon = styled3.div(
|
|
|
552
550
|
"--status-background": `${theme.color.defaultText}66`
|
|
553
551
|
},
|
|
554
552
|
({ status, theme }) => status === "unknown" && {
|
|
555
|
-
"--status-color": theme.
|
|
556
|
-
"--status-background": `${theme.
|
|
553
|
+
"--status-color": theme.textMutedColor,
|
|
554
|
+
"--status-background": `${theme.textMutedColor}66`
|
|
557
555
|
}
|
|
558
556
|
);
|
|
559
557
|
|
|
@@ -642,79 +640,61 @@ var TestProviderRender = /* @__PURE__ */ __name(({
|
|
|
642
640
|
isSettingsUpdated
|
|
643
641
|
}
|
|
644
642
|
)), React3.createElement(Actions, null, !entry && React3.createElement(
|
|
645
|
-
|
|
643
|
+
ToggleButton,
|
|
646
644
|
{
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
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
|
|
650
658
|
},
|
|
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
|
-
)
|
|
659
|
+
React3.createElement(EyeIcon, null)
|
|
667
660
|
), isRunning ? React3.createElement(
|
|
668
|
-
|
|
661
|
+
Button2,
|
|
669
662
|
{
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
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
|
|
673
671
|
},
|
|
674
672
|
React3.createElement(
|
|
675
|
-
|
|
673
|
+
Progress,
|
|
676
674
|
{
|
|
677
|
-
|
|
678
|
-
padding: "none",
|
|
679
|
-
size: "medium",
|
|
680
|
-
onClick: () => store.send({
|
|
681
|
-
type: "CANCEL_RUN"
|
|
682
|
-
}),
|
|
683
|
-
disabled: cancelling || isStarting
|
|
675
|
+
percentage: finishedTestCount && storeState.currentRun.totalTestCount ? finishedTestCount / storeState.currentRun.totalTestCount * 100 : void 0
|
|
684
676
|
},
|
|
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
|
-
)
|
|
677
|
+
React3.createElement(StopIcon, null)
|
|
692
678
|
)
|
|
693
679
|
) : React3.createElement(
|
|
694
|
-
|
|
680
|
+
Button2,
|
|
695
681
|
{
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
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
|
-
});
|
|
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);
|
|
714
690
|
}
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
691
|
+
store.send({
|
|
692
|
+
type: "TRIGGER_RUN",
|
|
693
|
+
payload: { storyIds, triggeredBy: entry?.type ?? "global" }
|
|
694
|
+
});
|
|
695
|
+
}
|
|
696
|
+
},
|
|
697
|
+
React3.createElement(PlayHollowIcon, null)
|
|
718
698
|
))), React3.createElement(Extras, null, React3.createElement(Row, null, React3.createElement(
|
|
719
699
|
ListItem,
|
|
720
700
|
{
|
|
@@ -723,35 +703,24 @@ var TestProviderRender = /* @__PURE__ */ __name(({
|
|
|
723
703
|
icon: entry ? null : React3.createElement(Form.Checkbox, { checked: true, disabled: true })
|
|
724
704
|
}
|
|
725
705
|
), React3.createElement(
|
|
726
|
-
|
|
706
|
+
Button2,
|
|
727
707
|
{
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
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
|
+
}
|
|
731
721
|
},
|
|
732
|
-
React3.createElement(
|
|
733
|
-
|
|
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
|
-
)
|
|
722
|
+
React3.createElement(TestStatusIcon, { status: componentTestStatusIcon, isRunning }),
|
|
723
|
+
componentTestStatusValueToStoryIds["status-value:error"].length + componentTestStatusValueToStoryIds["status-value:warning"].length || null
|
|
755
724
|
)), !entry && React3.createElement(Row, null, React3.createElement(
|
|
756
725
|
ListItem,
|
|
757
726
|
{
|
|
@@ -769,39 +738,53 @@ var TestProviderRender = /* @__PURE__ */ __name(({
|
|
|
769
738
|
}
|
|
770
739
|
)
|
|
771
740
|
}
|
|
772
|
-
), React3.createElement(
|
|
773
|
-
|
|
741
|
+
), watching || currentRun.triggeredBy && !FULL_RUN_TRIGGERS.includes(currentRun.triggeredBy) ? React3.createElement(
|
|
742
|
+
Button2,
|
|
774
743
|
{
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
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,
|
|
753
|
+
{
|
|
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)`
|
|
782
762
|
)
|
|
783
763
|
},
|
|
784
|
-
|
|
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(
|
|
764
|
+
React3.createElement("a", { href: "/coverage/index.html", target: "_blank" }, React3.createElement(
|
|
790
765
|
TestStatusIcon,
|
|
791
766
|
{
|
|
792
767
|
isRunning,
|
|
793
768
|
percentage: currentRun.coverageSummary.percentage,
|
|
794
|
-
status: currentRun.coverageSummary.status
|
|
795
|
-
"aria-label": `Coverage status: ${currentRun.coverageSummary.status}`
|
|
769
|
+
status: currentRun.coverageSummary.status
|
|
796
770
|
}
|
|
797
|
-
),
|
|
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(
|
|
798
782
|
TestStatusIcon,
|
|
799
783
|
{
|
|
800
784
|
isRunning,
|
|
801
|
-
status: fatalError ? "critical" : "unknown"
|
|
802
|
-
"aria-label": "Coverage status: unknown"
|
|
785
|
+
status: fatalError ? "critical" : "unknown"
|
|
803
786
|
}
|
|
804
|
-
)
|
|
787
|
+
)
|
|
805
788
|
)), hasA11yAddon && React3.createElement(Row, null, React3.createElement(
|
|
806
789
|
ListItem,
|
|
807
790
|
{
|
|
@@ -820,35 +803,23 @@ var TestProviderRender = /* @__PURE__ */ __name(({
|
|
|
820
803
|
)
|
|
821
804
|
}
|
|
822
805
|
), React3.createElement(
|
|
823
|
-
|
|
806
|
+
Button2,
|
|
824
807
|
{
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
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
|
+
}
|
|
828
820
|
},
|
|
829
|
-
React3.createElement(
|
|
830
|
-
|
|
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
|
-
)
|
|
821
|
+
React3.createElement(TestStatusIcon, { status: a11yStatusIcon, isRunning }),
|
|
822
|
+
a11yStatusValueToStoryIds["status-value:error"].length + a11yStatusValueToStoryIds["status-value:warning"].length || null
|
|
852
823
|
))));
|
|
853
824
|
}, "TestProviderRender");
|
|
854
825
|
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
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";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
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);
|
|
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-
|
|
14
|
+
} from "../_node-chunks/chunk-3G477K5F.js";
|
|
15
15
|
import {
|
|
16
16
|
__commonJS,
|
|
17
17
|
__name,
|
|
18
18
|
__require,
|
|
19
19
|
__toESM
|
|
20
|
-
} from "../_node-chunks/chunk-
|
|
20
|
+
} from "../_node-chunks/chunk-7J6TCEGO.js";
|
|
21
21
|
|
|
22
22
|
// ../../node_modules/istanbul-lib-report/node_modules/make-dir/index.js
|
|
23
23
|
var require_make_dir = __commonJS({
|
package/dist/node/vitest.js
CHANGED
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
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";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
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);
|
|
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-
|
|
14
|
+
} from "../_node-chunks/chunk-7SKPZV4T.js";
|
|
15
15
|
import {
|
|
16
16
|
any,
|
|
17
17
|
errorToErrorLike
|
|
18
|
-
} from "../_node-chunks/chunk-
|
|
18
|
+
} from "../_node-chunks/chunk-2GFDFSMJ.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-
|
|
26
|
-
import "../_node-chunks/chunk-
|
|
25
|
+
} from "../_node-chunks/chunk-ESR57AJV.js";
|
|
26
|
+
import "../_node-chunks/chunk-U3WHYFEY.js";
|
|
27
27
|
import {
|
|
28
28
|
dirname,
|
|
29
29
|
join,
|
|
30
30
|
normalize,
|
|
31
31
|
path
|
|
32
|
-
} from "../_node-chunks/chunk-
|
|
32
|
+
} from "../_node-chunks/chunk-2VMVOZSQ.js";
|
|
33
33
|
import {
|
|
34
34
|
__name
|
|
35
|
-
} from "../_node-chunks/chunk-
|
|
35
|
+
} from "../_node-chunks/chunk-7J6TCEGO.js";
|
|
36
36
|
|
|
37
37
|
// src/node/vitest.ts
|
|
38
38
|
import process2 from "node:process";
|
package/dist/postinstall.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
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";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
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);
|
|
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_8w58nre1r1b.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
execa,
|
|
14
14
|
resolvePackageDir
|
|
15
|
-
} from "./_node-chunks/chunk-
|
|
15
|
+
} from "./_node-chunks/chunk-VQBCAO3Q.js";
|
|
16
16
|
import {
|
|
17
17
|
any,
|
|
18
18
|
getAddonNames,
|
|
19
19
|
up
|
|
20
|
-
} from "./_node-chunks/chunk-
|
|
20
|
+
} from "./_node-chunks/chunk-2GFDFSMJ.js";
|
|
21
21
|
import {
|
|
22
22
|
DOCUMENTATION_LINK,
|
|
23
23
|
SUPPORTED_FRAMEWORKS
|
|
24
|
-
} from "./_node-chunks/chunk-
|
|
24
|
+
} from "./_node-chunks/chunk-ESR57AJV.js";
|
|
25
25
|
import {
|
|
26
26
|
dirname,
|
|
27
27
|
join,
|
|
28
28
|
relative,
|
|
29
29
|
resolve
|
|
30
|
-
} from "./_node-chunks/chunk-
|
|
30
|
+
} from "./_node-chunks/chunk-2VMVOZSQ.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-
|
|
40
|
+
} from "./_node-chunks/chunk-3G477K5F.js";
|
|
41
41
|
import {
|
|
42
42
|
__commonJS,
|
|
43
43
|
__name,
|
|
44
44
|
__toESM
|
|
45
|
-
} from "./_node-chunks/chunk-
|
|
45
|
+
} from "./_node-chunks/chunk-7J6TCEGO.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
|
|
2
|
-
import
|
|
3
|
-
import
|
|
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";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
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);
|
|
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_8w58nre1r1b.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
log,
|
|
14
14
|
noop
|
|
15
|
-
} from "./_node-chunks/chunk-
|
|
15
|
+
} from "./_node-chunks/chunk-7SKPZV4T.js";
|
|
16
16
|
import {
|
|
17
17
|
execaNode,
|
|
18
18
|
importMetaResolve
|
|
19
|
-
} from "./_node-chunks/chunk-
|
|
19
|
+
} from "./_node-chunks/chunk-VQBCAO3Q.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-
|
|
28
|
+
} from "./_node-chunks/chunk-ESR57AJV.js";
|
|
29
29
|
import {
|
|
30
30
|
require_picocolors
|
|
31
|
-
} from "./_node-chunks/chunk-
|
|
31
|
+
} from "./_node-chunks/chunk-U3WHYFEY.js";
|
|
32
32
|
import {
|
|
33
33
|
normalize
|
|
34
|
-
} from "./_node-chunks/chunk-
|
|
34
|
+
} from "./_node-chunks/chunk-2VMVOZSQ.js";
|
|
35
35
|
import {
|
|
36
36
|
__name,
|
|
37
37
|
__toESM
|
|
38
|
-
} from "./_node-chunks/chunk-
|
|
38
|
+
} from "./_node-chunks/chunk-7J6TCEGO.js";
|
|
39
39
|
|
|
40
40
|
// src/preset.ts
|
|
41
41
|
import { mkdir } from "node:fs/promises";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
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";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
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);
|
|
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-
|
|
17
|
+
} from "../_node-chunks/chunk-7J6TCEGO.js";
|
|
18
18
|
|
|
19
19
|
// ../../node_modules/tree-kill/index.js
|
|
20
20
|
var require_tree_kill = __commonJS({
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
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";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
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);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
12
|
import {
|
|
13
13
|
require_picocolors
|
|
14
|
-
} from "../_node-chunks/chunk-
|
|
14
|
+
} from "../_node-chunks/chunk-U3WHYFEY.js";
|
|
15
15
|
import {
|
|
16
16
|
join,
|
|
17
17
|
normalize,
|
|
18
18
|
relative,
|
|
19
19
|
resolve,
|
|
20
20
|
sep
|
|
21
|
-
} from "../_node-chunks/chunk-
|
|
21
|
+
} from "../_node-chunks/chunk-2VMVOZSQ.js";
|
|
22
22
|
import {
|
|
23
23
|
__commonJS,
|
|
24
24
|
__name,
|
|
25
25
|
__require,
|
|
26
26
|
__toESM
|
|
27
|
-
} from "../_node-chunks/chunk-
|
|
27
|
+
} from "../_node-chunks/chunk-7J6TCEGO.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": "10.1.0-alpha.
|
|
3
|
+
"version": "10.1.0-alpha.10",
|
|
4
4
|
"description": "Storybook Vitest addon: Blazing fast component testing using stories",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook",
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
"@vitest/browser": "^3.0.0 || ^4.0.0",
|
|
108
108
|
"@vitest/browser-playwright": "^4.0.0",
|
|
109
109
|
"@vitest/runner": "^3.0.0 || ^4.0.0",
|
|
110
|
-
"storybook": "^10.1.0-alpha.
|
|
110
|
+
"storybook": "^10.1.0-alpha.10",
|
|
111
111
|
"vitest": "^3.0.0 || ^4.0.0"
|
|
112
112
|
},
|
|
113
113
|
"peerDependenciesMeta": {
|