@storybook/addon-vitest 0.0.0-pr-32859-sha-0ff3fd82 → 0.0.0-pr-32855-sha-c6bbabd2
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-CAYLRBRX.js → chunk-PMYV6BH2.js} +0 -1
- package/dist/_node-chunks/{chunk-OAIA5C7K.js → chunk-B3DUYZ7M.js} +7 -7
- package/dist/_node-chunks/{chunk-GIBMIESY.js → chunk-EP42ZO27.js} +6 -6
- package/dist/_node-chunks/{chunk-6M6GHGXN.js → chunk-JBEMNGOF.js} +6 -7
- package/dist/_node-chunks/{chunk-YKP4ELDV.js → chunk-JY2KDL56.js} +7 -7
- package/dist/_node-chunks/{chunk-QNH3623B.js → chunk-KDXKL4QB.js} +9 -9
- package/dist/_node-chunks/{chunk-BNGDH3FQ.js → chunk-WY7E3OX3.js} +7 -7
- package/dist/_node-chunks/{chunk-5QWKJDTA.js → chunk-XBJTSAOB.js} +8 -8
- package/dist/_node-chunks/{chunk-KMLD65EU.js → chunk-ZGWQM6H6.js} +7 -7
- package/dist/manager.js +1 -1
- package/dist/node/coverage-reporter.js +8 -8
- package/dist/node/vitest.js +12 -12
- package/dist/postinstall.js +32 -47
- package/dist/preset.js +12 -12
- package/dist/vitest-plugin/global-setup.js +7 -7
- package/dist/vitest-plugin/index.js +9 -9
- package/dist/vitest-plugin/setup-file.js +1 -1
- package/package.json +2 -2
|
@@ -7,7 +7,6 @@ var DOCUMENTATION_DISCREPANCY_LINK = `${DOCUMENTATION_LINK}#what-happens-when-th
|
|
|
7
7
|
// ../a11y/src/constants.ts
|
|
8
8
|
var ADDON_ID2 = "storybook/a11y";
|
|
9
9
|
var PANEL_ID2 = `${ADDON_ID2}/panel`;
|
|
10
|
-
var UI_STATE_ID = `${ADDON_ID2}/ui`;
|
|
11
10
|
var RESULT = `${ADDON_ID2}/result`;
|
|
12
11
|
var REQUEST = `${ADDON_ID2}/request`;
|
|
13
12
|
var RUNNING = `${ADDON_ID2}/running`;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_y0x1d6vtk9 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_y0x1d6vtk9 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_y0x1d6vtk9 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_y0x1d6vtk9.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_y0x1d6vtk9.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_y0x1d6vtk9.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-EP42ZO27.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_y0x1d6vtk9 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_y0x1d6vtk9 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_y0x1d6vtk9 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_y0x1d6vtk9.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_y0x1d6vtk9.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_y0x1d6vtk9.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_y0x1d6vtk9 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_y0x1d6vtk9 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_y0x1d6vtk9 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_y0x1d6vtk9.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_y0x1d6vtk9.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_y0x1d6vtk9.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -19,7 +19,6 @@ var DOCUMENTATION_DISCREPANCY_LINK = `${DOCUMENTATION_LINK}#what-happens-when-th
|
|
|
19
19
|
// ../a11y/src/constants.ts
|
|
20
20
|
var ADDON_ID2 = "storybook/a11y";
|
|
21
21
|
var PANEL_ID2 = `${ADDON_ID2}/panel`;
|
|
22
|
-
var UI_STATE_ID = `${ADDON_ID2}/ui`;
|
|
23
22
|
var RESULT = `${ADDON_ID2}/result`;
|
|
24
23
|
var REQUEST = `${ADDON_ID2}/request`;
|
|
25
24
|
var RUNNING = `${ADDON_ID2}/running`;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_y0x1d6vtk9 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_y0x1d6vtk9 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_y0x1d6vtk9 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_y0x1d6vtk9.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_y0x1d6vtk9.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_y0x1d6vtk9.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_svf4gveizge.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
__commonJS,
|
|
14
14
|
__name
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-EP42ZO27.js";
|
|
16
16
|
|
|
17
17
|
// ../../node_modules/picocolors/picocolors.js
|
|
18
18
|
var require_picocolors = __commonJS({
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_y0x1d6vtk9 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_y0x1d6vtk9 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_y0x1d6vtk9 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_y0x1d6vtk9.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_y0x1d6vtk9.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_y0x1d6vtk9.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-JBEMNGOF.js";
|
|
15
15
|
import {
|
|
16
16
|
require_picocolors
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-JY2KDL56.js";
|
|
18
18
|
import {
|
|
19
19
|
__name,
|
|
20
20
|
__toESM
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-EP42ZO27.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_y0x1d6vtk9 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_y0x1d6vtk9 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_y0x1d6vtk9 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_y0x1d6vtk9.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_y0x1d6vtk9.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_y0x1d6vtk9.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_svf4gveizge.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
__commonJS,
|
|
14
14
|
__name
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-EP42ZO27.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_y0x1d6vtk9 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_y0x1d6vtk9 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_y0x1d6vtk9 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_y0x1d6vtk9.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_y0x1d6vtk9.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_y0x1d6vtk9.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_svf4gveizge.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
dirname,
|
|
14
14
|
join
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-B3DUYZ7M.js";
|
|
16
16
|
import {
|
|
17
17
|
__commonJS,
|
|
18
18
|
__name,
|
|
19
19
|
__require,
|
|
20
20
|
__toESM
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-EP42ZO27.js";
|
|
22
22
|
|
|
23
23
|
// ../../node_modules/isexe/windows.js
|
|
24
24
|
var require_windows = __commonJS({
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_y0x1d6vtk9 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_y0x1d6vtk9 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_y0x1d6vtk9 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_y0x1d6vtk9.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_y0x1d6vtk9.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_y0x1d6vtk9.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-EP42ZO27.js";
|
|
15
15
|
|
|
16
16
|
// src/utils.ts
|
|
17
17
|
function getAddonNames(mainConfig) {
|
package/dist/manager.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_y0x1d6vtk9 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_y0x1d6vtk9 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_y0x1d6vtk9 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_y0x1d6vtk9.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_y0x1d6vtk9.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_y0x1d6vtk9.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-WY7E3OX3.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-EP42ZO27.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_y0x1d6vtk9 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_y0x1d6vtk9 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_y0x1d6vtk9 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_y0x1d6vtk9.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_y0x1d6vtk9.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_y0x1d6vtk9.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-KDXKL4QB.js";
|
|
15
15
|
import {
|
|
16
16
|
any,
|
|
17
17
|
errorToErrorLike
|
|
18
|
-
} from "../_node-chunks/chunk-
|
|
18
|
+
} from "../_node-chunks/chunk-ZGWQM6H6.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-JBEMNGOF.js";
|
|
26
|
+
import "../_node-chunks/chunk-JY2KDL56.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-B3DUYZ7M.js";
|
|
33
33
|
import {
|
|
34
34
|
__name
|
|
35
|
-
} from "../_node-chunks/chunk-
|
|
35
|
+
} from "../_node-chunks/chunk-EP42ZO27.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_y0x1d6vtk9 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_y0x1d6vtk9 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_y0x1d6vtk9 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_y0x1d6vtk9.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_y0x1d6vtk9.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_y0x1d6vtk9.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_svf4gveizge.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
execa,
|
|
14
14
|
resolvePackageDir
|
|
15
|
-
} from "./_node-chunks/chunk-
|
|
15
|
+
} from "./_node-chunks/chunk-XBJTSAOB.js";
|
|
16
16
|
import {
|
|
17
17
|
any,
|
|
18
18
|
getAddonNames,
|
|
19
19
|
up
|
|
20
|
-
} from "./_node-chunks/chunk-
|
|
20
|
+
} from "./_node-chunks/chunk-ZGWQM6H6.js";
|
|
21
21
|
import {
|
|
22
22
|
DOCUMENTATION_LINK,
|
|
23
23
|
SUPPORTED_FRAMEWORKS
|
|
24
|
-
} from "./_node-chunks/chunk-
|
|
24
|
+
} from "./_node-chunks/chunk-JBEMNGOF.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-B3DUYZ7M.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-WY7E3OX3.js";
|
|
41
41
|
import {
|
|
42
42
|
__commonJS,
|
|
43
43
|
__name,
|
|
44
44
|
__toESM
|
|
45
|
-
} from "./_node-chunks/chunk-
|
|
45
|
+
} from "./_node-chunks/chunk-EP42ZO27.js";
|
|
46
46
|
|
|
47
47
|
// ../../node_modules/semver/functions/parse.js
|
|
48
48
|
var require_parse = __commonJS({
|
|
@@ -1616,7 +1616,10 @@ var updateConfigFile = /* @__PURE__ */ __name((source, target) => {
|
|
|
1616
1616
|
} else if (targetExportDefault.declaration.type === "CallExpression" && targetExportDefault.declaration.callee.type === "Identifier" && targetExportDefault.declaration.callee.name === "defineConfig" && targetExportDefault.declaration.arguments[0]?.type === "ObjectExpression") {
|
|
1617
1617
|
canHandleConfig = true;
|
|
1618
1618
|
} else if (targetExportDefault.declaration.type === "CallExpression" && targetExportDefault.declaration.callee.type === "Identifier" && targetExportDefault.declaration.callee.name === "mergeConfig" && targetExportDefault.declaration.arguments.length >= 2) {
|
|
1619
|
-
|
|
1619
|
+
const defineConfigNodes = targetExportDefault.declaration.arguments.filter(
|
|
1620
|
+
(arg) => arg?.type === "CallExpression" && arg.callee.type === "Identifier" && arg.callee.name === "defineConfig" && arg.arguments[0]?.type === "ObjectExpression"
|
|
1621
|
+
);
|
|
1622
|
+
canHandleConfig = defineConfigNodes.length > 0;
|
|
1620
1623
|
}
|
|
1621
1624
|
if (!canHandleConfig) {
|
|
1622
1625
|
return false;
|
|
@@ -1649,24 +1652,20 @@ var updateConfigFile = /* @__PURE__ */ __name((source, target) => {
|
|
|
1649
1652
|
mergeProperties(properties, exportDefault.declaration.arguments[0].properties);
|
|
1650
1653
|
updated = true;
|
|
1651
1654
|
} else if (exportDefault.declaration.type === "CallExpression" && exportDefault.declaration.callee.type === "Identifier" && exportDefault.declaration.callee.name === "mergeConfig" && exportDefault.declaration.arguments.length >= 2) {
|
|
1652
|
-
const
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
configObjectNodes.push(arg);
|
|
1658
|
-
}
|
|
1659
|
-
}
|
|
1660
|
-
const configObjectWithTest = configObjectNodes.find(
|
|
1661
|
-
(obj) => obj.properties.some(
|
|
1655
|
+
const defineConfigNodes = exportDefault.declaration.arguments.filter(
|
|
1656
|
+
(arg) => arg?.type === "CallExpression" && arg.callee.type === "Identifier" && arg.callee.name === "defineConfig" && arg.arguments[0]?.type === "ObjectExpression"
|
|
1657
|
+
);
|
|
1658
|
+
const defineConfigNodeWithTest = defineConfigNodes.find(
|
|
1659
|
+
(node) => node.arguments[0].type === "ObjectExpression" && node.arguments[0].properties.some(
|
|
1662
1660
|
(p) => p.type === "ObjectProperty" && p.key.type === "Identifier" && p.key.name === "test"
|
|
1663
1661
|
)
|
|
1664
1662
|
);
|
|
1665
|
-
const
|
|
1666
|
-
if (!
|
|
1663
|
+
const defineConfigNode = defineConfigNodeWithTest || defineConfigNodes[0];
|
|
1664
|
+
if (!defineConfigNode) {
|
|
1667
1665
|
return false;
|
|
1668
1666
|
}
|
|
1669
|
-
const
|
|
1667
|
+
const defineConfigProps = defineConfigNode.arguments[0];
|
|
1668
|
+
const existingTestProp = defineConfigProps.properties.find(
|
|
1670
1669
|
(p) => p.type === "ObjectProperty" && p.key.type === "Identifier" && p.key.name === "test"
|
|
1671
1670
|
);
|
|
1672
1671
|
if (existingTestProp && existingTestProp.value.type === "ObjectExpression") {
|
|
@@ -1678,16 +1677,6 @@ var updateConfigFile = /* @__PURE__ */ __name((source, target) => {
|
|
|
1678
1677
|
(p) => p.type === "ObjectProperty" && p.key.type === "Identifier" && (p.key.name === "workspace" || p.key.name === "projects")
|
|
1679
1678
|
);
|
|
1680
1679
|
if (workspaceOrProjectsProp && workspaceOrProjectsProp.value.type === "ArrayExpression") {
|
|
1681
|
-
const coverageProp = existingTestProp.value.properties.find(
|
|
1682
|
-
(p) => p.type === "ObjectProperty" && p.key.type === "Identifier" && p.key.name === "coverage"
|
|
1683
|
-
);
|
|
1684
|
-
const testPropsWithoutCoverage = existingTestProp.value.properties.filter(
|
|
1685
|
-
(p) => p !== coverageProp
|
|
1686
|
-
);
|
|
1687
|
-
const testConfigForProject = {
|
|
1688
|
-
type: "ObjectExpression",
|
|
1689
|
-
properties: testPropsWithoutCoverage
|
|
1690
|
-
};
|
|
1691
1680
|
const existingTestProject = {
|
|
1692
1681
|
type: "ObjectExpression",
|
|
1693
1682
|
properties: [
|
|
@@ -1701,28 +1690,25 @@ var updateConfigFile = /* @__PURE__ */ __name((source, target) => {
|
|
|
1701
1690
|
{
|
|
1702
1691
|
type: "ObjectProperty",
|
|
1703
1692
|
key: { type: "Identifier", name: "test" },
|
|
1704
|
-
value:
|
|
1693
|
+
value: existingTestProp.value,
|
|
1705
1694
|
computed: false,
|
|
1706
1695
|
shorthand: false
|
|
1707
1696
|
}
|
|
1708
1697
|
]
|
|
1709
1698
|
};
|
|
1710
1699
|
workspaceOrProjectsProp.value.elements.unshift(existingTestProject);
|
|
1711
|
-
|
|
1700
|
+
defineConfigProps.properties = defineConfigProps.properties.filter(
|
|
1712
1701
|
(p) => p !== existingTestProp
|
|
1713
1702
|
);
|
|
1714
|
-
|
|
1715
|
-
templateTestProp.value.properties.unshift(coverageProp);
|
|
1716
|
-
}
|
|
1717
|
-
mergeProperties(properties, targetConfigObject.properties);
|
|
1703
|
+
mergeProperties(properties, defineConfigProps.properties);
|
|
1718
1704
|
} else {
|
|
1719
|
-
mergeProperties(properties,
|
|
1705
|
+
mergeProperties(properties, defineConfigProps.properties);
|
|
1720
1706
|
}
|
|
1721
1707
|
} else {
|
|
1722
|
-
mergeProperties(properties,
|
|
1708
|
+
mergeProperties(properties, defineConfigProps.properties);
|
|
1723
1709
|
}
|
|
1724
1710
|
} else {
|
|
1725
|
-
mergeProperties(properties,
|
|
1711
|
+
mergeProperties(properties, defineConfigProps.properties);
|
|
1726
1712
|
}
|
|
1727
1713
|
updated = true;
|
|
1728
1714
|
}
|
|
@@ -2113,10 +2099,9 @@ async function postInstall(options) {
|
|
|
2113
2099
|
logger2.plain(`${step} Updating your ${vitestConfigFile ? "Vitest" : "Vite"} config file:`);
|
|
2114
2100
|
logger2.plain(` ${rootConfig}`);
|
|
2115
2101
|
const formattedContent = await formatFileContent(rootConfig, generate(target).code);
|
|
2116
|
-
const shouldAddReference = !configFileHasTypeReference && !vitestConfigFile;
|
|
2117
2102
|
await writeFile(
|
|
2118
2103
|
rootConfig,
|
|
2119
|
-
|
|
2104
|
+
configFileHasTypeReference ? formattedContent : '/// <reference types="vitest/config" />\n' + formattedContent
|
|
2120
2105
|
);
|
|
2121
2106
|
} else {
|
|
2122
2107
|
logErrors(
|
package/dist/preset.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_y0x1d6vtk9 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_y0x1d6vtk9 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_y0x1d6vtk9 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_y0x1d6vtk9.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_y0x1d6vtk9.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_y0x1d6vtk9.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_svf4gveizge.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
log,
|
|
14
14
|
noop
|
|
15
|
-
} from "./_node-chunks/chunk-
|
|
15
|
+
} from "./_node-chunks/chunk-KDXKL4QB.js";
|
|
16
16
|
import {
|
|
17
17
|
execaNode,
|
|
18
18
|
importMetaResolve
|
|
19
|
-
} from "./_node-chunks/chunk-
|
|
19
|
+
} from "./_node-chunks/chunk-XBJTSAOB.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-JBEMNGOF.js";
|
|
29
29
|
import {
|
|
30
30
|
require_picocolors
|
|
31
|
-
} from "./_node-chunks/chunk-
|
|
31
|
+
} from "./_node-chunks/chunk-JY2KDL56.js";
|
|
32
32
|
import {
|
|
33
33
|
normalize
|
|
34
|
-
} from "./_node-chunks/chunk-
|
|
34
|
+
} from "./_node-chunks/chunk-B3DUYZ7M.js";
|
|
35
35
|
import {
|
|
36
36
|
__name,
|
|
37
37
|
__toESM
|
|
38
|
-
} from "./_node-chunks/chunk-
|
|
38
|
+
} from "./_node-chunks/chunk-EP42ZO27.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_y0x1d6vtk9 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_y0x1d6vtk9 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_y0x1d6vtk9 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_y0x1d6vtk9.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_y0x1d6vtk9.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_y0x1d6vtk9.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-EP42ZO27.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_y0x1d6vtk9 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_y0x1d6vtk9 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_y0x1d6vtk9 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_y0x1d6vtk9.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_y0x1d6vtk9.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_y0x1d6vtk9.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-JY2KDL56.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-B3DUYZ7M.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-EP42ZO27.js";
|
|
28
28
|
|
|
29
29
|
// ../../node_modules/braces/lib/utils.js
|
|
30
30
|
var require_utils = __commonJS({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/addon-vitest",
|
|
3
|
-
"version": "0.0.0-pr-
|
|
3
|
+
"version": "0.0.0-pr-32855-sha-c6bbabd2",
|
|
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": "^0.0.0-pr-
|
|
110
|
+
"storybook": "^0.0.0-pr-32855-sha-c6bbabd2",
|
|
111
111
|
"vitest": "^3.0.0 || ^4.0.0"
|
|
112
112
|
},
|
|
113
113
|
"peerDependenciesMeta": {
|