@storybook/addon-vitest 0.0.0-pr-31819-sha-a0577487 → 0.0.0-pr-31819-sha-19dfdec3
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-IJMO64JG.js → chunk-5QGIV2TF.js} +7 -7
- package/dist/_node-chunks/{chunk-GIQ6WYAX.js → chunk-DFTBYIO5.js} +8 -8
- package/dist/_node-chunks/{chunk-DY24CBZY.js → chunk-J5G4XCWR.js} +9 -9
- package/dist/_node-chunks/{chunk-AMB44XKP.js → chunk-O2NMSSY6.js} +7 -7
- package/dist/_node-chunks/{chunk-5B46SCE2.js → chunk-Q4PWEPIG.js} +7 -7
- package/dist/_node-chunks/{chunk-5ARQS276.js → chunk-TNT2AGB4.js} +6 -6
- package/dist/_node-chunks/{chunk-QTCRBBGH.js → chunk-V3BBLKEJ.js} +6 -6
- package/dist/_node-chunks/{chunk-7RNHHSB2.js → chunk-ZESKSMNO.js} +7 -7
- package/dist/node/coverage-reporter.js +8 -8
- package/dist/node/vitest.js +12 -12
- package/dist/postinstall.js +17 -15
- package/dist/preset.js +12 -12
- package/dist/vitest-plugin/global-setup.js +7 -7
- package/dist/vitest-plugin/index.js +9 -9
- package/package.json +2 -2
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_jh08sgi02qj from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_jh08sgi02qj from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_jh08sgi02qj from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_jh08sgi02qj.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_jh08sgi02qj.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_jh08sgi02qj.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-V3BBLKEJ.js";
|
|
15
15
|
|
|
16
16
|
// src/utils.ts
|
|
17
17
|
function getAddonNames(mainConfig) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_jh08sgi02qj from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_jh08sgi02qj from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_jh08sgi02qj from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_jh08sgi02qj.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_jh08sgi02qj.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_jh08sgi02qj.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_kf8lawjx9z.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
dirname,
|
|
14
14
|
join
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-ZESKSMNO.js";
|
|
16
16
|
import {
|
|
17
17
|
__commonJS,
|
|
18
18
|
__name,
|
|
19
19
|
__require,
|
|
20
20
|
__toESM
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-V3BBLKEJ.js";
|
|
22
22
|
|
|
23
23
|
// ../../node_modules/isexe/windows.js
|
|
24
24
|
var require_windows = __commonJS({
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_jh08sgi02qj from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_jh08sgi02qj from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_jh08sgi02qj from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_jh08sgi02qj.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_jh08sgi02qj.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_jh08sgi02qj.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-TNT2AGB4.js";
|
|
15
15
|
import {
|
|
16
16
|
require_picocolors
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-O2NMSSY6.js";
|
|
18
18
|
import {
|
|
19
19
|
__export,
|
|
20
20
|
__name,
|
|
21
21
|
__toESM
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-V3BBLKEJ.js";
|
|
23
23
|
|
|
24
24
|
// ../../node_modules/es-toolkit/dist/predicate/isPlainObject.mjs
|
|
25
25
|
function isPlainObject(value) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_jh08sgi02qj from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_jh08sgi02qj from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_jh08sgi02qj from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_jh08sgi02qj.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_jh08sgi02qj.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_jh08sgi02qj.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_kf8lawjx9z.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
__commonJS,
|
|
14
14
|
__name
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-V3BBLKEJ.js";
|
|
16
16
|
|
|
17
17
|
// ../../node_modules/picocolors/picocolors.js
|
|
18
18
|
var require_picocolors = __commonJS({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_jh08sgi02qj from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_jh08sgi02qj from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_jh08sgi02qj from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_jh08sgi02qj.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_jh08sgi02qj.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_jh08sgi02qj.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_kf8lawjx9z.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
__commonJS,
|
|
14
14
|
__name
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-V3BBLKEJ.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_jh08sgi02qj from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_jh08sgi02qj from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_jh08sgi02qj from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_jh08sgi02qj.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_jh08sgi02qj.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_jh08sgi02qj.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_jh08sgi02qj from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_jh08sgi02qj from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_jh08sgi02qj from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_jh08sgi02qj.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_jh08sgi02qj.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_jh08sgi02qj.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_jh08sgi02qj from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_jh08sgi02qj from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_jh08sgi02qj from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_jh08sgi02qj.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_jh08sgi02qj.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_jh08sgi02qj.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-V3BBLKEJ.js";
|
|
15
15
|
|
|
16
16
|
// ../../node_modules/pathe/dist/shared/pathe.ff20891b.mjs
|
|
17
17
|
var _DRIVE_LETTER_START_RE = /^[A-Za-z]:\//;
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_jh08sgi02qj from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_jh08sgi02qj from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_jh08sgi02qj from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_jh08sgi02qj.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_jh08sgi02qj.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_jh08sgi02qj.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-Q4PWEPIG.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-V3BBLKEJ.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,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_jh08sgi02qj from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_jh08sgi02qj from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_jh08sgi02qj from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_jh08sgi02qj.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_jh08sgi02qj.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_jh08sgi02qj.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -12,28 +12,28 @@ var require = CJS_COMPAT_NODE_MODULE_kf8lawjx9z.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
log,
|
|
14
14
|
throttle
|
|
15
|
-
} from "../_node-chunks/chunk-
|
|
15
|
+
} from "../_node-chunks/chunk-J5G4XCWR.js";
|
|
16
16
|
import {
|
|
17
17
|
errorToErrorLike,
|
|
18
18
|
findUp
|
|
19
|
-
} from "../_node-chunks/chunk-
|
|
19
|
+
} from "../_node-chunks/chunk-5QGIV2TF.js";
|
|
20
20
|
import {
|
|
21
21
|
ADDON_ID,
|
|
22
22
|
COVERAGE_DIRECTORY,
|
|
23
23
|
STATUS_TYPE_ID_A11Y,
|
|
24
24
|
STATUS_TYPE_ID_COMPONENT_TEST,
|
|
25
25
|
storeOptions
|
|
26
|
-
} from "../_node-chunks/chunk-
|
|
27
|
-
import "../_node-chunks/chunk-
|
|
26
|
+
} from "../_node-chunks/chunk-TNT2AGB4.js";
|
|
27
|
+
import "../_node-chunks/chunk-O2NMSSY6.js";
|
|
28
28
|
import {
|
|
29
29
|
dirname,
|
|
30
30
|
join,
|
|
31
31
|
normalize,
|
|
32
32
|
path
|
|
33
|
-
} from "../_node-chunks/chunk-
|
|
33
|
+
} from "../_node-chunks/chunk-ZESKSMNO.js";
|
|
34
34
|
import {
|
|
35
35
|
__name
|
|
36
|
-
} from "../_node-chunks/chunk-
|
|
36
|
+
} from "../_node-chunks/chunk-V3BBLKEJ.js";
|
|
37
37
|
|
|
38
38
|
// src/node/vitest.ts
|
|
39
39
|
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_jh08sgi02qj from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_jh08sgi02qj from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_jh08sgi02qj from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_jh08sgi02qj.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_jh08sgi02qj.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_jh08sgi02qj.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -12,21 +12,21 @@ var require = CJS_COMPAT_NODE_MODULE_kf8lawjx9z.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
execa,
|
|
14
14
|
resolvePackageDir
|
|
15
|
-
} from "./_node-chunks/chunk-
|
|
15
|
+
} from "./_node-chunks/chunk-DFTBYIO5.js";
|
|
16
16
|
import {
|
|
17
17
|
findUp,
|
|
18
18
|
getAddonNames
|
|
19
|
-
} from "./_node-chunks/chunk-
|
|
19
|
+
} from "./_node-chunks/chunk-5QGIV2TF.js";
|
|
20
20
|
import {
|
|
21
21
|
DOCUMENTATION_LINK,
|
|
22
22
|
SUPPORTED_FRAMEWORKS
|
|
23
|
-
} from "./_node-chunks/chunk-
|
|
23
|
+
} from "./_node-chunks/chunk-TNT2AGB4.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-ZESKSMNO.js";
|
|
30
30
|
import {
|
|
31
31
|
require_compare,
|
|
32
32
|
require_constants,
|
|
@@ -36,12 +36,12 @@ import {
|
|
|
36
36
|
require_parse_options,
|
|
37
37
|
require_re,
|
|
38
38
|
require_semver
|
|
39
|
-
} from "./_node-chunks/chunk-
|
|
39
|
+
} from "./_node-chunks/chunk-Q4PWEPIG.js";
|
|
40
40
|
import {
|
|
41
41
|
__commonJS,
|
|
42
42
|
__name,
|
|
43
43
|
__toESM
|
|
44
|
-
} from "./_node-chunks/chunk-
|
|
44
|
+
} from "./_node-chunks/chunk-V3BBLKEJ.js";
|
|
45
45
|
|
|
46
46
|
// ../../node_modules/semver/functions/parse.js
|
|
47
47
|
var require_parse = __commonJS({
|
|
@@ -1513,7 +1513,7 @@ import { existsSync } from "node:fs";
|
|
|
1513
1513
|
import * as fs2 from "node:fs/promises";
|
|
1514
1514
|
import { writeFile } from "node:fs/promises";
|
|
1515
1515
|
import { isAbsolute, posix, sep } from "node:path";
|
|
1516
|
-
import { fileURLToPath } from "node:url";
|
|
1516
|
+
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
1517
1517
|
import { babelParse, generate, traverse } from "storybook/internal/babel";
|
|
1518
1518
|
import {
|
|
1519
1519
|
JsPackageManagerFactory,
|
|
@@ -2035,7 +2035,7 @@ async function postInstall(options) {
|
|
|
2035
2035
|
command.push("--skip-install");
|
|
2036
2036
|
}
|
|
2037
2037
|
if (options.configDir !== ".storybook") {
|
|
2038
|
-
command.push("--config-dir", options.configDir);
|
|
2038
|
+
command.push("--config-dir", `"${options.configDir}"`);
|
|
2039
2039
|
}
|
|
2040
2040
|
await execa("storybook", command, {
|
|
2041
2041
|
stdio: "inherit"
|
|
@@ -2094,7 +2094,9 @@ async function getPackageNameFromPath(input) {
|
|
|
2094
2094
|
if (!packageJsonPath) {
|
|
2095
2095
|
throw new Error(`Could not find package.json in path: ${path}`);
|
|
2096
2096
|
}
|
|
2097
|
-
const { default: packageJson } = await import(packageJsonPath, {
|
|
2097
|
+
const { default: packageJson } = await import(pathToFileURL(packageJsonPath).href, {
|
|
2098
|
+
with: { type: "json" }
|
|
2099
|
+
});
|
|
2098
2100
|
return packageJson.name;
|
|
2099
2101
|
}
|
|
2100
2102
|
__name(getPackageNameFromPath, "getPackageNameFromPath");
|
package/dist/preset.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_jh08sgi02qj from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_jh08sgi02qj from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_jh08sgi02qj from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_jh08sgi02qj.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_jh08sgi02qj.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_jh08sgi02qj.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_kf8lawjx9z.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
isEqual,
|
|
14
14
|
log
|
|
15
|
-
} from "./_node-chunks/chunk-
|
|
15
|
+
} from "./_node-chunks/chunk-J5G4XCWR.js";
|
|
16
16
|
import {
|
|
17
17
|
execaNode,
|
|
18
18
|
importMetaResolve
|
|
19
|
-
} from "./_node-chunks/chunk-
|
|
19
|
+
} from "./_node-chunks/chunk-DFTBYIO5.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-TNT2AGB4.js";
|
|
29
29
|
import {
|
|
30
30
|
require_picocolors
|
|
31
|
-
} from "./_node-chunks/chunk-
|
|
31
|
+
} from "./_node-chunks/chunk-O2NMSSY6.js";
|
|
32
32
|
import {
|
|
33
33
|
normalize
|
|
34
|
-
} from "./_node-chunks/chunk-
|
|
34
|
+
} from "./_node-chunks/chunk-ZESKSMNO.js";
|
|
35
35
|
import {
|
|
36
36
|
__name,
|
|
37
37
|
__toESM
|
|
38
|
-
} from "./_node-chunks/chunk-
|
|
38
|
+
} from "./_node-chunks/chunk-V3BBLKEJ.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_jh08sgi02qj from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_jh08sgi02qj from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_jh08sgi02qj from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_jh08sgi02qj.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_jh08sgi02qj.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_jh08sgi02qj.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-V3BBLKEJ.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_jh08sgi02qj from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_jh08sgi02qj from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_jh08sgi02qj from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_jh08sgi02qj.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_jh08sgi02qj.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_jh08sgi02qj.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-O2NMSSY6.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-ZESKSMNO.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-V3BBLKEJ.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-31819-sha-
|
|
3
|
+
"version": "0.0.0-pr-31819-sha-19dfdec3",
|
|
4
4
|
"description": "Storybook addon for testing components",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook-addons",
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
"peerDependencies": {
|
|
100
100
|
"@vitest/browser": "^3.0.0",
|
|
101
101
|
"@vitest/runner": "^3.0.0",
|
|
102
|
-
"storybook": "^0.0.0-pr-31819-sha-
|
|
102
|
+
"storybook": "^0.0.0-pr-31819-sha-19dfdec3",
|
|
103
103
|
"vitest": "^3.0.0"
|
|
104
104
|
},
|
|
105
105
|
"peerDependenciesMeta": {
|