@storybook/addon-vitest 0.0.0-pr-33365-sha-849d64f4 → 0.0.0-pr-33469-sha-4021d8de
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/_browser-chunks/{chunk-TJXI7EIW.js → chunk-26KZTIUQ.js} +2 -1
- package/dist/_node-chunks/{chunk-5IBB5TKZ.js → chunk-3A7PET63.js} +9 -9
- package/dist/_node-chunks/{chunk-QPTOKTUH.js → chunk-3SA5TLN3.js} +7 -7
- package/dist/_node-chunks/{chunk-J2ZEXZPE.js → chunk-4TAQJR6S.js} +7 -7
- package/dist/_node-chunks/{chunk-D4W5HWFJ.js → chunk-FTEGEKNF.js} +6 -6
- package/dist/_node-chunks/{chunk-4ZV4RCGP.js → chunk-HWBHTUCV.js} +6 -6
- package/dist/_node-chunks/{chunk-FZLVWKRO.js → chunk-JGSU62XY.js} +6 -6
- package/dist/_node-chunks/{chunk-4Z2SPIT6.js → chunk-NLOMU3S4.js} +7 -7
- package/dist/_node-chunks/{chunk-3PPDG24J.js → chunk-RWNXOPZW.js} +7 -7
- package/dist/_node-chunks/{chunk-CP2S76CN.js → chunk-SICR7MLE.js} +8 -7
- package/dist/manager.js +1 -1
- package/dist/node/coverage-reporter.js +8 -8
- package/dist/node/vitest.js +21 -15
- package/dist/postinstall.js +25 -25
- package/dist/preset.js +15 -15
- package/dist/vitest-plugin/global-setup.js +7 -7
- package/dist/vitest-plugin/index.js +23 -16
- package/dist/vitest-plugin/setup-file.js +1 -1
- package/package.json +8 -8
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// ../../core/src/component-testing/constants.ts
|
|
2
|
-
var ADDON_ID = "storybook/interactions", PANEL_ID = `${ADDON_ID}/panel
|
|
2
|
+
var ADDON_ID = "storybook/interactions", PANEL_ID = `${ADDON_ID}/panel`;
|
|
3
|
+
var DOCUMENTATION_LINK = "writing-tests/integrations/vitest-addon", DOCUMENTATION_DISCREPANCY_LINK = `${DOCUMENTATION_LINK}#what-happens-when-there-are-different-test-results-in-multiple-environments`;
|
|
3
4
|
|
|
4
5
|
// ../a11y/src/constants.ts
|
|
5
6
|
var ADDON_ID2 = "storybook/a11y", PANEL_ID2 = `${ADDON_ID2}/panel`;
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_vpf02j17r4 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_vpf02j17r4 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_vpf02j17r4 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_vpf02j17r4.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_vpf02j17r4.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_vpf02j17r4.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-SICR7MLE.js";
|
|
15
15
|
import {
|
|
16
16
|
require_picocolors
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-RWNXOPZW.js";
|
|
18
18
|
import {
|
|
19
19
|
__toESM
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-HWBHTUCV.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_vpf02j17r4 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_vpf02j17r4 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_vpf02j17r4 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_vpf02j17r4.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_vpf02j17r4.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_vpf02j17r4.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-HWBHTUCV.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_vpf02j17r4 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_vpf02j17r4 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_vpf02j17r4 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_vpf02j17r4.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_vpf02j17r4.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_vpf02j17r4.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-HWBHTUCV.js";
|
|
15
15
|
|
|
16
16
|
// ../../../node_modules/semver/internal/constants.js
|
|
17
17
|
var require_constants = __commonJS({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_vpf02j17r4 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_vpf02j17r4 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_vpf02j17r4 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_vpf02j17r4.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_vpf02j17r4.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_vpf02j17r4.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_vpf02j17r4 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_vpf02j17r4 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_vpf02j17r4 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_vpf02j17r4.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_vpf02j17r4.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_vpf02j17r4.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_vpf02j17r4 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_vpf02j17r4 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_vpf02j17r4 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_vpf02j17r4.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_vpf02j17r4.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_vpf02j17r4.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_vpf02j17r4 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_vpf02j17r4 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_vpf02j17r4 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_vpf02j17r4.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_vpf02j17r4.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_vpf02j17r4.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_pbpakmbjwb.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
dirname,
|
|
14
14
|
join
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-JGSU62XY.js";
|
|
16
16
|
|
|
17
17
|
// ../../core/src/shared/utils/module.ts
|
|
18
18
|
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_vpf02j17r4 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_vpf02j17r4 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_vpf02j17r4 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_vpf02j17r4.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_vpf02j17r4.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_vpf02j17r4.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-HWBHTUCV.js";
|
|
15
15
|
|
|
16
16
|
// ../../../node_modules/picocolors/picocolors.js
|
|
17
17
|
var require_picocolors = __commonJS({
|
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_vpf02j17r4 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_vpf02j17r4 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_vpf02j17r4 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_vpf02j17r4.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_vpf02j17r4.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_vpf02j17r4.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
|
|
|
13
13
|
// ../../core/src/component-testing/constants.ts
|
|
14
|
-
var ADDON_ID = "storybook/interactions", PANEL_ID = `${ADDON_ID}/panel
|
|
14
|
+
var ADDON_ID = "storybook/interactions", PANEL_ID = `${ADDON_ID}/panel`;
|
|
15
|
+
var DOCUMENTATION_LINK = "writing-tests/integrations/vitest-addon", DOCUMENTATION_DISCREPANCY_LINK = `${DOCUMENTATION_LINK}#what-happens-when-there-are-different-test-results-in-multiple-environments`;
|
|
15
16
|
|
|
16
17
|
// ../a11y/src/constants.ts
|
|
17
18
|
var ADDON_ID2 = "storybook/a11y", PANEL_ID2 = `${ADDON_ID2}/panel`;
|
package/dist/manager.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_vpf02j17r4 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_vpf02j17r4 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_vpf02j17r4 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_vpf02j17r4.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_vpf02j17r4.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_vpf02j17r4.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-4TAQJR6S.js";
|
|
15
15
|
import {
|
|
16
16
|
__commonJS,
|
|
17
17
|
__require,
|
|
18
18
|
__toESM
|
|
19
|
-
} from "../_node-chunks/chunk-
|
|
19
|
+
} from "../_node-chunks/chunk-HWBHTUCV.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_vpf02j17r4 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_vpf02j17r4 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_vpf02j17r4 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_vpf02j17r4.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_vpf02j17r4.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_vpf02j17r4.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-3A7PET63.js";
|
|
15
15
|
import {
|
|
16
16
|
any
|
|
17
|
-
} from "../_node-chunks/chunk-
|
|
17
|
+
} from "../_node-chunks/chunk-FTEGEKNF.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-SICR7MLE.js";
|
|
25
|
+
import "../_node-chunks/chunk-RWNXOPZW.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-JGSU62XY.js";
|
|
32
|
+
import "../_node-chunks/chunk-HWBHTUCV.js";
|
|
33
33
|
|
|
34
34
|
// src/node/vitest.ts
|
|
35
35
|
import process2 from "node:process";
|
|
@@ -55,7 +55,7 @@ function debounce(func, debounceMs, { signal, edges } = {}) {
|
|
|
55
55
|
}, cancel = () => {
|
|
56
56
|
cancelTimer(), pendingThis = void 0, pendingArgs = null;
|
|
57
57
|
}, flush = () => {
|
|
58
|
-
|
|
58
|
+
invoke();
|
|
59
59
|
}, debounced = function(...args) {
|
|
60
60
|
if (signal?.aborted)
|
|
61
61
|
return;
|
|
@@ -99,8 +99,14 @@ var DEFAULT_RETRIES = Number.POSITIVE_INFINITY;
|
|
|
99
99
|
|
|
100
100
|
// ../../../node_modules/es-toolkit/dist/function/throttle.mjs
|
|
101
101
|
function throttle(func, throttleMs, { signal, edges = ["leading", "trailing"] } = {}) {
|
|
102
|
-
let pendingAt = null, debounced = debounce(
|
|
103
|
-
pendingAt
|
|
102
|
+
let pendingAt = null, debounced = debounce(function(...args) {
|
|
103
|
+
pendingAt = Date.now(), func.apply(this, args);
|
|
104
|
+
}, throttleMs, { signal, edges }), throttled = function(...args) {
|
|
105
|
+
if (pendingAt == null && (pendingAt = Date.now()), Date.now() - pendingAt >= throttleMs) {
|
|
106
|
+
pendingAt = Date.now(), func.apply(this, args), debounced.cancel(), debounced.schedule();
|
|
107
|
+
return;
|
|
108
|
+
}
|
|
109
|
+
debounced.apply(this, args);
|
|
104
110
|
};
|
|
105
111
|
return throttled.cancel = debounced.cancel, throttled.flush = debounced.flush, throttled;
|
|
106
112
|
}
|
package/dist/postinstall.js
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_vpf02j17r4 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_vpf02j17r4 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_vpf02j17r4 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_vpf02j17r4.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_vpf02j17r4.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_vpf02j17r4.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-NLOMU3S4.js";
|
|
15
15
|
import {
|
|
16
16
|
any
|
|
17
|
-
} from "./_node-chunks/chunk-
|
|
17
|
+
} from "./_node-chunks/chunk-FTEGEKNF.js";
|
|
18
18
|
import {
|
|
19
19
|
DOCUMENTATION_LINK
|
|
20
|
-
} from "./_node-chunks/chunk-
|
|
20
|
+
} from "./_node-chunks/chunk-SICR7MLE.js";
|
|
21
21
|
import {
|
|
22
22
|
require_dist
|
|
23
|
-
} from "./_node-chunks/chunk-
|
|
23
|
+
} from "./_node-chunks/chunk-3SA5TLN3.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-JGSU62XY.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-4TAQJR6S.js";
|
|
40
40
|
import {
|
|
41
41
|
__commonJS,
|
|
42
42
|
__toESM
|
|
43
|
-
} from "./_node-chunks/chunk-
|
|
43
|
+
} from "./_node-chunks/chunk-HWBHTUCV.js";
|
|
44
44
|
|
|
45
45
|
// ../../../node_modules/semver/functions/parse.js
|
|
46
46
|
var require_parse = __commonJS({
|
|
@@ -294,7 +294,7 @@ var require_cmp = __commonJS({
|
|
|
294
294
|
var require_coerce = __commonJS({
|
|
295
295
|
"../../../node_modules/semver/functions/coerce.js"(exports, module) {
|
|
296
296
|
"use strict";
|
|
297
|
-
var SemVer = require_semver(), parse = require_parse(), { safeRe: re, t } = require_re(),
|
|
297
|
+
var SemVer = require_semver(), parse = require_parse(), { safeRe: re, t } = require_re(), coerce2 = (version, options) => {
|
|
298
298
|
if (version instanceof SemVer)
|
|
299
299
|
return version;
|
|
300
300
|
if (typeof version == "number" && (version = String(version)), typeof version != "string")
|
|
@@ -314,7 +314,7 @@ var require_coerce = __commonJS({
|
|
|
314
314
|
let major = match[2], minor = match[3] || "0", patch = match[4] || "0", prerelease = options.includePrerelease && match[5] ? `-${match[5]}` : "", build = options.includePrerelease && match[6] ? `+${match[6]}` : "";
|
|
315
315
|
return parse(`${major}.${minor}.${patch}${prerelease}${build}`, options);
|
|
316
316
|
};
|
|
317
|
-
module.exports =
|
|
317
|
+
module.exports = coerce2;
|
|
318
318
|
}
|
|
319
319
|
});
|
|
320
320
|
|
|
@@ -819,7 +819,7 @@ var require_subset = __commonJS({
|
|
|
819
819
|
var require_semver2 = __commonJS({
|
|
820
820
|
"../../../node_modules/semver/index.js"(exports, module) {
|
|
821
821
|
"use strict";
|
|
822
|
-
var internalRe = require_re(), constants = require_constants(), SemVer = require_semver(), identifiers = require_identifiers(), parse = require_parse(), valid = require_valid(), clean = require_clean(), inc = require_inc(), diff = require_diff(), major = require_major(), minor = require_minor(), patch = require_patch(), prerelease = require_prerelease(), compare = require_compare(), rcompare = require_rcompare(), compareLoose = require_compare_loose(), compareBuild = require_compare_build(), sort = require_sort(), rsort = require_rsort(), gt = require_gt(), lt = require_lt(), eq = require_eq(), neq = require_neq(), gte = require_gte(), lte = require_lte(), cmp = require_cmp(),
|
|
822
|
+
var internalRe = require_re(), constants = require_constants(), SemVer = require_semver(), identifiers = require_identifiers(), parse = require_parse(), valid = require_valid(), clean = require_clean(), inc = require_inc(), diff = require_diff(), major = require_major(), minor = require_minor(), patch = require_patch(), prerelease = require_prerelease(), compare = require_compare(), rcompare = require_rcompare(), compareLoose = require_compare_loose(), compareBuild = require_compare_build(), sort = require_sort(), rsort = require_rsort(), gt = require_gt(), lt = require_lt(), eq = require_eq(), neq = require_neq(), gte = require_gte(), lte = require_lte(), cmp = require_cmp(), coerce2 = require_coerce(), Comparator = require_comparator(), Range = require_range(), satisfies2 = require_satisfies(), toComparators = require_to_comparators(), maxSatisfying = require_max_satisfying(), minSatisfying = require_min_satisfying(), minVersion = require_min_version(), validRange = require_valid2(), outside = require_outside(), gtr = require_gtr(), ltr = require_ltr(), intersects = require_intersects(), simplifyRange = require_simplify(), subset = require_subset();
|
|
823
823
|
module.exports = {
|
|
824
824
|
parse,
|
|
825
825
|
valid,
|
|
@@ -843,7 +843,7 @@ var require_semver2 = __commonJS({
|
|
|
843
843
|
gte,
|
|
844
844
|
lte,
|
|
845
845
|
cmp,
|
|
846
|
-
coerce,
|
|
846
|
+
coerce: coerce2,
|
|
847
847
|
Comparator,
|
|
848
848
|
Range,
|
|
849
849
|
satisfies: satisfies2,
|
|
@@ -1049,9 +1049,9 @@ async function postInstall(options) {
|
|
|
1049
1049
|
}), findFile = (basename, extensions = EXTENSIONS) => any(
|
|
1050
1050
|
extensions.map((ext) => basename + ext),
|
|
1051
1051
|
{ last: getProjectRoot(), cwd: options.configDir }
|
|
1052
|
-
), vitestVersionSpecifier = await packageManager.getInstalledVersion("vitest");
|
|
1053
|
-
logger.debug(`Vitest version specifier: ${vitestVersionSpecifier}`);
|
|
1054
|
-
let isVitest3_2To4 = vitestVersionSpecifier ? (0, import_semver.satisfies)(vitestVersionSpecifier, ">=3.2.0 <4.0.0") : !1, isVitest4OrNewer = vitestVersionSpecifier ? (0, import_semver.satisfies)(vitestVersionSpecifier, ">=4.0.0") : !0, info = await getStorybookInfo(options.configDir),
|
|
1052
|
+
), allDeps = packageManager.getAllDependencies(), vitestVersionSpecifier = await packageManager.getInstalledVersion("vitest");
|
|
1053
|
+
!vitestVersionSpecifier && allDeps.vitest && (vitestVersionSpecifier = allDeps.vitest), vitestVersionSpecifier = (0, import_semver.coerce)(vitestVersionSpecifier)?.version ?? null, logger.debug(`Vitest version specifier: ${vitestVersionSpecifier}`);
|
|
1054
|
+
let isVitest3_2To4 = vitestVersionSpecifier ? (0, import_semver.satisfies)(vitestVersionSpecifier, ">=3.2.0 <4.0.0") : !1, isVitest4OrNewer = vitestVersionSpecifier ? (0, import_semver.satisfies)(vitestVersionSpecifier, ">=4.0.0") : !0, info = await getStorybookInfo(options.configDir), addonVitestService = new AddonVitestService(packageManager), compatibilityResult = await addonVitestService.validateCompatibility({
|
|
1055
1055
|
framework: info.framework,
|
|
1056
1056
|
builder: info.builder
|
|
1057
1057
|
}), result = null;
|
|
@@ -1104,7 +1104,7 @@ async function postInstall(options) {
|
|
|
1104
1104
|
Found an existing Vitest setup file:
|
|
1105
1105
|
${vitestSetupFile}
|
|
1106
1106
|
Please refer to the documentation to complete the setup manually:
|
|
1107
|
-
https://storybook.js.org/docs/next/${DOCUMENTATION_LINK}#manual-setup
|
|
1107
|
+
https://storybook.js.org/docs/next/${DOCUMENTATION_LINK}#manual-setup-advanced
|
|
1108
1108
|
`;
|
|
1109
1109
|
logger.line(), logger.error(`${errorMessage}
|
|
1110
1110
|
`), errors.push(new AddonVitestPostinstallExistingSetupFileError({ filePath: vitestSetupFile }));
|
|
@@ -1153,7 +1153,7 @@ async function postInstall(options) {
|
|
|
1153
1153
|
your existing workspace file automatically, you must do it yourself.
|
|
1154
1154
|
|
|
1155
1155
|
Please refer to the documentation to complete the setup manually:
|
|
1156
|
-
https://storybook.js.org/docs/next/${DOCUMENTATION_LINK}#manual-setup
|
|
1156
|
+
https://storybook.js.org/docs/next/${DOCUMENTATION_LINK}#manual-setup-advanced
|
|
1157
1157
|
`
|
|
1158
1158
|
), errors.push(
|
|
1159
1159
|
new AddonVitestPostinstallWorkspaceUpdateError({ filePath: vitestWorkspaceFile })
|
|
@@ -1182,7 +1182,7 @@ async function postInstall(options) {
|
|
|
1182
1182
|
We were unable to update your existing ${vitestConfigFile ? "Vitest" : "Vite"} config file.
|
|
1183
1183
|
|
|
1184
1184
|
Please refer to the documentation to complete the setup manually:
|
|
1185
|
-
https://storybook.js.org/docs/writing-tests/integrations/vitest-addon#manual-setup
|
|
1185
|
+
https://storybook.js.org/docs/writing-tests/integrations/vitest-addon#manual-setup-advanced
|
|
1186
1186
|
`), errors.push(new AddonVitestPostinstallConfigUpdateError({ filePath: rootConfig }));
|
|
1187
1187
|
} else {
|
|
1188
1188
|
let parentDir = dirname(options.configDir), newConfigFile = resolve(parentDir, `vitest.config.${fileExtension}`), configTemplate = await loadTemplate(getTemplateName(), {
|
|
@@ -1217,7 +1217,7 @@ async function postInstall(options) {
|
|
|
1217
1217
|
logger.error(import_ts_dedent.dedent`
|
|
1218
1218
|
Could not automatically set up ${addonA11yName} for @storybook/addon-vitest.
|
|
1219
1219
|
Please refer to the documentation to complete the setup manually:
|
|
1220
|
-
https://storybook.js.org/docs/writing-tests/accessibility-testing#
|
|
1220
|
+
https://storybook.js.org/docs/writing-tests/accessibility-testing#integration-with-vitest-addon
|
|
1221
1221
|
`), errors.push(new AddonVitestPostinstallFailedAddonA11yError({ error: e }));
|
|
1222
1222
|
}
|
|
1223
1223
|
let runCommand = rootConfig ? "npx vitest --project=storybook" : "npx vitest";
|
|
@@ -1237,7 +1237,7 @@ async function postInstall(options) {
|
|
|
1237
1237
|
import_ts_dedent.dedent`
|
|
1238
1238
|
Done, but with errors!
|
|
1239
1239
|
@storybook/addon-vitest was installed successfully, but there were some errors during the setup process. Please refer to the documentation to complete the setup manually and check the errors above:
|
|
1240
|
-
https://storybook.js.org/docs/next/${DOCUMENTATION_LINK}#manual-setup
|
|
1240
|
+
https://storybook.js.org/docs/next/${DOCUMENTATION_LINK}#manual-setup-advanced
|
|
1241
1241
|
`
|
|
1242
1242
|
), new AddonVitestPostinstallError({ errors });
|
|
1243
1243
|
}
|
package/dist/preset.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_vpf02j17r4 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_vpf02j17r4 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_vpf02j17r4 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_vpf02j17r4.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_vpf02j17r4.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_vpf02j17r4.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_pbpakmbjwb.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
log,
|
|
14
14
|
noop
|
|
15
|
-
} from "./_node-chunks/chunk-
|
|
15
|
+
} from "./_node-chunks/chunk-3A7PET63.js";
|
|
16
16
|
import {
|
|
17
17
|
importMetaResolve
|
|
18
|
-
} from "./_node-chunks/chunk-
|
|
18
|
+
} from "./_node-chunks/chunk-NLOMU3S4.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-SICR7MLE.js";
|
|
28
28
|
import {
|
|
29
29
|
require_picocolors
|
|
30
|
-
} from "./_node-chunks/chunk-
|
|
30
|
+
} from "./_node-chunks/chunk-RWNXOPZW.js";
|
|
31
31
|
import {
|
|
32
32
|
require_dist
|
|
33
|
-
} from "./_node-chunks/chunk-
|
|
33
|
+
} from "./_node-chunks/chunk-3SA5TLN3.js";
|
|
34
34
|
import {
|
|
35
35
|
normalize
|
|
36
|
-
} from "./_node-chunks/chunk-
|
|
36
|
+
} from "./_node-chunks/chunk-JGSU62XY.js";
|
|
37
37
|
import {
|
|
38
38
|
__toESM
|
|
39
|
-
} from "./_node-chunks/chunk-
|
|
39
|
+
} from "./_node-chunks/chunk-HWBHTUCV.js";
|
|
40
40
|
|
|
41
41
|
// src/preset.ts
|
|
42
42
|
import { mkdir } from "node:fs/promises";
|
|
@@ -309,9 +309,9 @@ var experimental_serverChannel = async (channel, options) => {
|
|
|
309
309
|
), resolvedPreviewBuilder = typeof core?.builder == "string" ? core.builder : core?.builder?.name, framework = await getFrameworkName(options);
|
|
310
310
|
if (!resolvedPreviewBuilder?.includes("vite"))
|
|
311
311
|
return framework.includes("nextjs") && log(import_ts_dedent.dedent`
|
|
312
|
-
You're using ${framework}, which is a Webpack-based builder. In order to use Storybook
|
|
312
|
+
You're using ${framework}, which is a Webpack-based builder. In order to use Storybook's Vitest addon, with your project, you need to use '@storybook/nextjs-vite', a high performance Vite-based equivalent.
|
|
313
313
|
|
|
314
|
-
|
|
314
|
+
Refer to the following documentation for more information: ${import_picocolors.default.yellow("https://storybook.js.org/docs/get-started/frameworks/nextjs-vite?ref=upgrade#choose-between-vite-and-webpack")}\n
|
|
315
315
|
`), channel;
|
|
316
316
|
let fsCache = createFileSystemCache({
|
|
317
317
|
basePath: resolvePathInStorybookCache(ADDON_ID.replace("/", "-")),
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_vpf02j17r4 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_vpf02j17r4 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_vpf02j17r4 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_vpf02j17r4.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_vpf02j17r4.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_vpf02j17r4.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-HWBHTUCV.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_vpf02j17r4 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_vpf02j17r4 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_vpf02j17r4 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_vpf02j17r4.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_vpf02j17r4.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_vpf02j17r4.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-RWNXOPZW.js";
|
|
15
15
|
import {
|
|
16
16
|
require_dist
|
|
17
|
-
} from "../_node-chunks/chunk-
|
|
17
|
+
} from "../_node-chunks/chunk-3SA5TLN3.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-JGSU62XY.js";
|
|
25
25
|
import {
|
|
26
26
|
__commonJS,
|
|
27
27
|
__require,
|
|
28
28
|
__toESM
|
|
29
|
-
} from "../_node-chunks/chunk-
|
|
29
|
+
} from "../_node-chunks/chunk-HWBHTUCV.js";
|
|
30
30
|
|
|
31
31
|
// ../../../node_modules/braces/lib/utils.js
|
|
32
32
|
var require_utils = __commonJS({
|
|
@@ -2383,6 +2383,8 @@ var WORKING_DIR = process.cwd(), defaultOptions = {
|
|
|
2383
2383
|
return id.endsWith(".mdx") ? "export default {};" : null;
|
|
2384
2384
|
}
|
|
2385
2385
|
}, storybookTest = async (options) => {
|
|
2386
|
+
if (!optionalEnvToBoolean(process.env.VITEST))
|
|
2387
|
+
return [];
|
|
2386
2388
|
let finalOptions = {
|
|
2387
2389
|
...defaultOptions,
|
|
2388
2390
|
...options,
|
|
@@ -2403,7 +2405,6 @@ var WORKING_DIR = process.cwd(), defaultOptions = {
|
|
|
2403
2405
|
}), stories = await presets.apply("stories", []), commonConfig = { root: resolve(finalOptions.configDir, "..") }, [
|
|
2404
2406
|
{ storiesGlobs },
|
|
2405
2407
|
framework,
|
|
2406
|
-
storybookEnv,
|
|
2407
2408
|
viteConfigFromStorybook,
|
|
2408
2409
|
staticDirs,
|
|
2409
2410
|
previewLevelTags,
|
|
@@ -2413,7 +2414,6 @@ var WORKING_DIR = process.cwd(), defaultOptions = {
|
|
|
2413
2414
|
] = await Promise.all([
|
|
2414
2415
|
getStoryGlobsAndFiles(presets, directories),
|
|
2415
2416
|
presets.apply("framework", void 0),
|
|
2416
|
-
presets.apply("env", {}),
|
|
2417
2417
|
presets.apply("viteFinal", commonConfig),
|
|
2418
2418
|
presets.apply("staticDirs", []),
|
|
2419
2419
|
extractTagsFromPreview(finalOptions.configDir),
|
|
@@ -2439,7 +2439,8 @@ var WORKING_DIR = process.cwd(), defaultOptions = {
|
|
|
2439
2439
|
]);
|
|
2440
2440
|
return html.replace("</head>", `${headHtmlSnippet ?? ""}</head>`).replace("<body>", `<body>${bodyHtmlSnippet ?? ""}`);
|
|
2441
2441
|
},
|
|
2442
|
-
async config(nonMutableInputConfig) {
|
|
2442
|
+
async config(nonMutableInputConfig, { mode }) {
|
|
2443
|
+
mode && (process.env.BUILD_MODE = mode);
|
|
2443
2444
|
try {
|
|
2444
2445
|
await validateConfigurationFiles(finalOptions.configDir);
|
|
2445
2446
|
} catch {
|
|
@@ -2471,7 +2472,15 @@ var WORKING_DIR = process.cwd(), defaultOptions = {
|
|
|
2471
2472
|
]
|
|
2472
2473
|
} : {},
|
|
2473
2474
|
env: {
|
|
2474
|
-
|
|
2475
|
+
/**
|
|
2476
|
+
* We do this late, because we need vitest's --mode to be available and set to
|
|
2477
|
+
* BUILD_MODE. Unfortunately, the dependencies we use to load .env files can only be
|
|
2478
|
+
* configured using that environment variable. We need it to be synced up with the mode
|
|
2479
|
+
* that vitest is running in, or risk leaking envs from the wrong file.
|
|
2480
|
+
*
|
|
2481
|
+
* @see https://github.com/storybookjs/storybook/issues/33101
|
|
2482
|
+
*/
|
|
2483
|
+
...await presets.apply("env", {}),
|
|
2475
2484
|
// To be accessed by the setup file
|
|
2476
2485
|
__STORYBOOK_URL__: finalOptions.storybookUrl,
|
|
2477
2486
|
VITEST_STORYBOOK: isVitestStorybook ? "true" : "false",
|
|
@@ -2581,8 +2590,6 @@ var WORKING_DIR = process.cwd(), defaultOptions = {
|
|
|
2581
2590
|
}
|
|
2582
2591
|
},
|
|
2583
2592
|
async transform(code, id) {
|
|
2584
|
-
if (!optionalEnvToBoolean(process.env.VITEST))
|
|
2585
|
-
return code;
|
|
2586
2593
|
let relativeId = relative(finalOptions.vitestRoot, id);
|
|
2587
2594
|
if ((0, import_micromatch.match)([relativeId], finalOptions.includeStories).length > 0)
|
|
2588
2595
|
return vitestTransform({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/addon-vitest",
|
|
3
|
-
"version": "0.0.0-pr-
|
|
3
|
+
"version": "0.0.0-pr-33469-sha-4021d8de",
|
|
4
4
|
"description": "Storybook Vitest addon: Blazing fast component testing using stories",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook",
|
|
@@ -69,37 +69,37 @@
|
|
|
69
69
|
],
|
|
70
70
|
"dependencies": {
|
|
71
71
|
"@storybook/global": "^5.0.0",
|
|
72
|
-
"@storybook/icons": "^2.0.
|
|
72
|
+
"@storybook/icons": "^2.0.1"
|
|
73
73
|
},
|
|
74
74
|
"devDependencies": {
|
|
75
75
|
"@types/istanbul-lib-report": "^3.0.3",
|
|
76
76
|
"@types/micromatch": "^4.0.0",
|
|
77
|
-
"@types/node": "^22.
|
|
78
|
-
"@types/semver": "^7",
|
|
77
|
+
"@types/node": "^22.19.1",
|
|
78
|
+
"@types/semver": "^7.7.1",
|
|
79
79
|
"@vitest/browser-playwright": "^4.0.14",
|
|
80
80
|
"@vitest/runner": "^4.0.14",
|
|
81
81
|
"empathic": "^2.0.0",
|
|
82
|
-
"es-toolkit": "^1.
|
|
82
|
+
"es-toolkit": "^1.43.0",
|
|
83
83
|
"istanbul-lib-report": "^3.0.1",
|
|
84
84
|
"micromatch": "^4.0.8",
|
|
85
85
|
"pathe": "^1.1.2",
|
|
86
86
|
"picocolors": "^1.1.0",
|
|
87
87
|
"react": "^18.2.0",
|
|
88
88
|
"react-dom": "^18.2.0",
|
|
89
|
-
"semver": "^7.
|
|
89
|
+
"semver": "^7.7.3",
|
|
90
90
|
"sirv": "^2.0.4",
|
|
91
91
|
"slash": "^5.0.0",
|
|
92
92
|
"tinyglobby": "^0.2.10",
|
|
93
93
|
"tree-kill": "^1.2.2",
|
|
94
94
|
"ts-dedent": "^2.2.0",
|
|
95
|
-
"typescript": "^5.
|
|
95
|
+
"typescript": "^5.9.3",
|
|
96
96
|
"vitest": "^4.0.14"
|
|
97
97
|
},
|
|
98
98
|
"peerDependencies": {
|
|
99
99
|
"@vitest/browser": "^3.0.0 || ^4.0.0",
|
|
100
100
|
"@vitest/browser-playwright": "^4.0.0",
|
|
101
101
|
"@vitest/runner": "^3.0.0 || ^4.0.0",
|
|
102
|
-
"storybook": "^0.0.0-pr-
|
|
102
|
+
"storybook": "^0.0.0-pr-33469-sha-4021d8de",
|
|
103
103
|
"vitest": "^3.0.0 || ^4.0.0"
|
|
104
104
|
},
|
|
105
105
|
"peerDependenciesMeta": {
|