@storybook/addon-vitest 11.0.0-beta.2 → 11.0.0-beta.4
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-FKKCPNLJ.js +39 -0
- package/dist/_node-chunks/{chunk-M4HPIOHU.js → chunk-G4HWSAOC.js} +0 -12
- package/dist/_node-chunks/{chunk-SXATVQ73.js → chunk-MTTYIP6M.js} +1 -12
- package/dist/_node-chunks/{chunk-BIBVDNHH.js → chunk-PQZIOGBY.js} +1 -11
- package/dist/_node-chunks/{chunk-YLZRXWKY.js → chunk-QKPKKS4R.js} +1 -12
- package/dist/_node-chunks/{chunk-H6P4MQ2A.js → chunk-VDP2ZJQR.js} +1 -12
- package/dist/_node-chunks/{chunk-KU7SQ3KB.js → chunk-WQDAJN3N.js} +0 -12
- package/dist/_node-chunks/{vitest.config.4.template-G2P77GDP.js → vitest.config.4.template-3K4YNNG3.js} +1 -12
- package/dist/constants.js +2 -13
- package/dist/node/coverage-reporter.js +1 -12
- package/dist/node/vitest.js +6 -55
- package/dist/postinstall.js +6 -17
- package/dist/preset.js +306 -227
- package/dist/vitest-plugin/global-setup.js +1 -12
- package/dist/vitest-plugin/index.js +5 -16
- package/package.json +4 -4
- package/dist/_node-chunks/chunk-DX5XAAV3.js +0 -56
|
@@ -1,19 +1,8 @@
|
|
|
1
|
-
import CJS_COMPAT_NODE_URL_ycvuvp62uk from 'node:url';
|
|
2
|
-
import CJS_COMPAT_NODE_PATH_ycvuvp62uk from 'node:path';
|
|
3
|
-
import CJS_COMPAT_NODE_MODULE_ycvuvp62uk from "node:module";
|
|
4
|
-
|
|
5
|
-
var __filename = CJS_COMPAT_NODE_URL_ycvuvp62uk.fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = CJS_COMPAT_NODE_PATH_ycvuvp62uk.dirname(__filename);
|
|
7
|
-
var require = CJS_COMPAT_NODE_MODULE_ycvuvp62uk.createRequire(import.meta.url);
|
|
8
|
-
|
|
9
|
-
// ------------------------------------------------------------
|
|
10
|
-
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
-
// ------------------------------------------------------------
|
|
12
1
|
import {
|
|
13
2
|
__commonJS,
|
|
14
3
|
__require,
|
|
15
4
|
__toESM
|
|
16
|
-
} from "../_node-chunks/chunk-
|
|
5
|
+
} from "../_node-chunks/chunk-PQZIOGBY.js";
|
|
17
6
|
|
|
18
7
|
// ../../../node_modules/tree-kill/index.js
|
|
19
8
|
var require_tree_kill = __commonJS({
|
|
@@ -1,20 +1,9 @@
|
|
|
1
|
-
import CJS_COMPAT_NODE_URL_ycvuvp62uk from 'node:url';
|
|
2
|
-
import CJS_COMPAT_NODE_PATH_ycvuvp62uk from 'node:path';
|
|
3
|
-
import CJS_COMPAT_NODE_MODULE_ycvuvp62uk from "node:module";
|
|
4
|
-
|
|
5
|
-
var __filename = CJS_COMPAT_NODE_URL_ycvuvp62uk.fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = CJS_COMPAT_NODE_PATH_ycvuvp62uk.dirname(__filename);
|
|
7
|
-
var require = CJS_COMPAT_NODE_MODULE_ycvuvp62uk.createRequire(import.meta.url);
|
|
8
|
-
|
|
9
|
-
// ------------------------------------------------------------
|
|
10
|
-
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
-
// ------------------------------------------------------------
|
|
12
1
|
import {
|
|
13
2
|
require_picocolors
|
|
14
|
-
} from "../_node-chunks/chunk-
|
|
3
|
+
} from "../_node-chunks/chunk-MTTYIP6M.js";
|
|
15
4
|
import {
|
|
16
5
|
require_dist
|
|
17
|
-
} from "../_node-chunks/chunk-
|
|
6
|
+
} from "../_node-chunks/chunk-QKPKKS4R.js";
|
|
18
7
|
import {
|
|
19
8
|
join,
|
|
20
9
|
normalize,
|
|
@@ -22,13 +11,13 @@ import {
|
|
|
22
11
|
relative,
|
|
23
12
|
resolve,
|
|
24
13
|
sep
|
|
25
|
-
} from "../_node-chunks/chunk-
|
|
14
|
+
} from "../_node-chunks/chunk-VDP2ZJQR.js";
|
|
26
15
|
import {
|
|
27
16
|
STORYBOOK_CORE_GHOST_STORIES_PROVIDE_KEY,
|
|
28
17
|
STORYBOOK_CORE_RENDER_ANALYSIS_PROVIDE_KEY,
|
|
29
18
|
STORYBOOK_TEST_FEATURES_PROVIDE_KEY,
|
|
30
19
|
STORYBOOK_TEST_INITIAL_GLOBALS_PROVIDE_KEY
|
|
31
|
-
} from "../_node-chunks/chunk-
|
|
20
|
+
} from "../_node-chunks/chunk-G4HWSAOC.js";
|
|
32
21
|
import {
|
|
33
22
|
__commonJS,
|
|
34
23
|
__esm,
|
|
@@ -36,7 +25,7 @@ import {
|
|
|
36
25
|
__require,
|
|
37
26
|
__toCommonJS,
|
|
38
27
|
__toESM
|
|
39
|
-
} from "../_node-chunks/chunk-
|
|
28
|
+
} from "../_node-chunks/chunk-PQZIOGBY.js";
|
|
40
29
|
|
|
41
30
|
// ../../../node_modules/braces/lib/utils.js
|
|
42
31
|
var require_utils = __commonJS({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/addon-vitest",
|
|
3
|
-
"version": "11.0.0-beta.
|
|
3
|
+
"version": "11.0.0-beta.4",
|
|
4
4
|
"description": "Storybook Vitest addon: Blazing fast component testing using stories",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook",
|
|
@@ -81,8 +81,8 @@
|
|
|
81
81
|
"@storybook/icons": "^2.0.2"
|
|
82
82
|
},
|
|
83
83
|
"devDependencies": {
|
|
84
|
-
"@storybook/addon-a11y": "11.0.0-beta.
|
|
85
|
-
"@storybook/builder-vite": "11.0.0-beta.
|
|
84
|
+
"@storybook/addon-a11y": "11.0.0-beta.4",
|
|
85
|
+
"@storybook/builder-vite": "11.0.0-beta.4",
|
|
86
86
|
"@types/istanbul-lib-report": "^3.0.3",
|
|
87
87
|
"@types/micromatch": "^4.0.0",
|
|
88
88
|
"@types/node": "^22.19.1",
|
|
@@ -110,7 +110,7 @@
|
|
|
110
110
|
"peerDependencies": {
|
|
111
111
|
"@vitest/browser": "^4.0.0 || ^5.0.0",
|
|
112
112
|
"@vitest/browser-playwright": "^4.0.0 || ^5.0.0",
|
|
113
|
-
"storybook": "^11.0.0-beta.
|
|
113
|
+
"storybook": "^11.0.0-beta.4",
|
|
114
114
|
"vitest": "^4.0.0 || ^5.0.0"
|
|
115
115
|
},
|
|
116
116
|
"peerDependenciesMeta": {
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import CJS_COMPAT_NODE_URL_ycvuvp62uk from 'node:url';
|
|
2
|
-
import CJS_COMPAT_NODE_PATH_ycvuvp62uk from 'node:path';
|
|
3
|
-
import CJS_COMPAT_NODE_MODULE_ycvuvp62uk from "node:module";
|
|
4
|
-
|
|
5
|
-
var __filename = CJS_COMPAT_NODE_URL_ycvuvp62uk.fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = CJS_COMPAT_NODE_PATH_ycvuvp62uk.dirname(__filename);
|
|
7
|
-
var require = CJS_COMPAT_NODE_MODULE_ycvuvp62uk.createRequire(import.meta.url);
|
|
8
|
-
|
|
9
|
-
// ------------------------------------------------------------
|
|
10
|
-
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
-
// ------------------------------------------------------------
|
|
12
|
-
import {
|
|
13
|
-
require_picocolors
|
|
14
|
-
} from "./chunk-SXATVQ73.js";
|
|
15
|
-
import {
|
|
16
|
-
ADDON_ID2 as ADDON_ID
|
|
17
|
-
} from "./chunk-M4HPIOHU.js";
|
|
18
|
-
import {
|
|
19
|
-
__toESM
|
|
20
|
-
} from "./chunk-BIBVDNHH.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
|
-
// src/utils.ts
|
|
32
|
-
function errorToErrorLike(error) {
|
|
33
|
-
return {
|
|
34
|
-
message: error.message,
|
|
35
|
-
name: error.name,
|
|
36
|
-
// avoid duplicating the error message in the stack trace
|
|
37
|
-
stack: error.message + " " + error.stack?.replace(error.message, ""),
|
|
38
|
-
cause: error.cause && error.cause instanceof Error ? errorToErrorLike(error.cause) : void 0
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
// ../../../node_modules/es-toolkit/dist/function/noop.mjs
|
|
43
|
-
function noop() {
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
// ../../../node_modules/es-toolkit/dist/_internal/globalThis.mjs
|
|
47
|
-
var globalThis_ = typeof globalThis == "object" && globalThis || typeof window == "object" && window || typeof self == "object" && self || typeof global == "object" && global || /* @__PURE__ */ (function() {
|
|
48
|
-
return this;
|
|
49
|
-
})();
|
|
50
|
-
|
|
51
|
-
export {
|
|
52
|
-
log,
|
|
53
|
-
errorToErrorLike,
|
|
54
|
-
globalThis_,
|
|
55
|
-
noop
|
|
56
|
-
};
|