vitest 2.0.4 → 2.0.5
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/browser.d.ts +21 -42
- package/dist/browser.js +5 -5
- package/dist/{vendor/base.Csk7BT3h.js → chunks/base.CC5R_kgU.js} +3 -3
- package/dist/{vendor/base.DRHPZCCj.js → chunks/base.DSsbfkDg.js} +1 -1
- package/dist/{vendor/benchmark.B6pblCp2.js → chunks/benchmark.DDmpNjj-.js} +1 -1
- package/dist/chunks/benchmark.puBFxyfE.d.ts +22 -0
- package/dist/{vendor/cac.DFtWvZc2.js → chunks/cac.DGgmCKmU.js} +17 -20
- package/dist/{vendor/cli-api.CTkP2Ier.js → chunks/cli-api.OKfd3qJ0.js} +416 -423
- package/dist/chunks/config.DCnyCTbs.d.ts +203 -0
- package/dist/chunks/{runtime-console.C2L2zykk.js → console.Bgn7_A1x.js} +11 -14
- package/dist/{vendor/constants.CsnA4eRy.js → chunks/constants.CaAN7icJ.js} +1 -3
- package/dist/{vendor/coverage.BhYSDdTT.js → chunks/coverage.CqfT4xaf.js} +4 -7
- package/dist/chunks/{browser-creator.CyaOd8pl.js → creator.a3OfuIEW.js} +8 -8
- package/dist/{vendor/env.2ltrQNq0.js → chunks/env.BU041cs9.js} +2 -3
- package/dist/chunks/environment.0M5R1SX_.d.ts +173 -0
- package/dist/{vendor/execute.jzOWtys_.js → chunks/execute.Cjlr2CRw.js} +27 -19
- package/dist/chunks/globals.BliuJFNR.js +31 -0
- package/dist/{vendor/index.DI9daj1Q.js → chunks/index.BfeNhc0N.js} +43 -43
- package/dist/{vendor/index.D6GZqexG.js → chunks/index.CM5UI-4O.js} +2 -2
- package/dist/{vendor/index.BJmtb_7W.js → chunks/index.DYufA6CZ.js} +2 -2
- package/dist/{vendor/index.CuuL9y4g.js → chunks/index.JbiJutJ_.js} +515 -255
- package/dist/{vendor/index.CVqMv71L.js → chunks/index.R1VjssW9.js} +11 -12
- package/dist/{vendor/index.D4nqnQWz.js → chunks/index.lVXYBqEP.js} +1 -18
- package/dist/{vendor/inspector.-FCQUzqR.js → chunks/inspector.70d6emsh.js} +4 -5
- package/dist/chunks/{environments-node.XE5FbRPQ.js → node.DS3zEPa7.js} +2 -2
- package/dist/{reporters-B7ebVMkT.d.ts → chunks/reporters.C_zwCd4j.d.ts} +847 -1000
- package/dist/{vendor/rpc.BGx7q_k2.js → chunks/rpc.B7Mfb-Yf.js} +3 -5
- package/dist/{vendor/run-once.Db8Hgq9X.js → chunks/run-once.Sxe67Wng.js} +1 -1
- package/dist/chunks/{runtime-runBaseTests.Dq_sJZq9.js → runBaseTests.CyvqmuC9.js} +21 -23
- package/dist/{vendor/setup-common.symvFZPh.js → chunks/setup-common.CNzatKMx.js} +2 -2
- package/dist/{suite-CRLAhsm0.d.ts → chunks/suite.CcK46U-P.d.ts} +1 -1
- package/dist/{vendor/tasks.DhVtQBtW.js → chunks/tasks.BZnCS9aT.js} +2 -3
- package/dist/{vendor/utils.DkxLWvS1.js → chunks/utils.C3_cBsyn.js} +3 -4
- package/dist/{vendor/global.7bFbnyXl.js → chunks/utils.Ck2hJTRs.js} +1 -1
- package/dist/{vendor/utils.BySfPUwy.js → chunks/utils.DpP_sDwr.js} +8 -21
- package/dist/{vendor/vi.Elqer9-7.js → chunks/vi.fiQ7lMRF.js} +13 -18
- package/dist/{vendor/vm.img-AOox.js → chunks/vm.DcSuuaHr.js} +40 -68
- package/dist/chunks/worker.C5iHKIaJ.d.ts +144 -0
- package/dist/chunks/worker.DKkAC4Qw.d.ts +8 -0
- package/dist/cli.js +3 -3
- package/dist/config.cjs +6 -8
- package/dist/config.d.ts +10 -8
- package/dist/config.js +6 -8
- package/dist/coverage.d.ts +10 -8
- package/dist/coverage.js +2 -2
- package/dist/environments.d.ts +3 -19
- package/dist/environments.js +1 -1
- package/dist/execute.d.ts +5 -14
- package/dist/execute.js +2 -2
- package/dist/index.d.ts +267 -34
- package/dist/index.js +12 -12
- package/dist/node.d.ts +15 -9
- package/dist/node.js +16 -19
- package/dist/reporters.d.ts +10 -8
- package/dist/reporters.js +12 -15
- package/dist/runners.d.ts +7 -19
- package/dist/runners.js +12 -13
- package/dist/snapshot.js +3 -3
- package/dist/suite.d.ts +2 -16
- package/dist/suite.js +4 -4
- package/dist/worker.js +7 -8
- package/dist/workers/forks.js +5 -5
- package/dist/workers/runVmTests.js +18 -19
- package/dist/workers/threads.js +5 -5
- package/dist/workers/vmForks.js +8 -8
- package/dist/workers/vmThreads.js +8 -8
- package/dist/workers.d.ts +13 -8
- package/dist/workers.js +13 -13
- package/package.json +13 -13
- package/dist/chunks/integrations-globals.nDMtdOcn.js +0 -31
- /package/dist/{vendor → chunks}/_commonjsHelpers.BFTU3MAI.js +0 -0
- /package/dist/{vendor → chunks}/date.W2xKR2qe.js +0 -0
- /package/dist/chunks/{node-git.ZtkbKc8u.js → git.ZtkbKc8u.js} +0 -0
- /package/dist/{vendor → chunks}/index.BMmMjLIQ.js +0 -0
- /package/dist/{vendor → chunks}/index.BpSiYbpB.js +0 -0
- /package/dist/chunks/{install-pkg.DNUmWFkO.js → index.DNUmWFkO.js} +0 -0
- /package/dist/{vendor → chunks}/spy.Cf_4R5Oe.js +0 -0
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
import { FetchResult, ViteNodeResolveId, RawSourceMap, ModuleCacheMap } from 'vite-node';
|
|
2
|
+
import { File, TaskResultPack, CancelReason, Task } from '@vitest/runner';
|
|
3
|
+
import { S as SerializedConfig } from './config.DCnyCTbs.js';
|
|
4
|
+
import { SnapshotResult } from '@vitest/snapshot';
|
|
5
|
+
import { T as TransformMode, U as UserConsoleLog, A as AfterSuiteRunMeta, E as Environment } from './environment.0M5R1SX_.js';
|
|
6
|
+
|
|
7
|
+
type MockFactoryWithHelper<M = unknown> = (importOriginal: <T extends M>() => Promise<T>) => any;
|
|
8
|
+
type MockFactory = () => any;
|
|
9
|
+
type MockMap = Map<string, Record<string, string | null | MockFactory>>;
|
|
10
|
+
interface PendingSuiteMock {
|
|
11
|
+
id: string;
|
|
12
|
+
importer: string;
|
|
13
|
+
type: 'mock' | 'unmock';
|
|
14
|
+
throwIfCached: boolean;
|
|
15
|
+
factory?: MockFactory;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
interface RuntimeRPC {
|
|
19
|
+
fetch: (id: string, transformMode: TransformMode) => Promise<{
|
|
20
|
+
externalize?: string;
|
|
21
|
+
id?: string;
|
|
22
|
+
}>;
|
|
23
|
+
transform: (id: string, transformMode: TransformMode) => Promise<FetchResult>;
|
|
24
|
+
resolveId: (id: string, importer: string | undefined, transformMode: TransformMode) => Promise<ViteNodeResolveId | null>;
|
|
25
|
+
getSourceMap: (id: string, force?: boolean) => Promise<RawSourceMap | undefined>;
|
|
26
|
+
onFinished: (files: File[], errors?: unknown[]) => void;
|
|
27
|
+
onPathsCollected: (paths: string[]) => void;
|
|
28
|
+
onUserConsoleLog: (log: UserConsoleLog) => void;
|
|
29
|
+
onUnhandledError: (err: unknown, type: string) => void;
|
|
30
|
+
onCollected: (files: File[]) => Promise<void>;
|
|
31
|
+
onAfterSuiteRun: (meta: AfterSuiteRunMeta) => void;
|
|
32
|
+
onTaskUpdate: (pack: TaskResultPack[]) => Promise<void>;
|
|
33
|
+
onCancel: (reason: CancelReason) => void;
|
|
34
|
+
getCountOfFailedTests: () => number;
|
|
35
|
+
snapshotSaved: (snapshot: SnapshotResult) => void;
|
|
36
|
+
resolveSnapshotPath: (testPath: string) => string;
|
|
37
|
+
}
|
|
38
|
+
interface RunnerRPC {
|
|
39
|
+
onCancel: (reason: CancelReason) => void;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
type ArgumentsType<T> = T extends (...args: infer A) => any ? A : never;
|
|
43
|
+
type ReturnType<T> = T extends (...args: any) => infer R ? R : never;
|
|
44
|
+
type PromisifyFn<T> = ReturnType<T> extends Promise<any> ? T : (...args: ArgumentsType<T>) => Promise<Awaited<ReturnType<T>>>;
|
|
45
|
+
type BirpcResolver = (name: string, resolved: (...args: unknown[]) => unknown) => ((...args: unknown[]) => unknown) | undefined;
|
|
46
|
+
interface ChannelOptions {
|
|
47
|
+
/**
|
|
48
|
+
* Function to post raw message
|
|
49
|
+
*/
|
|
50
|
+
post: (data: any, ...extras: any[]) => any | Promise<any>;
|
|
51
|
+
/**
|
|
52
|
+
* Listener to receive raw message
|
|
53
|
+
*/
|
|
54
|
+
on: (fn: (data: any, ...extras: any[]) => void) => any | Promise<any>;
|
|
55
|
+
/**
|
|
56
|
+
* Custom function to serialize data
|
|
57
|
+
*
|
|
58
|
+
* by default it passes the data as-is
|
|
59
|
+
*/
|
|
60
|
+
serialize?: (data: any) => any;
|
|
61
|
+
/**
|
|
62
|
+
* Custom function to deserialize data
|
|
63
|
+
*
|
|
64
|
+
* by default it passes the data as-is
|
|
65
|
+
*/
|
|
66
|
+
deserialize?: (data: any) => any;
|
|
67
|
+
}
|
|
68
|
+
interface EventOptions<Remote> {
|
|
69
|
+
/**
|
|
70
|
+
* Names of remote functions that do not need response.
|
|
71
|
+
*/
|
|
72
|
+
eventNames?: (keyof Remote)[];
|
|
73
|
+
/**
|
|
74
|
+
* Maximum timeout for waiting for response, in milliseconds.
|
|
75
|
+
*
|
|
76
|
+
* @default 60_000
|
|
77
|
+
*/
|
|
78
|
+
timeout?: number;
|
|
79
|
+
/**
|
|
80
|
+
* Custom resolver to resolve function to be called
|
|
81
|
+
*
|
|
82
|
+
* For advanced use cases only
|
|
83
|
+
*/
|
|
84
|
+
resolver?: BirpcResolver;
|
|
85
|
+
/**
|
|
86
|
+
* Custom error handler
|
|
87
|
+
*/
|
|
88
|
+
onError?: (error: Error, functionName: string, args: any[]) => boolean | void;
|
|
89
|
+
/**
|
|
90
|
+
* Custom error handler for timeouts
|
|
91
|
+
*/
|
|
92
|
+
onTimeoutError?: (functionName: string, args: any[]) => boolean | void;
|
|
93
|
+
}
|
|
94
|
+
type BirpcOptions<Remote> = EventOptions<Remote> & ChannelOptions;
|
|
95
|
+
type BirpcFn<T> = PromisifyFn<T> & {
|
|
96
|
+
/**
|
|
97
|
+
* Send event without asking for response
|
|
98
|
+
*/
|
|
99
|
+
asEvent: (...args: ArgumentsType<T>) => void;
|
|
100
|
+
};
|
|
101
|
+
type BirpcReturn<RemoteFunctions, LocalFunctions = Record<string, never>> = {
|
|
102
|
+
[K in keyof RemoteFunctions]: BirpcFn<RemoteFunctions[K]>;
|
|
103
|
+
} & {
|
|
104
|
+
$functions: LocalFunctions;
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
/** @deprecated unused */
|
|
108
|
+
type ResolveIdFunction = (id: string, importer?: string) => Promise<ViteNodeResolveId | null>;
|
|
109
|
+
type WorkerRPC = BirpcReturn<RuntimeRPC, RunnerRPC>;
|
|
110
|
+
interface ContextTestEnvironment {
|
|
111
|
+
name: string;
|
|
112
|
+
transformMode?: TransformMode;
|
|
113
|
+
options: Record<string, any> | null;
|
|
114
|
+
}
|
|
115
|
+
interface ContextRPC {
|
|
116
|
+
pool: string;
|
|
117
|
+
worker: string;
|
|
118
|
+
workerId: number;
|
|
119
|
+
config: SerializedConfig;
|
|
120
|
+
projectName: string;
|
|
121
|
+
files: string[];
|
|
122
|
+
environment: ContextTestEnvironment;
|
|
123
|
+
providedContext: Record<string, any>;
|
|
124
|
+
invalidates?: string[];
|
|
125
|
+
}
|
|
126
|
+
interface WorkerGlobalState {
|
|
127
|
+
ctx: ContextRPC;
|
|
128
|
+
config: SerializedConfig;
|
|
129
|
+
rpc: WorkerRPC;
|
|
130
|
+
current?: Task;
|
|
131
|
+
filepath?: string;
|
|
132
|
+
environment: Environment;
|
|
133
|
+
environmentTeardownRun?: boolean;
|
|
134
|
+
onCancel: Promise<CancelReason>;
|
|
135
|
+
moduleCache: ModuleCacheMap;
|
|
136
|
+
mockMap: MockMap;
|
|
137
|
+
providedContext: Record<string, any>;
|
|
138
|
+
durations: {
|
|
139
|
+
environment: number;
|
|
140
|
+
prepare: number;
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
export type { BirpcOptions as B, ContextRPC as C, MockFactoryWithHelper as M, PendingSuiteMock as P, RuntimeRPC as R, WorkerGlobalState as W, BirpcReturn as a, RunnerRPC as b, ResolveIdFunction as c, WorkerRPC as d, ContextTestEnvironment as e, MockFactory as f, MockMap as g };
|
package/dist/cli.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { c as createCLI } from './
|
|
1
|
+
import { c as createCLI } from './chunks/cac.DGgmCKmU.js';
|
|
2
2
|
import 'pathe';
|
|
3
3
|
import 'events';
|
|
4
4
|
import 'tinyrainbow';
|
|
5
|
-
import './
|
|
5
|
+
import './chunks/base.DSsbfkDg.js';
|
|
6
6
|
import '@vitest/utils';
|
|
7
|
-
import './
|
|
7
|
+
import './chunks/constants.CaAN7icJ.js';
|
|
8
8
|
|
|
9
9
|
createCLI().parse();
|
package/dist/config.cjs
CHANGED
|
@@ -4,9 +4,8 @@ var os = require('node:os');
|
|
|
4
4
|
var stdEnv = require('std-env');
|
|
5
5
|
var vite = require('vite');
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
const
|
|
9
|
-
const isDeno = typeof process < "u" && typeof process.stdout < "u" && ((_b$1 = process.versions) == null ? void 0 : _b$1.deno) !== void 0;
|
|
7
|
+
const isNode = typeof process < "u" && typeof process.stdout < "u" && !process.versions?.deno && !globalThis.window;
|
|
8
|
+
const isDeno = typeof process < "u" && typeof process.stdout < "u" && process.versions?.deno !== void 0;
|
|
10
9
|
(isNode || isDeno) && process.platform === "win32";
|
|
11
10
|
|
|
12
11
|
const defaultBrowserPort = 63315;
|
|
@@ -14,12 +13,9 @@ const extraInlineDeps = [
|
|
|
14
13
|
/^(?!.*node_modules).*\.mjs$/,
|
|
15
14
|
/^(?!.*node_modules).*\.cjs\.js$/,
|
|
16
15
|
// Vite client
|
|
17
|
-
/vite\w*\/dist\/client\/env.mjs
|
|
18
|
-
// Nuxt
|
|
19
|
-
"@nuxt/test-utils"
|
|
16
|
+
/vite\w*\/dist\/client\/env.mjs/
|
|
20
17
|
];
|
|
21
18
|
|
|
22
|
-
var _a, _b;
|
|
23
19
|
const defaultInclude = ["**/*.{test,spec}.?(c|m)[jt]s?(x)"];
|
|
24
20
|
const defaultExclude = [
|
|
25
21
|
"**/node_modules/**",
|
|
@@ -78,7 +74,7 @@ const coverageConfigDefaults = {
|
|
|
78
74
|
ignoreEmptyLines: true,
|
|
79
75
|
processingConcurrency: Math.min(
|
|
80
76
|
20,
|
|
81
|
-
|
|
77
|
+
os.availableParallelism?.() ?? os.cpus().length
|
|
82
78
|
)
|
|
83
79
|
};
|
|
84
80
|
const fakeTimersDefaults = {
|
|
@@ -104,6 +100,8 @@ const config = {
|
|
|
104
100
|
clearMocks: false,
|
|
105
101
|
restoreMocks: false,
|
|
106
102
|
mockReset: false,
|
|
103
|
+
unstubGlobals: false,
|
|
104
|
+
unstubEnvs: false,
|
|
107
105
|
include: defaultInclude,
|
|
108
106
|
exclude: defaultExclude,
|
|
109
107
|
teardownTimeout: 1e4,
|
package/dist/config.d.ts
CHANGED
|
@@ -1,18 +1,20 @@
|
|
|
1
|
+
export { ap as UserConfigExport, ao as UserConfigFn, am as UserConfigFnObject, an as UserConfigFnPromise, ar as UserProjectConfigExport, aq as UserProjectConfigFn, z as UserWorkspaceConfig, aw as configDefaults, az as coverageConfigDefaults, av as defaultBrowserPort, ay as defaultExclude, ax as defaultInclude, as as defineConfig, at as defineProject, au as defineWorkspace, aA as extraInlineDeps } from './chunks/reporters.C_zwCd4j.js';
|
|
1
2
|
export { ConfigEnv, Plugin, UserConfig, mergeConfig } from 'vite';
|
|
2
|
-
export { aO as UserConfigExport, aN as UserConfigFn, aL as UserConfigFnObject, aM as UserConfigFnPromise, aQ as UserProjectConfigExport, aP as UserProjectConfigFn, K as UserWorkspaceConfig, aV as configDefaults, aY as coverageConfigDefaults, aU as defaultBrowserPort, aX as defaultExclude, aW as defaultInclude, aR as defineConfig, aS as defineProject, aT as defineWorkspace, aZ as extraInlineDeps } from './reporters-B7ebVMkT.js';
|
|
3
|
-
import '@vitest/pretty-format';
|
|
4
3
|
import '@vitest/runner';
|
|
5
|
-
import '
|
|
4
|
+
import '@vitest/pretty-format';
|
|
5
|
+
import './chunks/config.DCnyCTbs.js';
|
|
6
6
|
import '@vitest/snapshot';
|
|
7
|
-
import '@vitest/
|
|
8
|
-
import '
|
|
9
|
-
import '
|
|
10
|
-
import 'tinybench';
|
|
7
|
+
import '@vitest/snapshot/environment';
|
|
8
|
+
import 'vite-node';
|
|
9
|
+
import './chunks/environment.0M5R1SX_.js';
|
|
11
10
|
import 'node:stream';
|
|
12
11
|
import 'vite-node/client';
|
|
13
12
|
import '@vitest/snapshot/manager';
|
|
14
13
|
import 'vite-node/server';
|
|
15
|
-
import '
|
|
14
|
+
import '@vitest/utils';
|
|
16
15
|
import '@vitest/utils/source-map';
|
|
17
16
|
import 'node:fs';
|
|
18
17
|
import 'chai';
|
|
18
|
+
import './chunks/benchmark.puBFxyfE.js';
|
|
19
|
+
import '@vitest/runner/utils';
|
|
20
|
+
import 'tinybench';
|
package/dist/config.js
CHANGED
|
@@ -2,9 +2,8 @@ import os from 'node:os';
|
|
|
2
2
|
import { isCI } from 'std-env';
|
|
3
3
|
export { mergeConfig } from 'vite';
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
const
|
|
7
|
-
const isDeno = typeof process < "u" && typeof process.stdout < "u" && ((_b$1 = process.versions) == null ? void 0 : _b$1.deno) !== void 0;
|
|
5
|
+
const isNode = typeof process < "u" && typeof process.stdout < "u" && !process.versions?.deno && !globalThis.window;
|
|
6
|
+
const isDeno = typeof process < "u" && typeof process.stdout < "u" && process.versions?.deno !== void 0;
|
|
8
7
|
(isNode || isDeno) && process.platform === "win32";
|
|
9
8
|
|
|
10
9
|
const defaultBrowserPort = 63315;
|
|
@@ -12,12 +11,9 @@ const extraInlineDeps = [
|
|
|
12
11
|
/^(?!.*node_modules).*\.mjs$/,
|
|
13
12
|
/^(?!.*node_modules).*\.cjs\.js$/,
|
|
14
13
|
// Vite client
|
|
15
|
-
/vite\w*\/dist\/client\/env.mjs
|
|
16
|
-
// Nuxt
|
|
17
|
-
"@nuxt/test-utils"
|
|
14
|
+
/vite\w*\/dist\/client\/env.mjs/
|
|
18
15
|
];
|
|
19
16
|
|
|
20
|
-
var _a, _b;
|
|
21
17
|
const defaultInclude = ["**/*.{test,spec}.?(c|m)[jt]s?(x)"];
|
|
22
18
|
const defaultExclude = [
|
|
23
19
|
"**/node_modules/**",
|
|
@@ -76,7 +72,7 @@ const coverageConfigDefaults = {
|
|
|
76
72
|
ignoreEmptyLines: true,
|
|
77
73
|
processingConcurrency: Math.min(
|
|
78
74
|
20,
|
|
79
|
-
|
|
75
|
+
os.availableParallelism?.() ?? os.cpus().length
|
|
80
76
|
)
|
|
81
77
|
};
|
|
82
78
|
const fakeTimersDefaults = {
|
|
@@ -102,6 +98,8 @@ const config = {
|
|
|
102
98
|
clearMocks: false,
|
|
103
99
|
restoreMocks: false,
|
|
104
100
|
mockReset: false,
|
|
101
|
+
unstubGlobals: false,
|
|
102
|
+
unstubEnvs: false,
|
|
105
103
|
include: defaultInclude,
|
|
106
104
|
exclude: defaultExclude,
|
|
107
105
|
teardownTimeout: 1e4,
|
package/dist/coverage.d.ts
CHANGED
|
@@ -1,21 +1,23 @@
|
|
|
1
|
-
import { B as BaseCoverageOptions,
|
|
1
|
+
import { B as BaseCoverageOptions, R as ResolvedCoverageOptions } from './chunks/reporters.C_zwCd4j.js';
|
|
2
|
+
import '@vitest/runner';
|
|
2
3
|
import 'vite';
|
|
3
4
|
import '@vitest/pretty-format';
|
|
4
|
-
import '
|
|
5
|
-
import 'vite-node';
|
|
5
|
+
import './chunks/config.DCnyCTbs.js';
|
|
6
6
|
import '@vitest/snapshot';
|
|
7
|
-
import '@vitest/
|
|
8
|
-
import '
|
|
9
|
-
import '
|
|
10
|
-
import 'tinybench';
|
|
7
|
+
import '@vitest/snapshot/environment';
|
|
8
|
+
import 'vite-node';
|
|
9
|
+
import './chunks/environment.0M5R1SX_.js';
|
|
11
10
|
import 'node:stream';
|
|
12
11
|
import 'vite-node/client';
|
|
13
12
|
import '@vitest/snapshot/manager';
|
|
14
13
|
import 'vite-node/server';
|
|
15
|
-
import '
|
|
14
|
+
import '@vitest/utils';
|
|
16
15
|
import '@vitest/utils/source-map';
|
|
17
16
|
import 'node:fs';
|
|
18
17
|
import 'chai';
|
|
18
|
+
import './chunks/benchmark.puBFxyfE.js';
|
|
19
|
+
import '@vitest/runner/utils';
|
|
20
|
+
import 'tinybench';
|
|
19
21
|
|
|
20
22
|
interface CoverageSummaryData {
|
|
21
23
|
lines: Totals;
|
package/dist/coverage.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { relative } from 'pathe';
|
|
2
|
-
import { m as mm } from './
|
|
3
|
-
import './
|
|
2
|
+
import { m as mm } from './chunks/index.BMmMjLIQ.js';
|
|
3
|
+
import './chunks/_commonjsHelpers.BFTU3MAI.js';
|
|
4
4
|
import 'util';
|
|
5
5
|
import 'path';
|
|
6
6
|
|
package/dist/environments.d.ts
CHANGED
|
@@ -1,21 +1,5 @@
|
|
|
1
|
-
import { E as Environment } from './
|
|
2
|
-
|
|
3
|
-
import '@vitest/pretty-format';
|
|
4
|
-
import '@vitest/runner';
|
|
5
|
-
import 'vite-node';
|
|
6
|
-
import '@vitest/snapshot';
|
|
7
|
-
import '@vitest/expect';
|
|
8
|
-
import '@vitest/runner/utils';
|
|
9
|
-
import '@vitest/utils';
|
|
10
|
-
import 'tinybench';
|
|
11
|
-
import 'node:stream';
|
|
12
|
-
import 'vite-node/client';
|
|
13
|
-
import '@vitest/snapshot/manager';
|
|
14
|
-
import 'vite-node/server';
|
|
15
|
-
import 'node:worker_threads';
|
|
16
|
-
import '@vitest/utils/source-map';
|
|
17
|
-
import 'node:fs';
|
|
18
|
-
import 'chai';
|
|
1
|
+
import { E as Environment } from './chunks/environment.0M5R1SX_.js';
|
|
2
|
+
export { a as EnvironmentReturn, V as VmEnvironmentReturn } from './chunks/environment.0M5R1SX_.js';
|
|
19
3
|
|
|
20
4
|
declare const environments: {
|
|
21
5
|
node: Environment;
|
|
@@ -34,4 +18,4 @@ declare function populateGlobal(global: any, win: any, options?: PopulateOptions
|
|
|
34
18
|
originals: Map<string | symbol, any>;
|
|
35
19
|
};
|
|
36
20
|
|
|
37
|
-
export { environments as builtinEnvironments, populateGlobal };
|
|
21
|
+
export { Environment, environments as builtinEnvironments, populateGlobal };
|
package/dist/environments.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { e as builtinEnvironments, p as populateGlobal } from './
|
|
1
|
+
export { e as builtinEnvironments, p as populateGlobal } from './chunks/index.lVXYBqEP.js';
|
|
2
2
|
import 'node:console';
|
package/dist/execute.d.ts
CHANGED
|
@@ -1,22 +1,13 @@
|
|
|
1
1
|
import vm from 'node:vm';
|
|
2
2
|
import { ViteNodeRunner } from 'vite-node/client';
|
|
3
3
|
import { ViteNodeRunnerOptions } from 'vite-node';
|
|
4
|
-
import {
|
|
5
|
-
import 'vite';
|
|
6
|
-
import '@vitest/pretty-format';
|
|
4
|
+
import { P as PendingSuiteMock, f as MockFactory, R as RuntimeRPC, W as WorkerGlobalState, g as MockMap } from './chunks/worker.C5iHKIaJ.js';
|
|
7
5
|
import '@vitest/runner';
|
|
6
|
+
import './chunks/config.DCnyCTbs.js';
|
|
7
|
+
import '@vitest/pretty-format';
|
|
8
8
|
import '@vitest/snapshot';
|
|
9
|
-
import '@vitest/
|
|
10
|
-
import '
|
|
11
|
-
import '@vitest/utils';
|
|
12
|
-
import 'tinybench';
|
|
13
|
-
import 'node:stream';
|
|
14
|
-
import '@vitest/snapshot/manager';
|
|
15
|
-
import 'vite-node/server';
|
|
16
|
-
import 'node:worker_threads';
|
|
17
|
-
import '@vitest/utils/source-map';
|
|
18
|
-
import 'node:fs';
|
|
19
|
-
import 'chai';
|
|
9
|
+
import '@vitest/snapshot/environment';
|
|
10
|
+
import './chunks/environment.0M5R1SX_.js';
|
|
20
11
|
|
|
21
12
|
type Key = string | symbol;
|
|
22
13
|
interface MockContext {
|
package/dist/execute.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { V as VitestExecutor } from './
|
|
1
|
+
export { V as VitestExecutor } from './chunks/execute.Cjlr2CRw.js';
|
|
2
2
|
import 'node:vm';
|
|
3
3
|
import 'node:url';
|
|
4
4
|
import 'node:fs';
|
|
@@ -8,4 +8,4 @@ import 'pathe';
|
|
|
8
8
|
import '@vitest/utils/error';
|
|
9
9
|
import './path.js';
|
|
10
10
|
import '@vitest/utils';
|
|
11
|
-
import './
|
|
11
|
+
import './chunks/base.DSsbfkDg.js';
|