@storybook/addon-vitest 10.1.0-beta.4 → 10.1.0-beta.5
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-DNYWEH25.js → chunk-6WHBKPZM.js} +6 -6
- package/dist/_node-chunks/{chunk-N6NSFQPU.js → chunk-JQM4HUVK.js} +6 -6
- package/dist/_node-chunks/{chunk-5XF3XFZM.js → chunk-MDMOEJAS.js} +7 -7
- package/dist/_node-chunks/{chunk-AKCQ3JRZ.js → chunk-MXKDZMRT.js} +6 -6
- package/dist/_node-chunks/{chunk-BLA6JFXC.js → chunk-O2SXNKID.js} +7 -7
- package/dist/_node-chunks/{chunk-QOE3YSPK.js → chunk-OCG3F7F7.js} +9 -9
- package/dist/_node-chunks/{chunk-5OO34DZH.js → chunk-QCW2BV27.js} +7 -7
- package/dist/_node-chunks/{chunk-RSWRQZVQ.js → chunk-XF2GBRD6.js} +7 -7
- package/dist/_node-chunks/{chunk-MNUGCFI7.js → chunk-ZFP622RT.js} +6 -6
- package/dist/manager.js +36 -76
- package/dist/node/coverage-reporter.js +8 -8
- package/dist/node/vitest.js +12 -12
- package/dist/postinstall.js +13 -13
- package/dist/preset.js +13 -13
- package/dist/vitest-plugin/global-setup.js +7 -7
- package/dist/vitest-plugin/index.js +10 -10
- package/package.json +2 -2
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_sk5k2yz7b from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_sk5k2yz7b from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_sk5k2yz7b from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_sk5k2yz7b.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_sk5k2yz7b.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_sk5k2yz7b.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
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_sk5k2yz7b from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_sk5k2yz7b from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_sk5k2yz7b from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_sk5k2yz7b.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_sk5k2yz7b.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_sk5k2yz7b.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
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_sk5k2yz7b from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_sk5k2yz7b from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_sk5k2yz7b from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_sk5k2yz7b.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_sk5k2yz7b.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_sk5k2yz7b.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_wol1qhu5nea.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
dirname,
|
|
14
14
|
join
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-JQM4HUVK.js";
|
|
16
16
|
|
|
17
17
|
// ../../core/src/shared/utils/module.ts
|
|
18
18
|
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_sk5k2yz7b from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_sk5k2yz7b from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_sk5k2yz7b from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_sk5k2yz7b.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_sk5k2yz7b.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_sk5k2yz7b.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
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_sk5k2yz7b from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_sk5k2yz7b from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_sk5k2yz7b from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_sk5k2yz7b.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_sk5k2yz7b.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_sk5k2yz7b.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-
|
|
14
|
+
} from "./chunk-6WHBKPZM.js";
|
|
15
15
|
|
|
16
16
|
// ../../node_modules/semver/internal/constants.js
|
|
17
17
|
var require_constants = __commonJS({
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_sk5k2yz7b from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_sk5k2yz7b from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_sk5k2yz7b from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_sk5k2yz7b.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_sk5k2yz7b.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_sk5k2yz7b.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-MXKDZMRT.js";
|
|
15
15
|
import {
|
|
16
16
|
require_picocolors
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-XF2GBRD6.js";
|
|
18
18
|
import {
|
|
19
19
|
__toESM
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-6WHBKPZM.js";
|
|
21
21
|
|
|
22
22
|
// src/logger.ts
|
|
23
23
|
var import_picocolors = __toESM(require_picocolors(), 1);
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_sk5k2yz7b from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_sk5k2yz7b from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_sk5k2yz7b from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_sk5k2yz7b.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_sk5k2yz7b.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_sk5k2yz7b.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-
|
|
14
|
+
} from "./chunk-6WHBKPZM.js";
|
|
15
15
|
|
|
16
16
|
// ../../node_modules/ts-dedent/dist/index.js
|
|
17
17
|
var require_dist = __commonJS({
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_sk5k2yz7b from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_sk5k2yz7b from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_sk5k2yz7b from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_sk5k2yz7b.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_sk5k2yz7b.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_sk5k2yz7b.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-
|
|
14
|
+
} from "./chunk-6WHBKPZM.js";
|
|
15
15
|
|
|
16
16
|
// ../../node_modules/picocolors/picocolors.js
|
|
17
17
|
var require_picocolors = __commonJS({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_sk5k2yz7b from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_sk5k2yz7b from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_sk5k2yz7b from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_sk5k2yz7b.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_sk5k2yz7b.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_sk5k2yz7b.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
|
@@ -299,9 +299,9 @@ var statusValueToStoryIds = (allStatuses, typeId, storyIds) => {
|
|
|
299
299
|
// src/components/TestProviderRender.tsx
|
|
300
300
|
import React3 from "react";
|
|
301
301
|
import {
|
|
302
|
+
ActionList,
|
|
302
303
|
Button as Button2,
|
|
303
304
|
Form,
|
|
304
|
-
ListItem,
|
|
305
305
|
ProgressSpinner,
|
|
306
306
|
ToggleButton
|
|
307
307
|
} from "storybook/internal/components";
|
|
@@ -406,10 +406,11 @@ var TestStatusIcon = styled3.div(
|
|
|
406
406
|
);
|
|
407
407
|
|
|
408
408
|
// src/components/TestProviderRender.tsx
|
|
409
|
-
var Container = styled4.div({
|
|
409
|
+
var Container = styled4.div(({ inContextMenu }) => ({
|
|
410
410
|
display: "flex",
|
|
411
|
-
flexDirection: "column"
|
|
412
|
-
|
|
411
|
+
flexDirection: "column",
|
|
412
|
+
paddingBottom: inContextMenu ? 0 : 1
|
|
413
|
+
})), Heading = styled4.div({
|
|
413
414
|
display: "flex",
|
|
414
415
|
justifyContent: "space-between",
|
|
415
416
|
padding: "8px 0",
|
|
@@ -426,15 +427,12 @@ var Container = styled4.div({
|
|
|
426
427
|
})), Actions = styled4.div({
|
|
427
428
|
display: "flex",
|
|
428
429
|
gap: 4
|
|
429
|
-
}),
|
|
430
|
-
|
|
430
|
+
}), StyledActionList = styled4(ActionList)({
|
|
431
|
+
padding: 0
|
|
431
432
|
}), Muted = styled4.span(({ theme }) => ({
|
|
432
433
|
color: theme.textMutedColor
|
|
433
434
|
})), Progress = styled4(ProgressSpinner)({
|
|
434
435
|
margin: 4
|
|
435
|
-
}), Row = styled4.div({
|
|
436
|
-
display: "flex",
|
|
437
|
-
gap: 4
|
|
438
436
|
}), StopIcon = styled4(StopAltIcon)({
|
|
439
437
|
width: 10
|
|
440
438
|
}), openPanel = ({ api, panelId, entryId }) => {
|
|
@@ -452,7 +450,7 @@ var Container = styled4.div({
|
|
|
452
450
|
...props
|
|
453
451
|
}) => {
|
|
454
452
|
let { config, watching, cancelling, currentRun, fatalError } = storeState, finishedTestCount = currentRun.componentTestCount.success + currentRun.componentTestCount.error, hasA11yAddon = addons.experimental_getRegisteredAddons().includes(ADDON_ID), isRunning = testProviderState === "test-provider-state:running", isStarting = isRunning && finishedTestCount === 0, [componentTestStatusIcon, componentTestStatusLabel] = fatalError ? ["critical", "Component tests crashed"] : componentTestStatusValueToStoryIds["status-value:error"].length > 0 ? ["negative", "Component tests failed"] : isRunning ? ["unknown", "Testing in progress"] : componentTestStatusValueToStoryIds["status-value:success"].length > 0 ? ["positive", "Component tests passed"] : ["unknown", "Run tests to see results"], [a11yStatusIcon, a11yStatusLabel] = fatalError ? ["critical", "Component tests crashed"] : a11yStatusValueToStoryIds["status-value:error"].length > 0 ? ["negative", "Accessibility tests failed"] : a11yStatusValueToStoryIds["status-value:warning"].length > 0 ? ["warning", "Accessibility tests failed"] : isRunning ? ["unknown", "Testing in progress"] : a11yStatusValueToStoryIds["status-value:success"].length > 0 ? ["positive", "Accessibility tests passed"] : ["unknown", "Run tests to see accessibility results"];
|
|
455
|
-
return React3.createElement(Container, { ...props }, React3.createElement(Heading, null, React3.createElement(Info, null, entry ? React3.createElement(Title, { id: "testing-module-title" }, "Run component tests") : React3.createElement(
|
|
453
|
+
return React3.createElement(Container, { ...props, inContextMenu: !!entry }, React3.createElement(Heading, null, React3.createElement(Info, null, entry ? React3.createElement(Title, { id: "testing-module-title" }, "Run component tests") : React3.createElement(
|
|
456
454
|
Title,
|
|
457
455
|
{
|
|
458
456
|
id: "testing-module-title",
|
|
@@ -521,21 +519,11 @@ var Container = styled4.div({
|
|
|
521
519
|
}
|
|
522
520
|
},
|
|
523
521
|
React3.createElement(PlayHollowIcon, null)
|
|
524
|
-
))), React3.createElement(
|
|
525
|
-
|
|
526
|
-
{
|
|
527
|
-
as: "label",
|
|
528
|
-
title: "Interactions",
|
|
529
|
-
icon: entry ? null : React3.createElement(Form.Checkbox, { checked: !0, disabled: !0 })
|
|
530
|
-
}
|
|
531
|
-
), React3.createElement(
|
|
532
|
-
Button2,
|
|
522
|
+
))), React3.createElement(StyledActionList, null, React3.createElement(ActionList.Item, null, entry ? React3.createElement(ActionList.Text, null, "Interactions") : React3.createElement(ActionList.Action, { as: "label", readOnly: !0 }, React3.createElement(ActionList.Icon, null, React3.createElement(Form.Checkbox, { name: "Interactions", checked: !0, disabled: !0 })), React3.createElement(ActionList.Text, null, "Interactions")), React3.createElement(
|
|
523
|
+
ActionList.Button,
|
|
533
524
|
{
|
|
534
525
|
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)` : ""}`,
|
|
535
526
|
tooltip: componentTestStatusLabel,
|
|
536
|
-
padding: "small",
|
|
537
|
-
size: "medium",
|
|
538
|
-
variant: "ghost",
|
|
539
527
|
disabled: componentTestStatusValueToStoryIds["status-value:error"].length === 0 && componentTestStatusValueToStoryIds["status-value:warning"].length === 0 && componentTestStatusValueToStoryIds["status-value:success"].length === 0,
|
|
540
528
|
onClick: () => {
|
|
541
529
|
openPanel({
|
|
@@ -547,45 +535,29 @@ var Container = styled4.div({
|
|
|
547
535
|
},
|
|
548
536
|
React3.createElement(TestStatusIcon, { status: componentTestStatusIcon, isRunning }),
|
|
549
537
|
componentTestStatusValueToStoryIds["status-value:error"].length + componentTestStatusValueToStoryIds["status-value:warning"].length || null
|
|
550
|
-
)), !entry && React3.createElement(
|
|
551
|
-
|
|
538
|
+
)), !entry && React3.createElement(ActionList.Item, null, React3.createElement(ActionList.Action, { as: "label", readOnly: isRunning, ariaLabel: !1 }, React3.createElement(ActionList.Icon, null, React3.createElement(
|
|
539
|
+
Form.Checkbox,
|
|
552
540
|
{
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
onChange: () => setStoreState((s) => ({
|
|
561
|
-
...s,
|
|
562
|
-
config: { ...s.config, coverage: !config.coverage }
|
|
563
|
-
}))
|
|
564
|
-
}
|
|
565
|
-
)
|
|
541
|
+
name: "Coverage",
|
|
542
|
+
checked: config.coverage,
|
|
543
|
+
disabled: isRunning,
|
|
544
|
+
onChange: () => setStoreState((s) => ({
|
|
545
|
+
...s,
|
|
546
|
+
config: { ...s.config, coverage: !config.coverage }
|
|
547
|
+
}))
|
|
566
548
|
}
|
|
567
|
-
), watching || currentRun.triggeredBy && !FULL_RUN_TRIGGERS.includes(currentRun.triggeredBy) ? React3.createElement(
|
|
568
|
-
|
|
549
|
+
)), React3.createElement(ActionList.Text, null, watching ? React3.createElement(Muted, null, "Coverage (unavailable)") : "Coverage")), watching || currentRun.triggeredBy && !FULL_RUN_TRIGGERS.includes(currentRun.triggeredBy) ? React3.createElement(
|
|
550
|
+
ActionList.Button,
|
|
569
551
|
{
|
|
570
|
-
padding: "small",
|
|
571
|
-
size: "medium",
|
|
572
|
-
variant: "ghost",
|
|
573
552
|
disabled: !0,
|
|
574
|
-
ariaLabel: watching ? "Coverage unavailable in watch mode" : "Coverage
|
|
553
|
+
ariaLabel: watching ? "Coverage unavailable in watch mode" : "Coverage only available after running all tests"
|
|
575
554
|
},
|
|
576
555
|
React3.createElement(InfoIcon, null)
|
|
577
556
|
) : currentRun.coverageSummary ? React3.createElement(
|
|
578
|
-
|
|
557
|
+
ActionList.Button,
|
|
579
558
|
{
|
|
580
559
|
asChild: !0,
|
|
581
|
-
|
|
582
|
-
size: "medium",
|
|
583
|
-
variant: "ghost",
|
|
584
|
-
ariaLabel: (
|
|
585
|
-
// FIXME: I can't deduce from the original tooltip logic whether this use case
|
|
586
|
-
// is logically possible or not. It is a reachable conditional branch in the original code.
|
|
587
|
-
isRunning ? "Open coverage report (testing still in progress)" : `Open coverage report (${currentRun.coverageSummary.percentage}% coverage)`
|
|
588
|
-
)
|
|
560
|
+
ariaLabel: isRunning ? "Open coverage report (testing still in progress)" : `Open coverage report (${currentRun.coverageSummary.percentage}% coverage)`
|
|
589
561
|
},
|
|
590
562
|
React3.createElement("a", { href: "/coverage/index.html", target: "_blank" }, React3.createElement(
|
|
591
563
|
TestStatusIcon,
|
|
@@ -596,11 +568,8 @@ var Container = styled4.div({
|
|
|
596
568
|
}
|
|
597
569
|
), currentRun.coverageSummary.percentage, "%")
|
|
598
570
|
) : React3.createElement(
|
|
599
|
-
|
|
571
|
+
ActionList.Button,
|
|
600
572
|
{
|
|
601
|
-
padding: "small",
|
|
602
|
-
size: "medium",
|
|
603
|
-
variant: "ghost",
|
|
604
573
|
disabled: !0,
|
|
605
574
|
ariaLabel: isRunning ? "Coverage unavailable, testing still in progress" : fatalError ? "Coverage unavailable, component tests crashed" : "Coverage unavailable, run tests first"
|
|
606
575
|
},
|
|
@@ -611,30 +580,21 @@ var Container = styled4.div({
|
|
|
611
580
|
status: fatalError ? "critical" : "unknown"
|
|
612
581
|
}
|
|
613
582
|
)
|
|
614
|
-
)), hasA11yAddon && React3.createElement(
|
|
615
|
-
|
|
583
|
+
)), hasA11yAddon && React3.createElement(ActionList.Item, null, entry ? React3.createElement(ActionList.Text, null, "Accessibility") : React3.createElement(ActionList.Action, { as: "label", readOnly: isRunning, ariaLabel: !1 }, React3.createElement(ActionList.Icon, null, React3.createElement(
|
|
584
|
+
Form.Checkbox,
|
|
616
585
|
{
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
onChange: () => setStoreState((s) => ({
|
|
625
|
-
...s,
|
|
626
|
-
config: { ...s.config, a11y: !config.a11y }
|
|
627
|
-
}))
|
|
628
|
-
}
|
|
629
|
-
)
|
|
586
|
+
name: "Accessibility",
|
|
587
|
+
checked: config.a11y,
|
|
588
|
+
disabled: isRunning,
|
|
589
|
+
onChange: () => setStoreState((s) => ({
|
|
590
|
+
...s,
|
|
591
|
+
config: { ...s.config, a11y: !config.a11y }
|
|
592
|
+
}))
|
|
630
593
|
}
|
|
631
|
-
), React3.createElement(
|
|
632
|
-
|
|
594
|
+
)), React3.createElement(ActionList.Text, null, "Accessibility")), React3.createElement(
|
|
595
|
+
ActionList.Button,
|
|
633
596
|
{
|
|
634
597
|
ariaLabel: a11yStatusLabel,
|
|
635
|
-
padding: "small",
|
|
636
|
-
size: "medium",
|
|
637
|
-
variant: "ghost",
|
|
638
598
|
disabled: a11yStatusValueToStoryIds["status-value:error"].length === 0 && a11yStatusValueToStoryIds["status-value:warning"].length === 0 && a11yStatusValueToStoryIds["status-value:success"].length === 0,
|
|
639
599
|
onClick: () => {
|
|
640
600
|
openPanel({
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_sk5k2yz7b from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_sk5k2yz7b from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_sk5k2yz7b from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_sk5k2yz7b.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_sk5k2yz7b.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_sk5k2yz7b.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-O2SXNKID.js";
|
|
15
15
|
import {
|
|
16
16
|
__commonJS,
|
|
17
17
|
__require,
|
|
18
18
|
__toESM
|
|
19
|
-
} from "../_node-chunks/chunk-
|
|
19
|
+
} from "../_node-chunks/chunk-6WHBKPZM.js";
|
|
20
20
|
|
|
21
21
|
// ../../node_modules/istanbul-lib-report/node_modules/make-dir/index.js
|
|
22
22
|
var require_make_dir = __commonJS({
|
package/dist/node/vitest.js
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_sk5k2yz7b from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_sk5k2yz7b from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_sk5k2yz7b from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_sk5k2yz7b.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_sk5k2yz7b.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_sk5k2yz7b.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-OCG3F7F7.js";
|
|
15
15
|
import {
|
|
16
16
|
any
|
|
17
|
-
} from "../_node-chunks/chunk-
|
|
17
|
+
} from "../_node-chunks/chunk-ZFP622RT.js";
|
|
18
18
|
import {
|
|
19
19
|
ADDON_ID,
|
|
20
20
|
COVERAGE_DIRECTORY,
|
|
21
21
|
STATUS_TYPE_ID_A11Y,
|
|
22
22
|
STATUS_TYPE_ID_COMPONENT_TEST,
|
|
23
23
|
storeOptions
|
|
24
|
-
} from "../_node-chunks/chunk-
|
|
25
|
-
import "../_node-chunks/chunk-
|
|
24
|
+
} from "../_node-chunks/chunk-MXKDZMRT.js";
|
|
25
|
+
import "../_node-chunks/chunk-XF2GBRD6.js";
|
|
26
26
|
import {
|
|
27
27
|
dirname,
|
|
28
28
|
join,
|
|
29
29
|
normalize,
|
|
30
30
|
path
|
|
31
|
-
} from "../_node-chunks/chunk-
|
|
32
|
-
import "../_node-chunks/chunk-
|
|
31
|
+
} from "../_node-chunks/chunk-JQM4HUVK.js";
|
|
32
|
+
import "../_node-chunks/chunk-6WHBKPZM.js";
|
|
33
33
|
|
|
34
34
|
// src/node/vitest.ts
|
|
35
35
|
import process2 from "node:process";
|
package/dist/postinstall.js
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_sk5k2yz7b from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_sk5k2yz7b from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_sk5k2yz7b from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_sk5k2yz7b.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_sk5k2yz7b.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_sk5k2yz7b.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
|
resolvePackageDir
|
|
14
|
-
} from "./_node-chunks/chunk-
|
|
14
|
+
} from "./_node-chunks/chunk-MDMOEJAS.js";
|
|
15
15
|
import {
|
|
16
16
|
any
|
|
17
|
-
} from "./_node-chunks/chunk-
|
|
17
|
+
} from "./_node-chunks/chunk-ZFP622RT.js";
|
|
18
18
|
import {
|
|
19
19
|
DOCUMENTATION_LINK
|
|
20
|
-
} from "./_node-chunks/chunk-
|
|
20
|
+
} from "./_node-chunks/chunk-MXKDZMRT.js";
|
|
21
21
|
import {
|
|
22
22
|
require_dist
|
|
23
|
-
} from "./_node-chunks/chunk-
|
|
23
|
+
} from "./_node-chunks/chunk-QCW2BV27.js";
|
|
24
24
|
import {
|
|
25
25
|
dirname,
|
|
26
26
|
join,
|
|
27
27
|
relative,
|
|
28
28
|
resolve
|
|
29
|
-
} from "./_node-chunks/chunk-
|
|
29
|
+
} from "./_node-chunks/chunk-JQM4HUVK.js";
|
|
30
30
|
import {
|
|
31
31
|
require_compare,
|
|
32
32
|
require_constants,
|
|
@@ -36,11 +36,11 @@ import {
|
|
|
36
36
|
require_parse_options,
|
|
37
37
|
require_re,
|
|
38
38
|
require_semver
|
|
39
|
-
} from "./_node-chunks/chunk-
|
|
39
|
+
} from "./_node-chunks/chunk-O2SXNKID.js";
|
|
40
40
|
import {
|
|
41
41
|
__commonJS,
|
|
42
42
|
__toESM
|
|
43
|
-
} from "./_node-chunks/chunk-
|
|
43
|
+
} from "./_node-chunks/chunk-6WHBKPZM.js";
|
|
44
44
|
|
|
45
45
|
// ../../node_modules/semver/functions/parse.js
|
|
46
46
|
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_sk5k2yz7b from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_sk5k2yz7b from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_sk5k2yz7b from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_sk5k2yz7b.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_sk5k2yz7b.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_sk5k2yz7b.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -12,10 +12,10 @@ var require = CJS_COMPAT_NODE_MODULE_wol1qhu5nea.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
log,
|
|
14
14
|
noop
|
|
15
|
-
} from "./_node-chunks/chunk-
|
|
15
|
+
} from "./_node-chunks/chunk-OCG3F7F7.js";
|
|
16
16
|
import {
|
|
17
17
|
importMetaResolve
|
|
18
|
-
} from "./_node-chunks/chunk-
|
|
18
|
+
} from "./_node-chunks/chunk-MDMOEJAS.js";
|
|
19
19
|
import {
|
|
20
20
|
ADDON_ID,
|
|
21
21
|
COVERAGE_DIRECTORY,
|
|
@@ -24,19 +24,19 @@ import {
|
|
|
24
24
|
STORYBOOK_ADDON_TEST_CHANNEL,
|
|
25
25
|
TEST_PROVIDER_STORE_CHANNEL_EVENT_NAME,
|
|
26
26
|
storeOptions
|
|
27
|
-
} from "./_node-chunks/chunk-
|
|
27
|
+
} from "./_node-chunks/chunk-MXKDZMRT.js";
|
|
28
28
|
import {
|
|
29
29
|
require_picocolors
|
|
30
|
-
} from "./_node-chunks/chunk-
|
|
30
|
+
} from "./_node-chunks/chunk-XF2GBRD6.js";
|
|
31
31
|
import {
|
|
32
32
|
require_dist
|
|
33
|
-
} from "./_node-chunks/chunk-
|
|
33
|
+
} from "./_node-chunks/chunk-QCW2BV27.js";
|
|
34
34
|
import {
|
|
35
35
|
normalize
|
|
36
|
-
} from "./_node-chunks/chunk-
|
|
36
|
+
} from "./_node-chunks/chunk-JQM4HUVK.js";
|
|
37
37
|
import {
|
|
38
38
|
__toESM
|
|
39
|
-
} from "./_node-chunks/chunk-
|
|
39
|
+
} from "./_node-chunks/chunk-6WHBKPZM.js";
|
|
40
40
|
|
|
41
41
|
// src/preset.ts
|
|
42
42
|
import { mkdir } from "node:fs/promises";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_sk5k2yz7b from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_sk5k2yz7b from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_sk5k2yz7b from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_sk5k2yz7b.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_sk5k2yz7b.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_sk5k2yz7b.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
__commonJS,
|
|
14
14
|
__require,
|
|
15
15
|
__toESM
|
|
16
|
-
} from "../_node-chunks/chunk-
|
|
16
|
+
} from "../_node-chunks/chunk-6WHBKPZM.js";
|
|
17
17
|
|
|
18
18
|
// ../../node_modules/tree-kill/index.js
|
|
19
19
|
var require_tree_kill = __commonJS({
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_sk5k2yz7b from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_sk5k2yz7b from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_sk5k2yz7b from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_sk5k2yz7b.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_sk5k2yz7b.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_sk5k2yz7b.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-XF2GBRD6.js";
|
|
15
15
|
import {
|
|
16
16
|
require_dist
|
|
17
|
-
} from "../_node-chunks/chunk-
|
|
17
|
+
} from "../_node-chunks/chunk-QCW2BV27.js";
|
|
18
18
|
import {
|
|
19
19
|
join,
|
|
20
20
|
normalize,
|
|
21
21
|
relative,
|
|
22
22
|
resolve,
|
|
23
23
|
sep
|
|
24
|
-
} from "../_node-chunks/chunk-
|
|
24
|
+
} from "../_node-chunks/chunk-JQM4HUVK.js";
|
|
25
25
|
import {
|
|
26
26
|
__commonJS,
|
|
27
27
|
__require,
|
|
28
28
|
__toESM
|
|
29
|
-
} from "../_node-chunks/chunk-
|
|
29
|
+
} from "../_node-chunks/chunk-6WHBKPZM.js";
|
|
30
30
|
|
|
31
31
|
// ../../node_modules/braces/lib/utils.js
|
|
32
32
|
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-beta.
|
|
3
|
+
"version": "10.1.0-beta.5",
|
|
4
4
|
"description": "Storybook Vitest addon: Blazing fast component testing using stories",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook",
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
"@vitest/browser": "^3.0.0 || ^4.0.0",
|
|
104
104
|
"@vitest/browser-playwright": "^4.0.0",
|
|
105
105
|
"@vitest/runner": "^3.0.0 || ^4.0.0",
|
|
106
|
-
"storybook": "^10.1.0-beta.
|
|
106
|
+
"storybook": "^10.1.0-beta.5",
|
|
107
107
|
"vitest": "^3.0.0 || ^4.0.0"
|
|
108
108
|
},
|
|
109
109
|
"peerDependenciesMeta": {
|