@storybook/addon-vitest 10.4.0-alpha.1 → 10.4.0-alpha.11
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-MBAU75TQ.js → chunk-2GGPV6RL.js} +6 -6
- package/dist/_node-chunks/{chunk-6J2EB4QY.js → chunk-3PU66CME.js} +6 -6
- package/dist/_node-chunks/{chunk-3M3ZXYXP.js → chunk-6267M2TA.js} +7 -7
- package/dist/_node-chunks/{chunk-RMYMOYGY.js → chunk-LOJFC6WB.js} +6 -6
- package/dist/_node-chunks/{chunk-BTZLX5XF.js → chunk-M346CYJL.js} +7 -7
- package/dist/_node-chunks/{chunk-M55LDZLS.js → chunk-PXU54O6X.js} +6 -6
- package/dist/_node-chunks/chunk-Y2DRY4WC.js +50 -0
- package/dist/_node-chunks/{chunk-7RGK6BBT.js → chunk-YG4TBQOB.js} +7 -7
- package/dist/_node-chunks/{vitest.config.3.2-4YRBDS6U.js → vitest.config.3.2.template-Z6RDHBJR.js} +10 -10
- package/dist/_node-chunks/{vitest.config.4-PCMGKGJY.js → vitest.config.4.template-RSD3EYC2.js} +10 -10
- package/dist/_node-chunks/{vitest.config-Q4N3F7DF.js → vitest.config.template-FCHZHKX5.js} +10 -10
- package/dist/_node-chunks/{vitest.workspace-ORCFHJWS.js → vitest.workspace.template-2PIJLBP5.js} +10 -10
- package/dist/constants.js +8 -8
- package/dist/manager.js +85 -3
- package/dist/node/coverage-reporter.js +8 -8
- package/dist/node/vitest.js +13 -23
- package/dist/postinstall.js +23 -37
- package/dist/preset.js +47 -53
- package/dist/vitest-plugin/global-setup.js +7 -7
- package/dist/vitest-plugin/index.js +21 -27
- package/package.json +3 -3
- package/dist/_node-chunks/chunk-NGQZPKCK.js +0 -38
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_yl57dczpwb from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_yl57dczpwb from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_yl57dczpwb from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_yl57dczpwb.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_yl57dczpwb.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_yl57dczpwb.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_yl57dczpwb from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_yl57dczpwb from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_yl57dczpwb from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_yl57dczpwb.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_yl57dczpwb.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_yl57dczpwb.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_yl57dczpwb from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_yl57dczpwb from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_yl57dczpwb from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_yl57dczpwb.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_yl57dczpwb.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_yl57dczpwb.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-2GGPV6RL.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_yl57dczpwb from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_yl57dczpwb from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_yl57dczpwb from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_yl57dczpwb.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_yl57dczpwb.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_yl57dczpwb.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_yl57dczpwb from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_yl57dczpwb from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_yl57dczpwb from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_yl57dczpwb.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_yl57dczpwb.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_yl57dczpwb.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-2GGPV6RL.js";
|
|
15
15
|
|
|
16
16
|
// ../../../node_modules/picocolors/picocolors.js
|
|
17
17
|
var require_picocolors = __commonJS({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_yl57dczpwb from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_yl57dczpwb from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_yl57dczpwb from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_yl57dczpwb.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_yl57dczpwb.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_yl57dczpwb.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_yl57dczpwb from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_yl57dczpwb from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_yl57dczpwb from "node:module";
|
|
4
|
+
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_yl57dczpwb.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_yl57dczpwb.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_yl57dczpwb.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-LOJFC6WB.js";
|
|
15
|
+
import {
|
|
16
|
+
require_picocolors
|
|
17
|
+
} from "./chunk-M346CYJL.js";
|
|
18
|
+
import {
|
|
19
|
+
__toESM
|
|
20
|
+
} from "./chunk-2GGPV6RL.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,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_yl57dczpwb from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_yl57dczpwb from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_yl57dczpwb from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_yl57dczpwb.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_yl57dczpwb.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_yl57dczpwb.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-2GGPV6RL.js";
|
|
15
15
|
|
|
16
16
|
// ../../../node_modules/ts-dedent/dist/index.js
|
|
17
17
|
var require_dist = __commonJS({
|
package/dist/_node-chunks/{vitest.config.3.2-4YRBDS6U.js → vitest.config.3.2.template-Z6RDHBJR.js}
RENAMED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_yl57dczpwb from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_yl57dczpwb from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_yl57dczpwb from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_yl57dczpwb.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_yl57dczpwb.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_yl57dczpwb.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-2GGPV6RL.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-PCMGKGJY.js → vitest.config.4.template-RSD3EYC2.js}
RENAMED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_yl57dczpwb from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_yl57dczpwb from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_yl57dczpwb from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_yl57dczpwb.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_yl57dczpwb.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_yl57dczpwb.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-2GGPV6RL.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_yl57dczpwb from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_yl57dczpwb from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_yl57dczpwb from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_yl57dczpwb.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_yl57dczpwb.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_yl57dczpwb.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-2GGPV6RL.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-ORCFHJWS.js → vitest.workspace.template-2PIJLBP5.js}
RENAMED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_yl57dczpwb from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_yl57dczpwb from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_yl57dczpwb from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_yl57dczpwb.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_yl57dczpwb.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_yl57dczpwb.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-2GGPV6RL.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_yl57dczpwb from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_yl57dczpwb from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_yl57dczpwb from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_yl57dczpwb.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_yl57dczpwb.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_yl57dczpwb.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-LOJFC6WB.js";
|
|
33
|
+
import "./_node-chunks/chunk-2GGPV6RL.js";
|
|
34
34
|
export {
|
|
35
35
|
ADDON_ID as A11Y_ADDON_ID,
|
|
36
36
|
PANEL_ID2 as A11Y_PANEL_ID,
|
package/dist/manager.js
CHANGED
|
@@ -298,7 +298,7 @@ var statusValueToStoryIds = (allStatuses, typeId, storyIds) => {
|
|
|
298
298
|
};
|
|
299
299
|
|
|
300
300
|
// src/components/TestProviderRender.tsx
|
|
301
|
-
import React3 from "react";
|
|
301
|
+
import React3, { useEffect as useEffect3, useRef as useRef2 } from "react";
|
|
302
302
|
import {
|
|
303
303
|
ActionList,
|
|
304
304
|
Button as Button2,
|
|
@@ -307,6 +307,54 @@ import {
|
|
|
307
307
|
ToggleButton
|
|
308
308
|
} from "storybook/internal/components";
|
|
309
309
|
import { EyeIcon, InfoIcon, PlayHollowIcon, StopAltIcon } from "@storybook/icons";
|
|
310
|
+
|
|
311
|
+
// ../../../node_modules/@react-aria/live-announcer/dist/LiveAnnouncer.mjs
|
|
312
|
+
var $319e236875307eab$var$liveAnnouncer = null;
|
|
313
|
+
function $319e236875307eab$export$a9b970dcc4ae71a9(message, assertiveness = "assertive", timeout = 7e3) {
|
|
314
|
+
$319e236875307eab$var$liveAnnouncer ? $319e236875307eab$var$liveAnnouncer.announce(message, assertiveness, timeout) : ($319e236875307eab$var$liveAnnouncer = new $319e236875307eab$var$LiveAnnouncer(), (typeof IS_REACT_ACT_ENVIRONMENT == "boolean" ? IS_REACT_ACT_ENVIRONMENT : typeof jest < "u") ? $319e236875307eab$var$liveAnnouncer.announce(message, assertiveness, timeout) : setTimeout(() => {
|
|
315
|
+
$319e236875307eab$var$liveAnnouncer?.isAttached() && $319e236875307eab$var$liveAnnouncer?.announce(message, assertiveness, timeout);
|
|
316
|
+
}, 100));
|
|
317
|
+
}
|
|
318
|
+
var $319e236875307eab$var$LiveAnnouncer = class {
|
|
319
|
+
isAttached() {
|
|
320
|
+
var _this_node;
|
|
321
|
+
return (_this_node = this.node) === null || _this_node === void 0 ? void 0 : _this_node.isConnected;
|
|
322
|
+
}
|
|
323
|
+
createLog(ariaLive) {
|
|
324
|
+
let node = document.createElement("div");
|
|
325
|
+
return node.setAttribute("role", "log"), node.setAttribute("aria-live", ariaLive), node.setAttribute("aria-relevant", "additions"), node;
|
|
326
|
+
}
|
|
327
|
+
destroy() {
|
|
328
|
+
this.node && (document.body.removeChild(this.node), this.node = null);
|
|
329
|
+
}
|
|
330
|
+
announce(message, assertiveness = "assertive", timeout = 7e3) {
|
|
331
|
+
var _this_assertiveLog, _this_politeLog;
|
|
332
|
+
if (!this.node) return;
|
|
333
|
+
let node = document.createElement("div");
|
|
334
|
+
typeof message == "object" ? (node.setAttribute("role", "img"), node.setAttribute("aria-labelledby", message["aria-labelledby"])) : node.textContent = message, assertiveness === "assertive" ? (_this_assertiveLog = this.assertiveLog) === null || _this_assertiveLog === void 0 || _this_assertiveLog.appendChild(node) : (_this_politeLog = this.politeLog) === null || _this_politeLog === void 0 || _this_politeLog.appendChild(node), message !== "" && setTimeout(() => {
|
|
335
|
+
node.remove();
|
|
336
|
+
}, timeout);
|
|
337
|
+
}
|
|
338
|
+
clear(assertiveness) {
|
|
339
|
+
this.node && ((!assertiveness || assertiveness === "assertive") && this.assertiveLog && (this.assertiveLog.innerHTML = ""), (!assertiveness || assertiveness === "polite") && this.politeLog && (this.politeLog.innerHTML = ""));
|
|
340
|
+
}
|
|
341
|
+
constructor() {
|
|
342
|
+
this.node = null, this.assertiveLog = null, this.politeLog = null, typeof document < "u" && (this.node = document.createElement("div"), this.node.dataset.liveAnnouncer = "true", Object.assign(this.node.style, {
|
|
343
|
+
border: 0,
|
|
344
|
+
clip: "rect(0 0 0 0)",
|
|
345
|
+
clipPath: "inset(50%)",
|
|
346
|
+
height: "1px",
|
|
347
|
+
margin: "-1px",
|
|
348
|
+
overflow: "hidden",
|
|
349
|
+
padding: 0,
|
|
350
|
+
position: "absolute",
|
|
351
|
+
width: "1px",
|
|
352
|
+
whiteSpace: "nowrap"
|
|
353
|
+
}), this.assertiveLog = this.createLog("assertive"), this.node.appendChild(this.assertiveLog), this.politeLog = this.createLog("polite"), this.node.appendChild(this.politeLog), document.body.prepend(this.node));
|
|
354
|
+
}
|
|
355
|
+
};
|
|
356
|
+
|
|
357
|
+
// src/components/TestProviderRender.tsx
|
|
310
358
|
import { addons } from "storybook/manager-api";
|
|
311
359
|
import { styled as styled4 } from "storybook/theming";
|
|
312
360
|
|
|
@@ -450,8 +498,39 @@ var Container = styled4.div(({ inContextMenu }) => ({
|
|
|
450
498
|
isSettingsUpdated,
|
|
451
499
|
...props
|
|
452
500
|
}) => {
|
|
453
|
-
let { config, watching, cancelling, currentRun, fatalError } = storeState, finishedTestCount = currentRun.componentTestCount.success + currentRun.componentTestCount.error, hasA11yAddon = addons.experimental_getRegisteredAddons().includes(ADDON_ID), isRunning = testProviderState === "test-provider-state:running", isStarting = isRunning && finishedTestCount === 0, [componentTestStatusIcon, componentTestStatusLabel] = fatalError ? ["critical", "Component tests crashed"] : componentTestStatusValueToStoryIds["status-value:error"].length > 0 ? ["negative", "Component tests failed"] : isRunning ? ["unknown", "Testing in progress"] : componentTestStatusValueToStoryIds["status-value:success"].length > 0 ? ["positive", "Component tests passed"] : ["unknown", "Run tests to see results"], [a11yStatusIcon, a11yStatusLabel] = fatalError ? ["critical", "Component tests crashed"] : a11yStatusValueToStoryIds["status-value:error"].length > 0 ? ["negative", "Accessibility tests failed"] : a11yStatusValueToStoryIds["status-value:warning"].length > 0 ? ["warning", "Accessibility tests failed"] : isRunning ? ["unknown", "Testing in progress"] : a11yStatusValueToStoryIds["status-value:success"].length > 0 ? ["positive", "Accessibility tests passed"] : ["unknown", "Run tests to see accessibility results"];
|
|
454
|
-
return
|
|
501
|
+
let { config, watching, cancelling, currentRun, fatalError } = storeState, finishedTestCount = currentRun.componentTestCount.success + currentRun.componentTestCount.error, hasA11yAddon = addons.experimental_getRegisteredAddons().includes(ADDON_ID), isRunning = testProviderState === "test-provider-state:running", isStarting = isRunning && finishedTestCount === 0, [componentTestStatusIcon, componentTestStatusLabel] = fatalError ? ["critical", "Component tests crashed"] : componentTestStatusValueToStoryIds["status-value:error"].length > 0 ? ["negative", "Component tests failed"] : isRunning ? ["unknown", "Testing in progress"] : componentTestStatusValueToStoryIds["status-value:success"].length > 0 ? ["positive", "Component tests passed"] : ["unknown", "Run tests to see results"], [a11yStatusIcon, a11yStatusLabel] = fatalError ? ["critical", "Component tests crashed"] : a11yStatusValueToStoryIds["status-value:error"].length > 0 ? ["negative", "Accessibility tests failed"] : a11yStatusValueToStoryIds["status-value:warning"].length > 0 ? ["warning", "Accessibility tests failed"] : isRunning ? ["unknown", "Testing in progress"] : a11yStatusValueToStoryIds["status-value:success"].length > 0 ? ["positive", "Accessibility tests passed"] : ["unknown", "Run tests to see accessibility results"], prevTestProviderStateRef = useRef2(testProviderState);
|
|
502
|
+
return useEffect3(() => {
|
|
503
|
+
let prevState = prevTestProviderStateRef.current;
|
|
504
|
+
if (prevTestProviderStateRef.current = testProviderState, prevState !== testProviderState) {
|
|
505
|
+
if (testProviderState === "test-provider-state:running")
|
|
506
|
+
$319e236875307eab$export$a9b970dcc4ae71a9("Test run started.", "polite");
|
|
507
|
+
else if (testProviderState === "test-provider-state:crashed")
|
|
508
|
+
$319e236875307eab$export$a9b970dcc4ae71a9("Test run crashed.", "assertive");
|
|
509
|
+
else if (testProviderState === "test-provider-state:succeeded" && prevState === "test-provider-state:running") {
|
|
510
|
+
let parts = [], errorCount = componentTestStatusValueToStoryIds["status-value:error"].length, warningCount = componentTestStatusValueToStoryIds["status-value:warning"].length, passedCount = componentTestStatusValueToStoryIds["status-value:success"].length;
|
|
511
|
+
errorCount > 0 && parts.push(`${errorCount} ${errorCount === 1 ? "component" : "components"} errored`), warningCount > 0 && parts.push(
|
|
512
|
+
`${warningCount} ${warningCount === 1 ? "component" : "components"} with warnings`
|
|
513
|
+
), passedCount > 0 && parts.push(`${passedCount} ${passedCount === 1 ? "component" : "components"} passed`);
|
|
514
|
+
let a11yErrorCount = 0;
|
|
515
|
+
if (hasA11yAddon) {
|
|
516
|
+
a11yErrorCount = a11yStatusValueToStoryIds["status-value:error"].length;
|
|
517
|
+
let a11yWarningCount = a11yStatusValueToStoryIds["status-value:warning"].length;
|
|
518
|
+
a11yErrorCount > 0 && parts.push(
|
|
519
|
+
`${a11yErrorCount} accessibility ${a11yErrorCount === 1 ? "error" : "errors"}`
|
|
520
|
+
), a11yWarningCount > 0 && parts.push(
|
|
521
|
+
`${a11yWarningCount} accessibility ${a11yWarningCount === 1 ? "warning" : "warnings"}`
|
|
522
|
+
);
|
|
523
|
+
}
|
|
524
|
+
let message = parts.length > 0 ? `Test run finished. ${parts.join(", ")}.` : "Test run finished. No results.", hasErrors = errorCount > 0 || hasA11yAddon && a11yErrorCount > 0;
|
|
525
|
+
$319e236875307eab$export$a9b970dcc4ae71a9(message, hasErrors ? "assertive" : "polite");
|
|
526
|
+
}
|
|
527
|
+
}
|
|
528
|
+
}, [
|
|
529
|
+
testProviderState,
|
|
530
|
+
componentTestStatusValueToStoryIds,
|
|
531
|
+
a11yStatusValueToStoryIds,
|
|
532
|
+
hasA11yAddon
|
|
533
|
+
]), React3.createElement(Container, { ...props, inContextMenu: !!entry }, React3.createElement(Heading, null, React3.createElement(Info, null, entry ? React3.createElement(Title, { id: "testing-module-title" }, "Run component tests") : React3.createElement(
|
|
455
534
|
Title,
|
|
456
535
|
{
|
|
457
536
|
id: "testing-module-title",
|
|
@@ -656,6 +735,9 @@ addons2.register(ADDON_ID2, (api) => {
|
|
|
656
735
|
api.emit(STORYBOOK_ADDON_TEST_CHANNEL, { type: "test-run-completed", payload });
|
|
657
736
|
}), addons2.add(TEST_PROVIDER_ID, {
|
|
658
737
|
type: Addon_TypesEnum.experimental_TEST_PROVIDER,
|
|
738
|
+
clear: () => {
|
|
739
|
+
componentTestStatusStore.unset(), a11yStatusStore.unset();
|
|
740
|
+
},
|
|
659
741
|
render: () => {
|
|
660
742
|
let [isModalOpen, setModalOpen] = useState3(!1), {
|
|
661
743
|
storeState,
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_yl57dczpwb from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_yl57dczpwb from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_yl57dczpwb from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_yl57dczpwb.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_yl57dczpwb.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_yl57dczpwb.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-6267M2TA.js";
|
|
15
15
|
import {
|
|
16
16
|
__commonJS,
|
|
17
17
|
__require,
|
|
18
18
|
__toESM
|
|
19
|
-
} from "../_node-chunks/chunk-
|
|
19
|
+
} from "../_node-chunks/chunk-2GGPV6RL.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_yl57dczpwb from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_yl57dczpwb from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_yl57dczpwb from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_yl57dczpwb.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_yl57dczpwb.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_yl57dczpwb.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-Y2DRY4WC.js";
|
|
15
16
|
import {
|
|
16
17
|
any,
|
|
17
18
|
up
|
|
18
|
-
} from "../_node-chunks/chunk-
|
|
19
|
+
} from "../_node-chunks/chunk-3PU66CME.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-LOJFC6WB.js";
|
|
27
|
+
import "../_node-chunks/chunk-M346CYJL.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-PXU54O6X.js";
|
|
35
|
+
import "../_node-chunks/chunk-2GGPV6RL.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_yl57dczpwb from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_yl57dczpwb from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_yl57dczpwb from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_yl57dczpwb.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_yl57dczpwb.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_yl57dczpwb.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-3PU66CME.js";
|
|
15
15
|
import {
|
|
16
16
|
DOCUMENTATION_LINK
|
|
17
|
-
} from "./_node-chunks/chunk-
|
|
17
|
+
} from "./_node-chunks/chunk-LOJFC6WB.js";
|
|
18
18
|
import {
|
|
19
19
|
require_dist
|
|
20
|
-
} from "./_node-chunks/chunk-
|
|
20
|
+
} from "./_node-chunks/chunk-YG4TBQOB.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-PXU54O6X.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-6267M2TA.js";
|
|
37
37
|
import {
|
|
38
38
|
__commonJS,
|
|
39
39
|
__toESM
|
|
40
|
-
} from "./_node-chunks/chunk-
|
|
40
|
+
} from "./_node-chunks/chunk-2GGPV6RL.js";
|
|
41
41
|
|
|
42
42
|
// ../../../node_modules/semver/functions/parse.js
|
|
43
43
|
var require_parse = __commonJS({
|
|
@@ -892,17 +892,23 @@ import { SupportedFramework } from "storybook/internal/types";
|
|
|
892
892
|
var import_semver = __toESM(require_semver2(), 1), import_ts_dedent = __toESM(require_dist(), 1);
|
|
893
893
|
|
|
894
894
|
// src/updateVitestFile.ts
|
|
895
|
-
import {
|
|
895
|
+
import {
|
|
896
|
+
getConfigObjectFromMergeArg,
|
|
897
|
+
getEffectiveMergeConfigCall,
|
|
898
|
+
getTargetConfigObject,
|
|
899
|
+
isDefineConfigLike,
|
|
900
|
+
resolveExpression
|
|
901
|
+
} from "storybook/internal/babel";
|
|
896
902
|
async function getTemplatePath(name) {
|
|
897
903
|
switch (name) {
|
|
898
904
|
case "vitest.config.template":
|
|
899
|
-
return import("./_node-chunks/vitest.config-
|
|
905
|
+
return import("./_node-chunks/vitest.config.template-FCHZHKX5.js");
|
|
900
906
|
case "vitest.config.4.template":
|
|
901
|
-
return import("./_node-chunks/vitest.config.4-
|
|
907
|
+
return import("./_node-chunks/vitest.config.4.template-RSD3EYC2.js");
|
|
902
908
|
case "vitest.config.3.2.template":
|
|
903
|
-
return import("./_node-chunks/vitest.config.3.2-
|
|
909
|
+
return import("./_node-chunks/vitest.config.3.2.template-Z6RDHBJR.js");
|
|
904
910
|
case "vitest.workspace.template":
|
|
905
|
-
return import("./_node-chunks/vitest.workspace-
|
|
911
|
+
return import("./_node-chunks/vitest.workspace.template-2PIJLBP5.js");
|
|
906
912
|
default:
|
|
907
913
|
throw new Error(`Unknown template: ${name}`);
|
|
908
914
|
}
|
|
@@ -920,13 +926,6 @@ var loadTemplate = async (name, replacements) => {
|
|
|
920
926
|
);
|
|
921
927
|
targetProp && targetProp.type === "ObjectProperty" ? sourceProp.value.type === "ObjectExpression" && targetProp.value.type === "ObjectExpression" ? mergeProperties(sourceProp.value.properties, targetProp.value.properties) : sourceProp.value.type === "ArrayExpression" && targetProp.value.type === "ArrayExpression" ? targetProp.value.elements.push(...sourceProp.value.elements) : targetProp.value = sourceProp.value : target.push(sourceProp);
|
|
922
928
|
}
|
|
923
|
-
}, isImportedDefineConfigLikeIdentifier = (localName, ast) => ast.program.body.some(
|
|
924
|
-
(node) => node.type === "ImportDeclaration" && (node.source.value === "vitest/config" || node.source.value === "vite") && node.specifiers.some(
|
|
925
|
-
(specifier) => specifier.type === "ImportSpecifier" && specifier.local.type === "Identifier" && specifier.local.name === localName && specifier.imported.type === "Identifier" && (specifier.imported.name === "defineConfig" || specifier.imported.name === "defineProject")
|
|
926
|
-
)
|
|
927
|
-
), isDefineConfigLike = (node, ast) => node.callee.type === "Identifier" && (node.callee.name === "defineConfig" || node.callee.name === "defineProject" || isImportedDefineConfigLikeIdentifier(node.callee.name, ast)), getConfigObjectFromMergeArg = (arg, ast) => {
|
|
928
|
-
let resolved = resolveExpression(arg, ast);
|
|
929
|
-
return resolved ? resolved.type === "ObjectExpression" ? resolved : resolved.type === "CallExpression" && resolved.arguments[0]?.type === "ObjectExpression" ? resolved.arguments[0] : null : null;
|
|
930
929
|
}, resolveTestPropValue = (testProp, ast) => {
|
|
931
930
|
if (testProp.value.type === "ObjectExpression")
|
|
932
931
|
return testProp.value;
|
|
@@ -1046,19 +1045,6 @@ var loadTemplate = async (name, replacements) => {
|
|
|
1046
1045
|
}
|
|
1047
1046
|
}
|
|
1048
1047
|
mergeProperties(properties, targetConfigObject.properties);
|
|
1049
|
-
}, getEffectiveMergeConfigCall = (decl, ast) => {
|
|
1050
|
-
let resolved = resolveExpression(decl, ast);
|
|
1051
|
-
if (!resolved || resolved.type !== "CallExpression")
|
|
1052
|
-
return null;
|
|
1053
|
-
if (isDefineConfigLike(resolved, ast) && resolved.arguments.length > 0) {
|
|
1054
|
-
let innerArg = resolveExpression(resolved.arguments[0], ast);
|
|
1055
|
-
if (innerArg?.type === "CallExpression" && innerArg.callee.type === "Identifier" && innerArg.callee.name === "mergeConfig")
|
|
1056
|
-
return innerArg;
|
|
1057
|
-
}
|
|
1058
|
-
return resolved.callee.type === "Identifier" && resolved.callee.name === "mergeConfig" ? resolved : null;
|
|
1059
|
-
}, getTargetConfigObject = (target, exportDefault) => {
|
|
1060
|
-
let resolved = resolveExpression(exportDefault.declaration, target);
|
|
1061
|
-
return resolved ? resolved.type === "ObjectExpression" ? resolved : resolved.type === "CallExpression" && isDefineConfigLike(resolved, target) && resolved.arguments[0]?.type === "ObjectExpression" ? resolved.arguments[0] : null : null;
|
|
1062
1048
|
}, updateConfigFile = (source, target) => {
|
|
1063
1049
|
let updated = !1, sourceExportDefault = source.program.body.find(
|
|
1064
1050
|
(n) => n.type === "ExportDefaultDeclaration"
|
package/dist/preset.js
CHANGED
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_yl57dczpwb from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_yl57dczpwb from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_yl57dczpwb from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_yl57dczpwb.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_yl57dczpwb.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_yl57dczpwb.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-Y2DRY4WC.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-LOJFC6WB.js";
|
|
27
28
|
import {
|
|
28
29
|
require_picocolors
|
|
29
|
-
} from "./_node-chunks/chunk-
|
|
30
|
+
} from "./_node-chunks/chunk-M346CYJL.js";
|
|
30
31
|
import {
|
|
31
32
|
require_dist
|
|
32
|
-
} from "./_node-chunks/chunk-
|
|
33
|
+
} from "./_node-chunks/chunk-YG4TBQOB.js";
|
|
33
34
|
import {
|
|
34
35
|
normalize
|
|
35
|
-
} from "./_node-chunks/chunk-
|
|
36
|
+
} from "./_node-chunks/chunk-PXU54O6X.js";
|
|
36
37
|
import {
|
|
37
38
|
__toESM
|
|
38
|
-
} from "./_node-chunks/chunk-
|
|
39
|
+
} from "./_node-chunks/chunk-2GGPV6RL.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
|
});
|
|
@@ -470,7 +466,7 @@ var experimental_serverChannel = async (channel, options) => {
|
|
|
470
466
|
isEqual(selectCachedState(state), selectCachedState(previousState)) || fsCache.set("state", selectCachedState(state));
|
|
471
467
|
});
|
|
472
468
|
let testProviderStore = experimental_getTestProviderStore(ADDON_ID);
|
|
473
|
-
|
|
469
|
+
storyIndexGenerator.onInvalidated(async () => {
|
|
474
470
|
try {
|
|
475
471
|
let index = await storyIndexGenerator.getIndex();
|
|
476
472
|
store.setState((s) => ({ ...s, index }));
|
|
@@ -566,40 +562,38 @@ var experimental_serverChannel = async (channel, options) => {
|
|
|
566
562
|
}
|
|
567
563
|
}
|
|
568
564
|
});
|
|
569
|
-
})
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
}
|
|
602
|
-
return channel;
|
|
565
|
+
});
|
|
566
|
+
let enableCrashReports = core?.enableCrashReports || options.enableCrashReports;
|
|
567
|
+
return channel.on(STORYBOOK_ADDON_TEST_CHANNEL, (event) => {
|
|
568
|
+
event.type !== "test-run-completed" && telemetry("addon-test", () => ({
|
|
569
|
+
...event,
|
|
570
|
+
payload: {
|
|
571
|
+
...event.payload,
|
|
572
|
+
storyId: oneWayHash(event.payload.storyId)
|
|
573
|
+
}
|
|
574
|
+
}));
|
|
575
|
+
}), store.subscribe("TOGGLE_WATCHING", async (event) => {
|
|
576
|
+
await telemetry("addon-test", () => ({
|
|
577
|
+
watchMode: event.payload.to
|
|
578
|
+
}));
|
|
579
|
+
}), store.subscribe("TEST_RUN_COMPLETED", async (event) => {
|
|
580
|
+
let { unhandledErrors, startedAt, finishedAt, ...currentRun } = event.payload;
|
|
581
|
+
await telemetry("addon-test", () => ({
|
|
582
|
+
...currentRun,
|
|
583
|
+
duration: (finishedAt ?? 0) - (startedAt ?? 0),
|
|
584
|
+
unhandledErrorCount: unhandledErrors.length,
|
|
585
|
+
...enableCrashReports && unhandledErrors.length > 0 && {
|
|
586
|
+
unhandledErrors: unhandledErrors.map((error) => {
|
|
587
|
+
let { stacks, ...errorWithoutStacks } = error;
|
|
588
|
+
return sanitizeError(errorWithoutStacks);
|
|
589
|
+
})
|
|
590
|
+
}
|
|
591
|
+
}));
|
|
592
|
+
}), enableCrashReports && store.subscribe("FATAL_ERROR", async (event) => {
|
|
593
|
+
await telemetry("addon-test", () => ({
|
|
594
|
+
fatalError: cleanPaths(event.payload.error.message)
|
|
595
|
+
}));
|
|
596
|
+
}), channel;
|
|
603
597
|
}, staticDirs = async (values = [], options) => {
|
|
604
598
|
if (options.configType === "PRODUCTION")
|
|
605
599
|
return values;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_yl57dczpwb from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_yl57dczpwb from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_yl57dczpwb from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_yl57dczpwb.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_yl57dczpwb.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_yl57dczpwb.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-2GGPV6RL.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_yl57dczpwb from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_yl57dczpwb from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_yl57dczpwb from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_yl57dczpwb.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_yl57dczpwb.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_yl57dczpwb.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-M346CYJL.js";
|
|
15
15
|
import {
|
|
16
16
|
require_dist
|
|
17
|
-
} from "../_node-chunks/chunk-
|
|
17
|
+
} from "../_node-chunks/chunk-YG4TBQOB.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-PXU54O6X.js";
|
|
27
27
|
import {
|
|
28
28
|
__commonJS,
|
|
29
29
|
__require,
|
|
30
30
|
__toESM
|
|
31
|
-
} from "../_node-chunks/chunk-
|
|
31
|
+
} from "../_node-chunks/chunk-2GGPV6RL.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,
|
|
@@ -2340,14 +2339,9 @@ import {
|
|
|
2340
2339
|
experimental_loadStorybook,
|
|
2341
2340
|
mapStaticDir
|
|
2342
2341
|
} from "storybook/internal/core-server";
|
|
2343
|
-
import {
|
|
2344
|
-
componentTransform,
|
|
2345
|
-
isCsfFactoryPreview,
|
|
2346
|
-
readConfig,
|
|
2347
|
-
vitestTransform
|
|
2348
|
-
} from "storybook/internal/csf-tools";
|
|
2342
|
+
import { componentTransform, readConfig, vitestTransform } from "storybook/internal/csf-tools";
|
|
2349
2343
|
import { MainFileMissingError } from "storybook/internal/server-errors";
|
|
2350
|
-
import { telemetry } from "storybook/internal/telemetry";
|
|
2344
|
+
import { setTelemetryEnabled, telemetry } from "storybook/internal/telemetry";
|
|
2351
2345
|
import { oneWayHash } from "storybook/internal/telemetry";
|
|
2352
2346
|
var import_picocolors = __toESM(require_picocolors(), 1), import_sirv = __toESM(require_build2(), 1), import_ts_dedent2 = __toESM(require_dist(), 1);
|
|
2353
2347
|
|
|
@@ -2365,7 +2359,7 @@ import { CLI_COLORS, logger } from "storybook/internal/node-logger";
|
|
|
2365
2359
|
var import_ts_dedent = __toESM(require_dist(), 1), hasLoggedDeprecationWarning = !1, logBoxOnce = (message) => {
|
|
2366
2360
|
hasLoggedDeprecationWarning || (logger.logBox(message), hasLoggedDeprecationWarning = !0);
|
|
2367
2361
|
};
|
|
2368
|
-
async function requiresProjectAnnotations(testConfig, finalOptions
|
|
2362
|
+
async function requiresProjectAnnotations(testConfig, finalOptions) {
|
|
2369
2363
|
return (Array.isArray(testConfig?.setupFiles) ? testConfig.setupFiles : typeof testConfig?.setupFiles == "string" ? [testConfig.setupFiles] : []).map((setupFile) => {
|
|
2370
2364
|
try {
|
|
2371
2365
|
return resolve(finalOptions.vitestRoot, setupFile);
|
|
@@ -2376,7 +2370,7 @@ async function requiresProjectAnnotations(testConfig, finalOptions, isCSF4) {
|
|
|
2376
2370
|
${CLI_COLORS.info("Info")}: Found a setup file with "setProjectAnnotations".
|
|
2377
2371
|
Skipping automatic provisioning of preview annotations to avoid conflicts. Since Storybook 10.3, "@storybook/addon-vitest" applies these automatically.
|
|
2378
2372
|
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) : !
|
|
2373
|
+
`), !1) : !0;
|
|
2380
2374
|
}
|
|
2381
2375
|
|
|
2382
2376
|
// src/vitest-plugin/index.ts
|
|
@@ -2476,7 +2470,9 @@ var WORKING_DIR = process.cwd(), defaultOptions = {
|
|
|
2476
2470
|
extractTagsFromPreview(finalOptions.configDir),
|
|
2477
2471
|
presets.apply("core"),
|
|
2478
2472
|
presets.apply("features", {})
|
|
2479
|
-
])
|
|
2473
|
+
]);
|
|
2474
|
+
await setTelemetryEnabled(!core?.disableTelemetry);
|
|
2475
|
+
let pluginsToIgnore = [
|
|
2480
2476
|
"storybook:react-docgen-plugin",
|
|
2481
2477
|
"vite:react-docgen-typescript",
|
|
2482
2478
|
// aka @joshwooding/vite-plugin-react-docgen-typescript
|
|
@@ -2515,14 +2511,12 @@ var WORKING_DIR = process.cwd(), defaultOptions = {
|
|
|
2515
2511
|
return typeof story == "string" ? storyPath = story : storyPath = `${story.directory}/${story.files ?? DEFAULT_FILES_PATTERN}`, join(finalOptions.configDir, storyPath);
|
|
2516
2512
|
}).map((story) => relative(finalOptions.vitestRoot, story));
|
|
2517
2513
|
finalOptions.includeStories = includeStories;
|
|
2518
|
-
let projectId = oneWayHash(finalOptions.configDir),
|
|
2514
|
+
let projectId = oneWayHash(finalOptions.configDir), internalSetupFiles = [
|
|
2519
2515
|
"@storybook/addon-vitest/internal/setup-file",
|
|
2520
2516
|
await requiresProjectAnnotations(
|
|
2521
2517
|
nonMutableInputConfig.test,
|
|
2522
|
-
finalOptions
|
|
2523
|
-
|
|
2524
|
-
) && "@storybook/addon-vitest/internal/setup-file-with-project-annotations",
|
|
2525
|
-
isCSF4 && previewOrConfigFile
|
|
2518
|
+
finalOptions
|
|
2519
|
+
) && "@storybook/addon-vitest/internal/setup-file-with-project-annotations"
|
|
2526
2520
|
].filter(Boolean).map((filePath) => fileURLToPath(import.meta.resolve(filePath))), baseConfig = {
|
|
2527
2521
|
cacheDir: resolvePathInStorybookCache("sb-vitest", projectId),
|
|
2528
2522
|
test: {
|
|
@@ -2612,7 +2606,7 @@ var WORKING_DIR = process.cwd(), defaultOptions = {
|
|
|
2612
2606
|
)), config;
|
|
2613
2607
|
},
|
|
2614
2608
|
configureVitest(context) {
|
|
2615
|
-
context.vitest.config.coverage.exclude.push("storybook-static"),
|
|
2609
|
+
context.vitest.config.coverage.exclude.push("storybook-static"), telemetry(
|
|
2616
2610
|
"test-run",
|
|
2617
2611
|
{
|
|
2618
2612
|
runner: "vitest",
|
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.11",
|
|
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.11",
|
|
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.11",
|
|
112
112
|
"vitest": "^3.0.0 || ^4.0.0"
|
|
113
113
|
},
|
|
114
114
|
"peerDependenciesMeta": {
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import CJS_COMPAT_NODE_URL_libwfert7zb from 'node:url';
|
|
2
|
-
import CJS_COMPAT_NODE_PATH_libwfert7zb from 'node:path';
|
|
3
|
-
import CJS_COMPAT_NODE_MODULE_libwfert7zb from "node:module";
|
|
4
|
-
|
|
5
|
-
var __filename = CJS_COMPAT_NODE_URL_libwfert7zb.fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = CJS_COMPAT_NODE_PATH_libwfert7zb.dirname(__filename);
|
|
7
|
-
var require = CJS_COMPAT_NODE_MODULE_libwfert7zb.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-RMYMOYGY.js";
|
|
15
|
-
import {
|
|
16
|
-
require_picocolors
|
|
17
|
-
} from "./chunk-BTZLX5XF.js";
|
|
18
|
-
import {
|
|
19
|
-
__toESM
|
|
20
|
-
} from "./chunk-MBAU75TQ.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
|
-
};
|