@storybook/addon-vitest 0.0.0-pr-33092-sha-c8460b7a → 0.0.0-pr-33102-sha-748eeb18
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-BYNAAADB.js → chunk-3S37LHFK.js} +7 -7
- package/dist/_node-chunks/chunk-4GEBPZYM.js +158 -0
- package/dist/_node-chunks/chunk-6LHGT4I6.js +38 -0
- package/dist/_node-chunks/chunk-GECNS5B7.js +44 -0
- package/dist/_node-chunks/{chunk-H6AFC5BW.js → chunk-H5WR75RY.js} +7 -19
- package/dist/_node-chunks/{chunk-SXPPGPJV.js → chunk-K6BLOPHU.js} +7 -7
- package/dist/_node-chunks/{chunk-UVEHSNL5.js → chunk-PXAL7NKQ.js} +6 -6
- package/dist/_node-chunks/chunk-SRNV5GEP.js +61 -0
- package/dist/_node-chunks/{chunk-A4JN7TXM.js → chunk-XSEBM2WQ.js} +6 -6
- package/dist/manager.js +1 -1
- package/dist/node/coverage-reporter.js +8 -8
- package/dist/node/vitest.js +24 -14
- package/dist/postinstall.js +152 -290
- package/dist/preset.js +30 -25
- package/dist/vitest-plugin/global-setup.js +8 -9
- package/dist/vitest-plugin/index.js +33 -34
- package/dist/vitest-plugin/setup-file.js +1 -1
- package/package.json +3 -7
- package/dist/_node-chunks/chunk-NRFGFKG2.js +0 -1697
- package/dist/_node-chunks/chunk-PO7D7KB7.js +0 -69
- package/dist/_node-chunks/chunk-QPB2GCIO.js +0 -35
- /package/dist/_browser-chunks/{chunk-ULSHVN74.js → chunk-TYJENCK5.js} +0 -0
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import CJS_COMPAT_NODE_URL_vshh9fntxdn from 'node:url';
|
|
2
|
-
import CJS_COMPAT_NODE_PATH_vshh9fntxdn from 'node:path';
|
|
3
|
-
import CJS_COMPAT_NODE_MODULE_vshh9fntxdn from "node:module";
|
|
4
|
-
|
|
5
|
-
var __filename = CJS_COMPAT_NODE_URL_vshh9fntxdn.fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = CJS_COMPAT_NODE_PATH_vshh9fntxdn.dirname(__filename);
|
|
7
|
-
var require = CJS_COMPAT_NODE_MODULE_vshh9fntxdn.createRequire(import.meta.url);
|
|
8
|
-
|
|
9
|
-
// ------------------------------------------------------------
|
|
10
|
-
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
-
// ------------------------------------------------------------
|
|
12
|
-
|
|
13
|
-
// src/utils.ts
|
|
14
|
-
function getAddonNames(mainConfig) {
|
|
15
|
-
return (mainConfig.addons || []).map((addon) => {
|
|
16
|
-
let name = "";
|
|
17
|
-
return typeof addon == "string" ? name = addon : typeof addon == "object" && (name = addon.name), name;
|
|
18
|
-
}).filter((item) => item != null);
|
|
19
|
-
}
|
|
20
|
-
function errorToErrorLike(error) {
|
|
21
|
-
return {
|
|
22
|
-
message: error.message,
|
|
23
|
-
name: error.name,
|
|
24
|
-
// avoid duplicating the error message in the stack trace
|
|
25
|
-
stack: error.stack?.replace(error.message, ""),
|
|
26
|
-
cause: error.cause && error.cause instanceof Error ? errorToErrorLike(error.cause) : void 0
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
// ../../node_modules/empathic/find.mjs
|
|
31
|
-
import { join as join2 } from "node:path";
|
|
32
|
-
import { existsSync, statSync } from "node:fs";
|
|
33
|
-
|
|
34
|
-
// ../../node_modules/empathic/walk.mjs
|
|
35
|
-
import { dirname } from "node:path";
|
|
36
|
-
|
|
37
|
-
// ../../node_modules/empathic/resolve.mjs
|
|
38
|
-
import { isAbsolute, join, resolve } from "node:path";
|
|
39
|
-
function absolute(input, root) {
|
|
40
|
-
return isAbsolute(input) ? input : resolve(root || ".", input);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
// ../../node_modules/empathic/walk.mjs
|
|
44
|
-
function up(base, options) {
|
|
45
|
-
let { last, cwd } = options || {}, tmp = absolute(base, cwd), root = absolute(last || "/", cwd), prev, arr = [];
|
|
46
|
-
for (; prev !== root && (arr.push(tmp), tmp = dirname(prev = tmp), tmp !== prev); )
|
|
47
|
-
;
|
|
48
|
-
return arr;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
// ../../node_modules/empathic/find.mjs
|
|
52
|
-
function up2(name, options) {
|
|
53
|
-
let dir, tmp, start = options && options.cwd || "";
|
|
54
|
-
for (dir of up(start, options))
|
|
55
|
-
if (tmp = join2(dir, name), existsSync(tmp)) return tmp;
|
|
56
|
-
}
|
|
57
|
-
function any(names, options) {
|
|
58
|
-
let dir, start = options && options.cwd || "", j = 0, len = names.length, tmp;
|
|
59
|
-
for (dir of up(start, options))
|
|
60
|
-
for (j = 0; j < len; j++)
|
|
61
|
-
if (tmp = join2(dir, names[j]), existsSync(tmp)) return tmp;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
export {
|
|
65
|
-
getAddonNames,
|
|
66
|
-
errorToErrorLike,
|
|
67
|
-
up2 as up,
|
|
68
|
-
any
|
|
69
|
-
};
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import CJS_COMPAT_NODE_URL_vshh9fntxdn from 'node:url';
|
|
2
|
-
import CJS_COMPAT_NODE_PATH_vshh9fntxdn from 'node:path';
|
|
3
|
-
import CJS_COMPAT_NODE_MODULE_vshh9fntxdn from "node:module";
|
|
4
|
-
|
|
5
|
-
var __filename = CJS_COMPAT_NODE_URL_vshh9fntxdn.fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = CJS_COMPAT_NODE_PATH_vshh9fntxdn.dirname(__filename);
|
|
7
|
-
var require = CJS_COMPAT_NODE_MODULE_vshh9fntxdn.createRequire(import.meta.url);
|
|
8
|
-
|
|
9
|
-
// ------------------------------------------------------------
|
|
10
|
-
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
-
// ------------------------------------------------------------
|
|
12
|
-
import {
|
|
13
|
-
ADDON_ID
|
|
14
|
-
} from "./chunk-H6AFC5BW.js";
|
|
15
|
-
import {
|
|
16
|
-
require_picocolors
|
|
17
|
-
} from "./chunk-BYNAAADB.js";
|
|
18
|
-
import {
|
|
19
|
-
__toESM
|
|
20
|
-
} from "./chunk-A4JN7TXM.js";
|
|
21
|
-
|
|
22
|
-
// src/logger.ts
|
|
23
|
-
var import_picocolors = __toESM(require_picocolors(), 1);
|
|
24
|
-
var log = (message) => {
|
|
25
|
-
console.log(`${import_picocolors.default.magenta(ADDON_ID)}: ${message.toString().trim()}`);
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
// ../../node_modules/es-toolkit/dist/function/noop.mjs
|
|
29
|
-
function noop() {
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
export {
|
|
33
|
-
noop,
|
|
34
|
-
log
|
|
35
|
-
};
|
|
File without changes
|