@storybook/addon-vitest 10.4.0-alpha.5 → 10.4.0-alpha.7
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-XEQY342O.js → chunk-DCJE73ZW.js} +6 -6
- package/dist/_node-chunks/{chunk-FUYO6TF7.js → chunk-HAEU5Z3R.js} +6 -6
- package/dist/_node-chunks/chunk-JFYR7JA4.js +50 -0
- package/dist/_node-chunks/{chunk-GLXKGZ3J.js → chunk-KHY44X6C.js} +6 -6
- package/dist/_node-chunks/{chunk-UFB5YDD4.js → chunk-MWM4HTSC.js} +7 -7
- package/dist/_node-chunks/{chunk-3MYH2GVZ.js → chunk-OS6ARBVS.js} +6 -6
- package/dist/_node-chunks/{chunk-AQHUUPC6.js → chunk-XNZNG3BA.js} +7 -7
- package/dist/_node-chunks/{chunk-U4KHXYIJ.js → chunk-ZBEI37ES.js} +7 -7
- package/dist/_node-chunks/{vitest.config.3.2-PWRQSQJC.js → vitest.config.3.2.template-366EOHBN.js} +10 -10
- package/dist/_node-chunks/{vitest.config.4-MGMOA7JX.js → vitest.config.4.template-CLFMPK3W.js} +10 -10
- package/dist/_node-chunks/{vitest.config-SJG55E3E.js → vitest.config.template-LJMQDFFO.js} +10 -10
- package/dist/_node-chunks/{vitest.workspace-DCGKI674.js → vitest.workspace.template-U3DNL46X.js} +10 -10
- package/dist/constants.js +8 -8
- package/dist/node/coverage-reporter.js +8 -8
- package/dist/node/vitest.js +13 -23
- package/dist/postinstall.js +16 -16
- package/dist/preset.js +14 -18
- package/dist/vitest-plugin/global-setup.js +7 -7
- package/dist/vitest-plugin/index.js +15 -19
- package/package.json +3 -3
- package/dist/_node-chunks/chunk-VVBBF2VU.js +0 -38
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_gzcm79tosd5 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_gzcm79tosd5 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_gzcm79tosd5 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_gzcm79tosd5.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_gzcm79tosd5.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_gzcm79tosd5.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_gzcm79tosd5 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_gzcm79tosd5 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_gzcm79tosd5 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_gzcm79tosd5.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_gzcm79tosd5.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_gzcm79tosd5.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import CJS_COMPAT_NODE_URL_gzcm79tosd5 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_gzcm79tosd5 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_gzcm79tosd5 from "node:module";
|
|
4
|
+
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_gzcm79tosd5.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_gzcm79tosd5.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_gzcm79tosd5.createRequire(import.meta.url);
|
|
8
|
+
|
|
9
|
+
// ------------------------------------------------------------
|
|
10
|
+
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
+
// ------------------------------------------------------------
|
|
12
|
+
import {
|
|
13
|
+
ADDON_ID2 as ADDON_ID
|
|
14
|
+
} from "./chunk-OS6ARBVS.js";
|
|
15
|
+
import {
|
|
16
|
+
require_picocolors
|
|
17
|
+
} from "./chunk-ZBEI37ES.js";
|
|
18
|
+
import {
|
|
19
|
+
__toESM
|
|
20
|
+
} from "./chunk-KHY44X6C.js";
|
|
21
|
+
|
|
22
|
+
// src/logger.ts
|
|
23
|
+
var import_picocolors = __toESM(require_picocolors(), 1);
|
|
24
|
+
import { logger } from "storybook/internal/node-logger";
|
|
25
|
+
var log = (message) => {
|
|
26
|
+
logger.log(
|
|
27
|
+
`${import_picocolors.default.magenta(ADDON_ID)}: ${message.toString().replaceAll(/(│\n|│ )/g, "").trim()}`
|
|
28
|
+
);
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
// ../../../node_modules/es-toolkit/dist/function/noop.mjs
|
|
32
|
+
function noop() {
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
// src/utils.ts
|
|
36
|
+
function errorToErrorLike(error) {
|
|
37
|
+
return {
|
|
38
|
+
message: error.message,
|
|
39
|
+
name: error.name,
|
|
40
|
+
// avoid duplicating the error message in the stack trace
|
|
41
|
+
stack: error.message + " " + error.stack?.replace(error.message, ""),
|
|
42
|
+
cause: error.cause && error.cause instanceof Error ? errorToErrorLike(error.cause) : void 0
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export {
|
|
47
|
+
noop,
|
|
48
|
+
log,
|
|
49
|
+
errorToErrorLike
|
|
50
|
+
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_gzcm79tosd5 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_gzcm79tosd5 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_gzcm79tosd5 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_gzcm79tosd5.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_gzcm79tosd5.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_gzcm79tosd5.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_gzcm79tosd5 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_gzcm79tosd5 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_gzcm79tosd5 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_gzcm79tosd5.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_gzcm79tosd5.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_gzcm79tosd5.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-KHY44X6C.js";
|
|
15
15
|
|
|
16
16
|
// ../../../node_modules/ts-dedent/dist/index.js
|
|
17
17
|
var require_dist = __commonJS({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_gzcm79tosd5 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_gzcm79tosd5 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_gzcm79tosd5 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_gzcm79tosd5.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_gzcm79tosd5.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_gzcm79tosd5.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_gzcm79tosd5 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_gzcm79tosd5 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_gzcm79tosd5 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_gzcm79tosd5.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_gzcm79tosd5.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_gzcm79tosd5.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-KHY44X6C.js";
|
|
15
15
|
|
|
16
16
|
// ../../../node_modules/semver/internal/constants.js
|
|
17
17
|
var require_constants = __commonJS({
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_gzcm79tosd5 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_gzcm79tosd5 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_gzcm79tosd5 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_gzcm79tosd5.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_gzcm79tosd5.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_gzcm79tosd5.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-KHY44X6C.js";
|
|
15
15
|
|
|
16
16
|
// ../../../node_modules/picocolors/picocolors.js
|
|
17
17
|
var require_picocolors = __commonJS({
|
package/dist/_node-chunks/{vitest.config.3.2-PWRQSQJC.js → vitest.config.3.2.template-366EOHBN.js}
RENAMED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_gzcm79tosd5 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_gzcm79tosd5 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_gzcm79tosd5 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_gzcm79tosd5.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_gzcm79tosd5.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_gzcm79tosd5.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-KHY44X6C.js";
|
|
13
13
|
|
|
14
|
-
// raw:../templates/vitest.config.3.2.template
|
|
15
|
-
var
|
|
14
|
+
// raw:../templates/vitest.config.3.2.template.ts
|
|
15
|
+
var vitest_config_3_2_template_default = `import path from 'node:path';
|
|
16
16
|
import { fileURLToPath } from 'node:url';
|
|
17
17
|
|
|
18
18
|
import { defineConfig } from 'vitest/config';
|
|
@@ -48,5 +48,5 @@ export default defineConfig({
|
|
|
48
48
|
});
|
|
49
49
|
`;
|
|
50
50
|
export {
|
|
51
|
-
|
|
51
|
+
vitest_config_3_2_template_default as default
|
|
52
52
|
};
|
package/dist/_node-chunks/{vitest.config.4-MGMOA7JX.js → vitest.config.4.template-CLFMPK3W.js}
RENAMED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_gzcm79tosd5 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_gzcm79tosd5 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_gzcm79tosd5 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_gzcm79tosd5.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_gzcm79tosd5.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_gzcm79tosd5.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-KHY44X6C.js";
|
|
13
13
|
|
|
14
|
-
// raw:../templates/vitest.config.4.template
|
|
15
|
-
var
|
|
14
|
+
// raw:../templates/vitest.config.4.template.ts
|
|
15
|
+
var vitest_config_4_template_default = `import path from 'node:path';
|
|
16
16
|
import { fileURLToPath } from 'node:url';
|
|
17
17
|
|
|
18
18
|
import { defineConfig } from 'vitest/config';
|
|
@@ -50,5 +50,5 @@ export default defineConfig({
|
|
|
50
50
|
});
|
|
51
51
|
`;
|
|
52
52
|
export {
|
|
53
|
-
|
|
53
|
+
vitest_config_4_template_default as default
|
|
54
54
|
};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_gzcm79tosd5 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_gzcm79tosd5 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_gzcm79tosd5 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_gzcm79tosd5.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_gzcm79tosd5.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_gzcm79tosd5.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-KHY44X6C.js";
|
|
13
13
|
|
|
14
|
-
// raw:../templates/vitest.config.template
|
|
15
|
-
var
|
|
14
|
+
// raw:../templates/vitest.config.template.ts
|
|
15
|
+
var vitest_config_template_default = `import path from 'node:path';
|
|
16
16
|
import { fileURLToPath } from 'node:url';
|
|
17
17
|
|
|
18
18
|
import { defineConfig } from 'vitest/config';
|
|
@@ -48,5 +48,5 @@ export default defineConfig({
|
|
|
48
48
|
});
|
|
49
49
|
`;
|
|
50
50
|
export {
|
|
51
|
-
|
|
51
|
+
vitest_config_template_default as default
|
|
52
52
|
};
|
package/dist/_node-chunks/{vitest.workspace-DCGKI674.js → vitest.workspace.template-U3DNL46X.js}
RENAMED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_gzcm79tosd5 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_gzcm79tosd5 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_gzcm79tosd5 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_gzcm79tosd5.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_gzcm79tosd5.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_gzcm79tosd5.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-KHY44X6C.js";
|
|
13
13
|
|
|
14
|
-
// raw:../templates/vitest.workspace.template
|
|
15
|
-
var
|
|
14
|
+
// raw:../templates/vitest.workspace.template.ts
|
|
15
|
+
var vitest_workspace_template_default = `import path from 'node:path';
|
|
16
16
|
import { fileURLToPath } from 'node:url';
|
|
17
17
|
|
|
18
18
|
import { defineWorkspace } from 'vitest/config';
|
|
@@ -45,5 +45,5 @@ export default defineWorkspace([
|
|
|
45
45
|
]);
|
|
46
46
|
`;
|
|
47
47
|
export {
|
|
48
|
-
|
|
48
|
+
vitest_workspace_template_default as default
|
|
49
49
|
};
|
package/dist/constants.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_gzcm79tosd5 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_gzcm79tosd5 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_gzcm79tosd5 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_gzcm79tosd5.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_gzcm79tosd5.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_gzcm79tosd5.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -29,8 +29,8 @@ import {
|
|
|
29
29
|
TRIGGER_TEST_RUN_RESPONSE,
|
|
30
30
|
TUTORIAL_VIDEO_LINK,
|
|
31
31
|
storeOptions
|
|
32
|
-
} from "./_node-chunks/chunk-
|
|
33
|
-
import "./_node-chunks/chunk-
|
|
32
|
+
} from "./_node-chunks/chunk-OS6ARBVS.js";
|
|
33
|
+
import "./_node-chunks/chunk-KHY44X6C.js";
|
|
34
34
|
export {
|
|
35
35
|
ADDON_ID as A11Y_ADDON_ID,
|
|
36
36
|
PANEL_ID2 as A11Y_PANEL_ID,
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_gzcm79tosd5 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_gzcm79tosd5 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_gzcm79tosd5 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_gzcm79tosd5.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_gzcm79tosd5.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_gzcm79tosd5.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-XNZNG3BA.js";
|
|
15
15
|
import {
|
|
16
16
|
__commonJS,
|
|
17
17
|
__require,
|
|
18
18
|
__toESM
|
|
19
|
-
} from "../_node-chunks/chunk-
|
|
19
|
+
} from "../_node-chunks/chunk-KHY44X6C.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,37 +1,38 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_gzcm79tosd5 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_gzcm79tosd5 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_gzcm79tosd5 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_gzcm79tosd5.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_gzcm79tosd5.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_gzcm79tosd5.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
|
+
errorToErrorLike,
|
|
13
14
|
log
|
|
14
|
-
} from "../_node-chunks/chunk-
|
|
15
|
+
} from "../_node-chunks/chunk-JFYR7JA4.js";
|
|
15
16
|
import {
|
|
16
17
|
any,
|
|
17
18
|
up
|
|
18
|
-
} from "../_node-chunks/chunk-
|
|
19
|
+
} from "../_node-chunks/chunk-DCJE73ZW.js";
|
|
19
20
|
import {
|
|
20
21
|
ADDON_ID2 as ADDON_ID,
|
|
21
22
|
COVERAGE_DIRECTORY,
|
|
22
23
|
STATUS_TYPE_ID_A11Y,
|
|
23
24
|
STATUS_TYPE_ID_COMPONENT_TEST,
|
|
24
25
|
storeOptions
|
|
25
|
-
} from "../_node-chunks/chunk-
|
|
26
|
-
import "../_node-chunks/chunk-
|
|
26
|
+
} from "../_node-chunks/chunk-OS6ARBVS.js";
|
|
27
|
+
import "../_node-chunks/chunk-ZBEI37ES.js";
|
|
27
28
|
import {
|
|
28
29
|
dirname,
|
|
29
30
|
join,
|
|
30
31
|
normalize,
|
|
31
32
|
path,
|
|
32
33
|
resolve
|
|
33
|
-
} from "../_node-chunks/chunk-
|
|
34
|
-
import "../_node-chunks/chunk-
|
|
34
|
+
} from "../_node-chunks/chunk-HAEU5Z3R.js";
|
|
35
|
+
import "../_node-chunks/chunk-KHY44X6C.js";
|
|
35
36
|
|
|
36
37
|
// src/node/vitest.ts
|
|
37
38
|
import process2 from "node:process";
|
|
@@ -113,17 +114,6 @@ function throttle(func, throttleMs, { signal, edges = ["leading", "trailing"] }
|
|
|
113
114
|
return throttled.cancel = debounced.cancel, throttled.flush = debounced.flush, throttled;
|
|
114
115
|
}
|
|
115
116
|
|
|
116
|
-
// src/utils.ts
|
|
117
|
-
function errorToErrorLike(error) {
|
|
118
|
-
return {
|
|
119
|
-
message: error.message,
|
|
120
|
-
name: error.name,
|
|
121
|
-
// avoid duplicating the error message in the stack trace
|
|
122
|
-
stack: error.message + " " + error.stack?.replace(error.message, ""),
|
|
123
|
-
cause: error.cause && error.cause instanceof Error ? errorToErrorLike(error.cause) : void 0
|
|
124
|
-
};
|
|
125
|
-
}
|
|
126
|
-
|
|
127
117
|
// src/node/vitest-manager.ts
|
|
128
118
|
import { existsSync, readFileSync } from "node:fs";
|
|
129
119
|
import { getProjectRoot, resolvePathInStorybookCache } from "storybook/internal/common";
|
package/dist/postinstall.js
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_gzcm79tosd5 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_gzcm79tosd5 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_gzcm79tosd5 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_gzcm79tosd5.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_gzcm79tosd5.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_gzcm79tosd5.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
|
any
|
|
14
|
-
} from "./_node-chunks/chunk-
|
|
14
|
+
} from "./_node-chunks/chunk-DCJE73ZW.js";
|
|
15
15
|
import {
|
|
16
16
|
DOCUMENTATION_LINK
|
|
17
|
-
} from "./_node-chunks/chunk-
|
|
17
|
+
} from "./_node-chunks/chunk-OS6ARBVS.js";
|
|
18
18
|
import {
|
|
19
19
|
require_dist
|
|
20
|
-
} from "./_node-chunks/chunk-
|
|
20
|
+
} from "./_node-chunks/chunk-MWM4HTSC.js";
|
|
21
21
|
import {
|
|
22
22
|
dirname,
|
|
23
23
|
normalize,
|
|
24
24
|
relative,
|
|
25
25
|
resolve
|
|
26
|
-
} from "./_node-chunks/chunk-
|
|
26
|
+
} from "./_node-chunks/chunk-HAEU5Z3R.js";
|
|
27
27
|
import {
|
|
28
28
|
require_compare,
|
|
29
29
|
require_constants,
|
|
@@ -33,11 +33,11 @@ import {
|
|
|
33
33
|
require_parse_options,
|
|
34
34
|
require_re,
|
|
35
35
|
require_semver
|
|
36
|
-
} from "./_node-chunks/chunk-
|
|
36
|
+
} from "./_node-chunks/chunk-XNZNG3BA.js";
|
|
37
37
|
import {
|
|
38
38
|
__commonJS,
|
|
39
39
|
__toESM
|
|
40
|
-
} from "./_node-chunks/chunk-
|
|
40
|
+
} from "./_node-chunks/chunk-KHY44X6C.js";
|
|
41
41
|
|
|
42
42
|
// ../../../node_modules/semver/functions/parse.js
|
|
43
43
|
var require_parse = __commonJS({
|
|
@@ -902,13 +902,13 @@ import {
|
|
|
902
902
|
async function getTemplatePath(name) {
|
|
903
903
|
switch (name) {
|
|
904
904
|
case "vitest.config.template":
|
|
905
|
-
return import("./_node-chunks/vitest.config-
|
|
905
|
+
return import("./_node-chunks/vitest.config.template-LJMQDFFO.js");
|
|
906
906
|
case "vitest.config.4.template":
|
|
907
|
-
return import("./_node-chunks/vitest.config.4-
|
|
907
|
+
return import("./_node-chunks/vitest.config.4.template-CLFMPK3W.js");
|
|
908
908
|
case "vitest.config.3.2.template":
|
|
909
|
-
return import("./_node-chunks/vitest.config.3.2-
|
|
909
|
+
return import("./_node-chunks/vitest.config.3.2.template-366EOHBN.js");
|
|
910
910
|
case "vitest.workspace.template":
|
|
911
|
-
return import("./_node-chunks/vitest.workspace-
|
|
911
|
+
return import("./_node-chunks/vitest.workspace.template-U3DNL46X.js");
|
|
912
912
|
default:
|
|
913
913
|
throw new Error(`Unknown template: ${name}`);
|
|
914
914
|
}
|
package/dist/preset.js
CHANGED
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_gzcm79tosd5 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_gzcm79tosd5 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_gzcm79tosd5 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_gzcm79tosd5.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_gzcm79tosd5.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_gzcm79tosd5.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
|
+
errorToErrorLike,
|
|
13
14
|
log,
|
|
14
15
|
noop
|
|
15
|
-
} from "./_node-chunks/chunk-
|
|
16
|
+
} from "./_node-chunks/chunk-JFYR7JA4.js";
|
|
16
17
|
import {
|
|
17
18
|
ADDON_ID2 as ADDON_ID,
|
|
18
19
|
COVERAGE_DIRECTORY,
|
|
@@ -23,19 +24,19 @@ import {
|
|
|
23
24
|
TRIGGER_TEST_RUN_REQUEST,
|
|
24
25
|
TRIGGER_TEST_RUN_RESPONSE,
|
|
25
26
|
storeOptions
|
|
26
|
-
} from "./_node-chunks/chunk-
|
|
27
|
+
} from "./_node-chunks/chunk-OS6ARBVS.js";
|
|
27
28
|
import {
|
|
28
29
|
require_picocolors
|
|
29
|
-
} from "./_node-chunks/chunk-
|
|
30
|
+
} from "./_node-chunks/chunk-ZBEI37ES.js";
|
|
30
31
|
import {
|
|
31
32
|
require_dist
|
|
32
|
-
} from "./_node-chunks/chunk-
|
|
33
|
+
} from "./_node-chunks/chunk-MWM4HTSC.js";
|
|
33
34
|
import {
|
|
34
35
|
normalize
|
|
35
|
-
} from "./_node-chunks/chunk-
|
|
36
|
+
} from "./_node-chunks/chunk-HAEU5Z3R.js";
|
|
36
37
|
import {
|
|
37
38
|
__toESM
|
|
38
|
-
} from "./_node-chunks/chunk-
|
|
39
|
+
} from "./_node-chunks/chunk-KHY44X6C.js";
|
|
39
40
|
|
|
40
41
|
// src/preset.ts
|
|
41
42
|
import { mkdir } from "node:fs/promises";
|
|
@@ -415,12 +416,7 @@ var MAX_START_TIME = 3e4, vitestModulePath = fileURLToPath2(importMetaResolve("@
|
|
|
415
416
|
type: "FATAL_ERROR",
|
|
416
417
|
payload: {
|
|
417
418
|
message: "Failed to start test runner process",
|
|
418
|
-
error: {
|
|
419
|
-
message: error.message,
|
|
420
|
-
name: error.name,
|
|
421
|
-
stack: error.stack,
|
|
422
|
-
cause: error.cause
|
|
423
|
-
}
|
|
419
|
+
error: error instanceof Error ? errorToErrorLike(error) : { message: String(error) }
|
|
424
420
|
}
|
|
425
421
|
}), eventQueue.length = 0, error;
|
|
426
422
|
});
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_gzcm79tosd5 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_gzcm79tosd5 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_gzcm79tosd5 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_gzcm79tosd5.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_gzcm79tosd5.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_gzcm79tosd5.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-KHY44X6C.js";
|
|
17
17
|
|
|
18
18
|
// ../../../node_modules/tree-kill/index.js
|
|
19
19
|
var require_tree_kill = __commonJS({
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_gzcm79tosd5 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_gzcm79tosd5 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_gzcm79tosd5 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_gzcm79tosd5.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_gzcm79tosd5.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_gzcm79tosd5.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-ZBEI37ES.js";
|
|
15
15
|
import {
|
|
16
16
|
require_dist
|
|
17
|
-
} from "../_node-chunks/chunk-
|
|
17
|
+
} from "../_node-chunks/chunk-MWM4HTSC.js";
|
|
18
18
|
import {
|
|
19
19
|
dirname,
|
|
20
20
|
join,
|
|
@@ -23,12 +23,12 @@ import {
|
|
|
23
23
|
relative,
|
|
24
24
|
resolve,
|
|
25
25
|
sep
|
|
26
|
-
} from "../_node-chunks/chunk-
|
|
26
|
+
} from "../_node-chunks/chunk-HAEU5Z3R.js";
|
|
27
27
|
import {
|
|
28
28
|
__commonJS,
|
|
29
29
|
__require,
|
|
30
30
|
__toESM
|
|
31
|
-
} from "../_node-chunks/chunk-
|
|
31
|
+
} from "../_node-chunks/chunk-KHY44X6C.js";
|
|
32
32
|
|
|
33
33
|
// ../../../node_modules/braces/lib/utils.js
|
|
34
34
|
var require_utils = __commonJS({
|
|
@@ -2328,7 +2328,6 @@ import { mergeConfig } from "vitest/config";
|
|
|
2328
2328
|
import {
|
|
2329
2329
|
DEFAULT_FILES_PATTERN,
|
|
2330
2330
|
getInterpretedFile,
|
|
2331
|
-
loadPreviewOrConfigFile,
|
|
2332
2331
|
normalizeStories,
|
|
2333
2332
|
optionalEnvToBoolean,
|
|
2334
2333
|
resolvePathInStorybookCache,
|
|
@@ -2342,7 +2341,6 @@ import {
|
|
|
2342
2341
|
} from "storybook/internal/core-server";
|
|
2343
2342
|
import {
|
|
2344
2343
|
componentTransform,
|
|
2345
|
-
isCsfFactoryPreview,
|
|
2346
2344
|
readConfig,
|
|
2347
2345
|
vitestTransform
|
|
2348
2346
|
} from "storybook/internal/csf-tools";
|
|
@@ -2365,7 +2363,7 @@ import { CLI_COLORS, logger } from "storybook/internal/node-logger";
|
|
|
2365
2363
|
var import_ts_dedent = __toESM(require_dist(), 1), hasLoggedDeprecationWarning = !1, logBoxOnce = (message) => {
|
|
2366
2364
|
hasLoggedDeprecationWarning || (logger.logBox(message), hasLoggedDeprecationWarning = !0);
|
|
2367
2365
|
};
|
|
2368
|
-
async function requiresProjectAnnotations(testConfig, finalOptions
|
|
2366
|
+
async function requiresProjectAnnotations(testConfig, finalOptions) {
|
|
2369
2367
|
return (Array.isArray(testConfig?.setupFiles) ? testConfig.setupFiles : typeof testConfig?.setupFiles == "string" ? [testConfig.setupFiles] : []).map((setupFile) => {
|
|
2370
2368
|
try {
|
|
2371
2369
|
return resolve(finalOptions.vitestRoot, setupFile);
|
|
@@ -2376,7 +2374,7 @@ async function requiresProjectAnnotations(testConfig, finalOptions, isCSF4) {
|
|
|
2376
2374
|
${CLI_COLORS.info("Info")}: Found a setup file with "setProjectAnnotations".
|
|
2377
2375
|
Skipping automatic provisioning of preview annotations to avoid conflicts. Since Storybook 10.3, "@storybook/addon-vitest" applies these automatically.
|
|
2378
2376
|
You can safely remove the "setProjectAnnotations" call from your setup file, or remove the file entirely if you don't have custom code there.
|
|
2379
|
-
`), !1) : !
|
|
2377
|
+
`), !1) : !0;
|
|
2380
2378
|
}
|
|
2381
2379
|
|
|
2382
2380
|
// src/vitest-plugin/index.ts
|
|
@@ -2515,14 +2513,12 @@ var WORKING_DIR = process.cwd(), defaultOptions = {
|
|
|
2515
2513
|
return typeof story == "string" ? storyPath = story : storyPath = `${story.directory}/${story.files ?? DEFAULT_FILES_PATTERN}`, join(finalOptions.configDir, storyPath);
|
|
2516
2514
|
}).map((story) => relative(finalOptions.vitestRoot, story));
|
|
2517
2515
|
finalOptions.includeStories = includeStories;
|
|
2518
|
-
let projectId = oneWayHash(finalOptions.configDir),
|
|
2516
|
+
let projectId = oneWayHash(finalOptions.configDir), internalSetupFiles = [
|
|
2519
2517
|
"@storybook/addon-vitest/internal/setup-file",
|
|
2520
2518
|
await requiresProjectAnnotations(
|
|
2521
2519
|
nonMutableInputConfig.test,
|
|
2522
|
-
finalOptions
|
|
2523
|
-
|
|
2524
|
-
) && "@storybook/addon-vitest/internal/setup-file-with-project-annotations",
|
|
2525
|
-
isCSF4 && previewOrConfigFile
|
|
2520
|
+
finalOptions
|
|
2521
|
+
) && "@storybook/addon-vitest/internal/setup-file-with-project-annotations"
|
|
2526
2522
|
].filter(Boolean).map((filePath) => fileURLToPath(import.meta.resolve(filePath))), baseConfig = {
|
|
2527
2523
|
cacheDir: resolvePathInStorybookCache("sb-vitest", projectId),
|
|
2528
2524
|
test: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/addon-vitest",
|
|
3
|
-
"version": "10.4.0-alpha.
|
|
3
|
+
"version": "10.4.0-alpha.7",
|
|
4
4
|
"description": "Storybook Vitest addon: Blazing fast component testing using stories",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook",
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"@storybook/icons": "^2.0.1"
|
|
81
81
|
},
|
|
82
82
|
"devDependencies": {
|
|
83
|
-
"@storybook/addon-a11y": "10.4.0-alpha.
|
|
83
|
+
"@storybook/addon-a11y": "10.4.0-alpha.7",
|
|
84
84
|
"@types/istanbul-lib-report": "^3.0.3",
|
|
85
85
|
"@types/micromatch": "^4.0.0",
|
|
86
86
|
"@types/node": "^22.19.1",
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
"@vitest/browser": "^3.0.0 || ^4.0.0",
|
|
109
109
|
"@vitest/browser-playwright": "^4.0.0",
|
|
110
110
|
"@vitest/runner": "^3.0.0 || ^4.0.0",
|
|
111
|
-
"storybook": "^10.4.0-alpha.
|
|
111
|
+
"storybook": "^10.4.0-alpha.7",
|
|
112
112
|
"vitest": "^3.0.0 || ^4.0.0"
|
|
113
113
|
},
|
|
114
114
|
"peerDependenciesMeta": {
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import CJS_COMPAT_NODE_URL_t3tzbk1gj8o from 'node:url';
|
|
2
|
-
import CJS_COMPAT_NODE_PATH_t3tzbk1gj8o from 'node:path';
|
|
3
|
-
import CJS_COMPAT_NODE_MODULE_t3tzbk1gj8o from "node:module";
|
|
4
|
-
|
|
5
|
-
var __filename = CJS_COMPAT_NODE_URL_t3tzbk1gj8o.fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = CJS_COMPAT_NODE_PATH_t3tzbk1gj8o.dirname(__filename);
|
|
7
|
-
var require = CJS_COMPAT_NODE_MODULE_t3tzbk1gj8o.createRequire(import.meta.url);
|
|
8
|
-
|
|
9
|
-
// ------------------------------------------------------------
|
|
10
|
-
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
-
// ------------------------------------------------------------
|
|
12
|
-
import {
|
|
13
|
-
ADDON_ID2 as ADDON_ID
|
|
14
|
-
} from "./chunk-3MYH2GVZ.js";
|
|
15
|
-
import {
|
|
16
|
-
require_picocolors
|
|
17
|
-
} from "./chunk-U4KHXYIJ.js";
|
|
18
|
-
import {
|
|
19
|
-
__toESM
|
|
20
|
-
} from "./chunk-GLXKGZ3J.js";
|
|
21
|
-
|
|
22
|
-
// src/logger.ts
|
|
23
|
-
var import_picocolors = __toESM(require_picocolors(), 1);
|
|
24
|
-
import { logger } from "storybook/internal/node-logger";
|
|
25
|
-
var log = (message) => {
|
|
26
|
-
logger.log(
|
|
27
|
-
`${import_picocolors.default.magenta(ADDON_ID)}: ${message.toString().replaceAll(/(│\n|│ )/g, "").trim()}`
|
|
28
|
-
);
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
// ../../../node_modules/es-toolkit/dist/function/noop.mjs
|
|
32
|
-
function noop() {
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
export {
|
|
36
|
-
noop,
|
|
37
|
-
log
|
|
38
|
-
};
|