@storybook/addon-vitest 0.0.0-pr-32717-sha-77751994 → 0.0.0-pr-32912-sha-acf59254
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-DZ2TEOAI.js +37 -0
- package/dist/_node-chunks/chunk-EXUMEBRN.js +98 -0
- package/dist/_node-chunks/{chunk-RKUPODUD.js → chunk-GHYZQHE6.js} +7 -7
- package/dist/_node-chunks/{chunk-PSGKZP6M.js → chunk-JF2ZLAKM.js} +7 -7
- package/dist/_node-chunks/{chunk-WFZ2CSQY.js → chunk-LDJNKKTR.js} +7 -7
- package/dist/_node-chunks/{chunk-S7YRH6YW.js → chunk-P6LDW7T6.js} +6 -6
- package/dist/_node-chunks/{chunk-VVCT3VD2.js → chunk-TF46HR7L.js} +18 -6
- package/dist/_node-chunks/chunk-W3VLCKNF.js +2574 -0
- package/dist/manager.js +1 -1
- package/dist/node/coverage-reporter.js +8 -8
- package/dist/node/vitest.js +14 -25
- package/dist/postinstall.js +405 -174
- package/dist/preset.js +15 -2239
- package/dist/vitest-plugin/global-setup.js +7 -7
- package/dist/vitest-plugin/index.js +9 -9
- package/dist/vitest-plugin/setup-file.js +1 -1
- package/package.json +4 -2
- package/dist/_node-chunks/chunk-HEOEWXF6.js +0 -348
- package/dist/_node-chunks/chunk-RVUFNUEO.js +0 -40
- package/dist/_node-chunks/chunk-THQKN44K.js +0 -60
- /package/dist/_browser-chunks/{chunk-RPDOPHZX.js → chunk-CAYLRBRX.js} +0 -0
package/dist/manager.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_7rpy14trxcn from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_7rpy14trxcn from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_7rpy14trxcn from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_7rpy14trxcn.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_7rpy14trxcn.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_7rpy14trxcn.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-JF2ZLAKM.js";
|
|
15
15
|
import {
|
|
16
16
|
__commonJS,
|
|
17
17
|
__name,
|
|
18
18
|
__require,
|
|
19
19
|
__toESM
|
|
20
|
-
} from "../_node-chunks/chunk-
|
|
20
|
+
} from "../_node-chunks/chunk-P6LDW7T6.js";
|
|
21
21
|
|
|
22
22
|
// ../../node_modules/istanbul-lib-report/node_modules/make-dir/index.js
|
|
23
23
|
var require_make_dir = __commonJS({
|
package/dist/node/vitest.js
CHANGED
|
@@ -1,37 +1,38 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_7rpy14trxcn from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_7rpy14trxcn from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_7rpy14trxcn from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_7rpy14trxcn.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_7rpy14trxcn.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_7rpy14trxcn.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
12
|
import {
|
|
13
13
|
log
|
|
14
|
-
} from "../_node-chunks/chunk-
|
|
14
|
+
} from "../_node-chunks/chunk-DZ2TEOAI.js";
|
|
15
15
|
import {
|
|
16
|
-
any
|
|
17
|
-
|
|
16
|
+
any,
|
|
17
|
+
errorToErrorLike
|
|
18
|
+
} from "../_node-chunks/chunk-EXUMEBRN.js";
|
|
18
19
|
import {
|
|
19
20
|
ADDON_ID,
|
|
20
21
|
COVERAGE_DIRECTORY,
|
|
21
22
|
STATUS_TYPE_ID_A11Y,
|
|
22
23
|
STATUS_TYPE_ID_COMPONENT_TEST,
|
|
23
24
|
storeOptions
|
|
24
|
-
} from "../_node-chunks/chunk-
|
|
25
|
-
import "../_node-chunks/chunk-
|
|
25
|
+
} from "../_node-chunks/chunk-TF46HR7L.js";
|
|
26
|
+
import "../_node-chunks/chunk-LDJNKKTR.js";
|
|
26
27
|
import {
|
|
27
28
|
dirname,
|
|
28
29
|
join,
|
|
29
30
|
normalize,
|
|
30
31
|
path
|
|
31
|
-
} from "../_node-chunks/chunk-
|
|
32
|
+
} from "../_node-chunks/chunk-GHYZQHE6.js";
|
|
32
33
|
import {
|
|
33
34
|
__name
|
|
34
|
-
} from "../_node-chunks/chunk-
|
|
35
|
+
} from "../_node-chunks/chunk-P6LDW7T6.js";
|
|
35
36
|
|
|
36
37
|
// src/node/vitest.ts
|
|
37
38
|
import process2 from "node:process";
|
|
@@ -173,18 +174,6 @@ function throttle(func, throttleMs, { signal, edges = ["leading", "trailing"] }
|
|
|
173
174
|
}
|
|
174
175
|
__name(throttle, "throttle");
|
|
175
176
|
|
|
176
|
-
// src/utils.ts
|
|
177
|
-
function errorToErrorLike(error) {
|
|
178
|
-
return {
|
|
179
|
-
message: error.message,
|
|
180
|
-
name: error.name,
|
|
181
|
-
// avoid duplicating the error message in the stack trace
|
|
182
|
-
stack: error.stack?.replace(error.message, ""),
|
|
183
|
-
cause: error.cause && error.cause instanceof Error ? errorToErrorLike(error.cause) : void 0
|
|
184
|
-
};
|
|
185
|
-
}
|
|
186
|
-
__name(errorToErrorLike, "errorToErrorLike");
|
|
187
|
-
|
|
188
177
|
// src/node/vitest-manager.ts
|
|
189
178
|
import { existsSync } from "node:fs";
|
|
190
179
|
import { getProjectRoot, resolvePathInStorybookCache } from "storybook/internal/common";
|