vitest 4.0.15 → 4.0.16
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 +1 -1
- package/dist/browser.js +1 -1
- package/dist/chunks/{base.CTp-EStD.js → base.Bin-9uYm.js} +4 -3
- package/dist/chunks/{browser.d.DBzUq_Na.d.ts → browser.d.Bz3lxTX-.d.ts} +1 -1
- package/dist/chunks/{cac.BNNpZQl7.js → cac.BGonGPac.js} +3 -3
- package/dist/chunks/{cli-api.C7sYjHmQ.js → cli-api.BKg19Fvw.js} +51 -31
- package/dist/chunks/{coverage.CtyeYmKM.js → coverage.BuJUwVtg.js} +2 -1
- package/dist/chunks/{index.bFLgAE-Z.js → index.6Qv1eEA6.js} +2 -2
- package/dist/chunks/index.Chj8NDwU.js +206 -0
- package/dist/chunks/{init-forks.CKEYp90N.js → init-forks.v9UONQS6.js} +1 -1
- package/dist/chunks/{init-threads.D8Ok07M7.js → init-threads.DqYg3Trk.js} +1 -1
- package/dist/chunks/{init.B04saIIg.js → init.KmQZdqFg.js} +2 -2
- package/dist/chunks/{modules.DJPjQW6m.js → modules.BJuCwlRJ.js} +4 -3
- package/dist/chunks/{plugin.d.CY7CUjf-.d.ts → plugin.d.v1sC_bv1.d.ts} +1 -1
- package/dist/chunks/{reporters.d.OXEK7y4s.d.ts → reporters.d.Rsi0PyxX.d.ts} +2 -2
- package/dist/chunks/{rpc.BytlcPfC.js → rpc.BoxB0q7B.js} +1 -1
- package/dist/chunks/{startModuleRunner.Iz2V0ESw.js → startModuleRunner.DpqpB8k3.js} +1 -1
- package/dist/chunks/{test.BT8LKgU9.js → test.B8ej_ZHS.js} +1 -1
- package/dist/chunks/{vm.BwmD1Rql.js → vm.qFl6P1nF.js} +2 -2
- package/dist/chunks/worker.d.5JNaocaN.d.ts +254 -0
- package/dist/cli.js +1 -1
- package/dist/config.d.ts +5 -5
- package/dist/coverage.d.ts +3 -3
- package/dist/coverage.js +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/module-evaluator.js +2 -10
- package/dist/module-runner.js +2 -2
- package/dist/node.d.ts +16 -9
- package/dist/node.js +8 -8
- package/dist/reporters.d.ts +3 -3
- package/dist/runners.js +3 -3
- package/dist/worker.d.ts +4 -2
- package/dist/worker.js +8 -8
- package/dist/workers/forks.js +9 -9
- package/dist/workers/runVmTests.js +4 -4
- package/dist/workers/threads.js +9 -9
- package/dist/workers/vmForks.js +7 -7
- package/dist/workers/vmThreads.js +7 -7
- package/package.json +13 -13
- package/dist/chunks/index.0kCJoeWi.js +0 -220
- package/dist/chunks/worker.d.B4A26qg6.d.ts +0 -238
|
@@ -0,0 +1,254 @@
|
|
|
1
|
+
import { FileSpecification, Task, CancelReason } from '@vitest/runner';
|
|
2
|
+
import { EvaluatedModules } from 'vite/module-runner';
|
|
3
|
+
import { S as SerializedConfig } from './config.d.CzIjkicf.js';
|
|
4
|
+
import { E as Environment } from './environment.d.CrsxCzP1.js';
|
|
5
|
+
import { R as RuntimeRPC, a as RunnerRPC } from './rpc.d.RH3apGEf.js';
|
|
6
|
+
|
|
7
|
+
//#region src/messages.d.ts
|
|
8
|
+
declare const TYPE_REQUEST: "q";
|
|
9
|
+
interface RpcRequest {
|
|
10
|
+
/**
|
|
11
|
+
* Type
|
|
12
|
+
*/
|
|
13
|
+
t: typeof TYPE_REQUEST;
|
|
14
|
+
/**
|
|
15
|
+
* ID
|
|
16
|
+
*/
|
|
17
|
+
i?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Method
|
|
20
|
+
*/
|
|
21
|
+
m: string;
|
|
22
|
+
/**
|
|
23
|
+
* Arguments
|
|
24
|
+
*/
|
|
25
|
+
a: any[];
|
|
26
|
+
/**
|
|
27
|
+
* Optional
|
|
28
|
+
*/
|
|
29
|
+
o?: boolean;
|
|
30
|
+
}
|
|
31
|
+
//#endregion
|
|
32
|
+
//#region src/utils.d.ts
|
|
33
|
+
type ArgumentsType<T> = T extends ((...args: infer A) => any) ? A : never;
|
|
34
|
+
type ReturnType<T> = T extends ((...args: any) => infer R) ? R : never;
|
|
35
|
+
type Thenable<T> = T | PromiseLike<T>;
|
|
36
|
+
//#endregion
|
|
37
|
+
//#region src/main.d.ts
|
|
38
|
+
type PromisifyFn<T> = ReturnType<T> extends Promise<any> ? T : (...args: ArgumentsType<T>) => Promise<Awaited<ReturnType<T>>>;
|
|
39
|
+
type BirpcResolver<This> = (this: This, name: string, resolved: (...args: unknown[]) => unknown) => Thenable<((...args: any[]) => any) | undefined>;
|
|
40
|
+
interface ChannelOptions {
|
|
41
|
+
/**
|
|
42
|
+
* Function to post raw message
|
|
43
|
+
*/
|
|
44
|
+
post: (data: any, ...extras: any[]) => Thenable<any>;
|
|
45
|
+
/**
|
|
46
|
+
* Listener to receive raw message
|
|
47
|
+
*/
|
|
48
|
+
on: (fn: (data: any, ...extras: any[]) => void) => Thenable<any>;
|
|
49
|
+
/**
|
|
50
|
+
* Clear the listener when `$close` is called
|
|
51
|
+
*/
|
|
52
|
+
off?: (fn: (data: any, ...extras: any[]) => void) => Thenable<any>;
|
|
53
|
+
/**
|
|
54
|
+
* Custom function to serialize data
|
|
55
|
+
*
|
|
56
|
+
* by default it passes the data as-is
|
|
57
|
+
*/
|
|
58
|
+
serialize?: (data: any) => any;
|
|
59
|
+
/**
|
|
60
|
+
* Custom function to deserialize data
|
|
61
|
+
*
|
|
62
|
+
* by default it passes the data as-is
|
|
63
|
+
*/
|
|
64
|
+
deserialize?: (data: any) => any;
|
|
65
|
+
/**
|
|
66
|
+
* Call the methods with the RPC context or the original functions object
|
|
67
|
+
*/
|
|
68
|
+
bind?: 'rpc' | 'functions';
|
|
69
|
+
/**
|
|
70
|
+
* Custom meta data to attached to the RPC instance's `$meta` property
|
|
71
|
+
*/
|
|
72
|
+
meta?: any;
|
|
73
|
+
}
|
|
74
|
+
interface EventOptions<RemoteFunctions extends object = Record<string, unknown>, LocalFunctions extends object = Record<string, unknown>, Proxify extends boolean = true> {
|
|
75
|
+
/**
|
|
76
|
+
* Names of remote functions that do not need response.
|
|
77
|
+
*/
|
|
78
|
+
eventNames?: (keyof RemoteFunctions)[];
|
|
79
|
+
/**
|
|
80
|
+
* Maximum timeout for waiting for response, in milliseconds.
|
|
81
|
+
*
|
|
82
|
+
* @default 60_000
|
|
83
|
+
*/
|
|
84
|
+
timeout?: number;
|
|
85
|
+
/**
|
|
86
|
+
* Whether to proxy the remote functions.
|
|
87
|
+
*
|
|
88
|
+
* When `proxify` is false, calling the remote function
|
|
89
|
+
* with `rpc.$call('method', ...args)` instead of `rpc.method(...args)`
|
|
90
|
+
* explicitly is required.
|
|
91
|
+
*
|
|
92
|
+
* @default true
|
|
93
|
+
*/
|
|
94
|
+
proxify?: Proxify;
|
|
95
|
+
/**
|
|
96
|
+
* Custom resolver to resolve function to be called
|
|
97
|
+
*
|
|
98
|
+
* For advanced use cases only
|
|
99
|
+
*/
|
|
100
|
+
resolver?: BirpcResolver<BirpcReturn<RemoteFunctions, LocalFunctions, Proxify>>;
|
|
101
|
+
/**
|
|
102
|
+
* Hook triggered before an event is sent to the remote
|
|
103
|
+
*
|
|
104
|
+
* @param req - Request parameters
|
|
105
|
+
* @param next - Function to continue the request
|
|
106
|
+
* @param resolve - Function to resolve the response directly
|
|
107
|
+
*/
|
|
108
|
+
onRequest?: (this: BirpcReturn<RemoteFunctions, LocalFunctions, Proxify>, req: RpcRequest, next: (req?: RpcRequest) => Promise<any>, resolve: (res: any) => void) => void | Promise<void>;
|
|
109
|
+
/**
|
|
110
|
+
* Custom error handler for errors occurred in local functions being called
|
|
111
|
+
*
|
|
112
|
+
* @returns `true` to prevent the error from being thrown
|
|
113
|
+
*/
|
|
114
|
+
onFunctionError?: (this: BirpcReturn<RemoteFunctions, LocalFunctions, Proxify>, error: Error, functionName: string, args: any[]) => boolean | void;
|
|
115
|
+
/**
|
|
116
|
+
* Custom error handler for errors occurred during serialization or messsaging
|
|
117
|
+
*
|
|
118
|
+
* @returns `true` to prevent the error from being thrown
|
|
119
|
+
*/
|
|
120
|
+
onGeneralError?: (this: BirpcReturn<RemoteFunctions, LocalFunctions, Proxify>, error: Error, functionName?: string, args?: any[]) => boolean | void;
|
|
121
|
+
/**
|
|
122
|
+
* Custom error handler for timeouts
|
|
123
|
+
*
|
|
124
|
+
* @returns `true` to prevent the error from being thrown
|
|
125
|
+
*/
|
|
126
|
+
onTimeoutError?: (this: BirpcReturn<RemoteFunctions, LocalFunctions, Proxify>, functionName: string, args: any[]) => boolean | void;
|
|
127
|
+
}
|
|
128
|
+
type BirpcOptions<RemoteFunctions extends object = Record<string, unknown>, LocalFunctions extends object = Record<string, unknown>, Proxify extends boolean = true> = EventOptions<RemoteFunctions, LocalFunctions, Proxify> & ChannelOptions;
|
|
129
|
+
type BirpcFn<T> = PromisifyFn<T> & {
|
|
130
|
+
/**
|
|
131
|
+
* Send event without asking for response
|
|
132
|
+
*/
|
|
133
|
+
asEvent: (...args: ArgumentsType<T>) => Promise<void>;
|
|
134
|
+
};
|
|
135
|
+
interface BirpcReturnBuiltin<RemoteFunctions, LocalFunctions = Record<string, unknown>> {
|
|
136
|
+
/**
|
|
137
|
+
* Raw functions object
|
|
138
|
+
*/
|
|
139
|
+
$functions: LocalFunctions;
|
|
140
|
+
/**
|
|
141
|
+
* Whether the RPC is closed
|
|
142
|
+
*/
|
|
143
|
+
readonly $closed: boolean;
|
|
144
|
+
/**
|
|
145
|
+
* Custom meta data attached to the RPC instance
|
|
146
|
+
*/
|
|
147
|
+
readonly $meta: any;
|
|
148
|
+
/**
|
|
149
|
+
* Close the RPC connection
|
|
150
|
+
*/
|
|
151
|
+
$close: (error?: Error) => void;
|
|
152
|
+
/**
|
|
153
|
+
* Reject pending calls
|
|
154
|
+
*/
|
|
155
|
+
$rejectPendingCalls: (handler?: PendingCallHandler) => Promise<void>[];
|
|
156
|
+
/**
|
|
157
|
+
* Call the remote function and wait for the result.
|
|
158
|
+
* An alternative to directly calling the function
|
|
159
|
+
*/
|
|
160
|
+
$call: <K$1 extends keyof RemoteFunctions>(method: K$1, ...args: ArgumentsType<RemoteFunctions[K$1]>) => Promise<Awaited<ReturnType<RemoteFunctions[K$1]>>>;
|
|
161
|
+
/**
|
|
162
|
+
* Same as `$call`, but returns `undefined` if the function is not defined on the remote side.
|
|
163
|
+
*/
|
|
164
|
+
$callOptional: <K$1 extends keyof RemoteFunctions>(method: K$1, ...args: ArgumentsType<RemoteFunctions[K$1]>) => Promise<Awaited<ReturnType<RemoteFunctions[K$1]> | undefined>>;
|
|
165
|
+
/**
|
|
166
|
+
* Send event without asking for response
|
|
167
|
+
*/
|
|
168
|
+
$callEvent: <K$1 extends keyof RemoteFunctions>(method: K$1, ...args: ArgumentsType<RemoteFunctions[K$1]>) => Promise<void>;
|
|
169
|
+
/**
|
|
170
|
+
* Call the remote function with the raw options.
|
|
171
|
+
*/
|
|
172
|
+
$callRaw: (options: {
|
|
173
|
+
method: string;
|
|
174
|
+
args: unknown[];
|
|
175
|
+
event?: boolean;
|
|
176
|
+
optional?: boolean;
|
|
177
|
+
}) => Promise<Awaited<ReturnType<any>>[]>;
|
|
178
|
+
}
|
|
179
|
+
type ProxifiedRemoteFunctions<RemoteFunctions extends object = Record<string, unknown>> = { [K in keyof RemoteFunctions]: BirpcFn<RemoteFunctions[K]> };
|
|
180
|
+
type BirpcReturn<RemoteFunctions extends object = Record<string, unknown>, LocalFunctions extends object = Record<string, unknown>, Proxify extends boolean = true> = Proxify extends true ? ProxifiedRemoteFunctions<RemoteFunctions> & BirpcReturnBuiltin<RemoteFunctions, LocalFunctions> : BirpcReturnBuiltin<RemoteFunctions, LocalFunctions>;
|
|
181
|
+
type PendingCallHandler = (options: Pick<PromiseEntry, 'method' | 'reject'>) => void | Promise<void>;
|
|
182
|
+
interface PromiseEntry {
|
|
183
|
+
resolve: (arg: any) => void;
|
|
184
|
+
reject: (error: any) => void;
|
|
185
|
+
method: string;
|
|
186
|
+
timeoutId?: ReturnType<typeof setTimeout>;
|
|
187
|
+
}
|
|
188
|
+
declare const setTimeout: typeof globalThis.setTimeout;
|
|
189
|
+
|
|
190
|
+
type WorkerRPC = BirpcReturn<RuntimeRPC, RunnerRPC>;
|
|
191
|
+
interface ContextTestEnvironment {
|
|
192
|
+
name: string;
|
|
193
|
+
options: Record<string, any> | null;
|
|
194
|
+
}
|
|
195
|
+
interface WorkerTestEnvironment {
|
|
196
|
+
name: string;
|
|
197
|
+
options: Record<string, any> | null;
|
|
198
|
+
}
|
|
199
|
+
type TestExecutionMethod = "run" | "collect";
|
|
200
|
+
interface WorkerExecuteContext {
|
|
201
|
+
files: FileSpecification[];
|
|
202
|
+
providedContext: Record<string, any>;
|
|
203
|
+
invalidates?: string[];
|
|
204
|
+
/** Exposed to test runner as `VITEST_WORKER_ID`. Value is unique per each isolated worker. */
|
|
205
|
+
workerId: number;
|
|
206
|
+
}
|
|
207
|
+
interface ContextRPC {
|
|
208
|
+
pool: string;
|
|
209
|
+
config: SerializedConfig;
|
|
210
|
+
projectName: string;
|
|
211
|
+
environment: WorkerTestEnvironment;
|
|
212
|
+
rpc: WorkerRPC;
|
|
213
|
+
files: FileSpecification[];
|
|
214
|
+
providedContext: Record<string, any>;
|
|
215
|
+
invalidates?: string[];
|
|
216
|
+
/** Exposed to test runner as `VITEST_WORKER_ID`. Value is unique per each isolated worker. */
|
|
217
|
+
workerId: number;
|
|
218
|
+
}
|
|
219
|
+
interface WorkerSetupContext {
|
|
220
|
+
environment: WorkerTestEnvironment;
|
|
221
|
+
pool: string;
|
|
222
|
+
config: SerializedConfig;
|
|
223
|
+
projectName: string;
|
|
224
|
+
rpc: WorkerRPC;
|
|
225
|
+
}
|
|
226
|
+
interface WorkerGlobalState {
|
|
227
|
+
ctx: ContextRPC;
|
|
228
|
+
config: SerializedConfig;
|
|
229
|
+
rpc: WorkerRPC;
|
|
230
|
+
current?: Task;
|
|
231
|
+
filepath?: string;
|
|
232
|
+
metaEnv: {
|
|
233
|
+
[key: string]: any;
|
|
234
|
+
BASE_URL: string;
|
|
235
|
+
MODE: string;
|
|
236
|
+
DEV: boolean;
|
|
237
|
+
PROD: boolean;
|
|
238
|
+
SSR: boolean;
|
|
239
|
+
};
|
|
240
|
+
environment: Environment;
|
|
241
|
+
evaluatedModules: EvaluatedModules;
|
|
242
|
+
resolvingModules: Set<string>;
|
|
243
|
+
moduleExecutionInfo: Map<string, any>;
|
|
244
|
+
onCancel: (listener: (reason: CancelReason) => unknown) => void;
|
|
245
|
+
onCleanup: (listener: () => unknown) => void;
|
|
246
|
+
providedContext: Record<string, any>;
|
|
247
|
+
durations: {
|
|
248
|
+
environment: number;
|
|
249
|
+
prepare: number;
|
|
250
|
+
};
|
|
251
|
+
onFilterStackTrace?: (trace: string) => string;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
export type { BirpcOptions as B, ContextRPC as C, TestExecutionMethod as T, WorkerGlobalState as W, WorkerSetupContext as a, BirpcReturn as b, ContextTestEnvironment as c, WorkerExecuteContext as d, WorkerTestEnvironment as e };
|
package/dist/cli.js
CHANGED
package/dist/config.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { HookHandler, ConfigEnv, UserConfig } from 'vite';
|
|
2
2
|
export { ConfigEnv, Plugin, UserConfig as ViteUserConfig, mergeConfig } from 'vite';
|
|
3
|
-
import { I as InlineConfig, c as CoverageV8Options, R as ResolvedCoverageOptions, U as UserWorkspaceConfig, d as UserProjectConfigFn, e as UserProjectConfigExport } from './chunks/reporters.d.
|
|
4
|
-
export { b as TestProjectConfiguration, g as TestProjectInlineConfiguration, f as TestUserConfig, W as WatcherTriggerPattern } from './chunks/reporters.d.
|
|
5
|
-
import { V as VitestPluginContext } from './chunks/plugin.d.
|
|
3
|
+
import { I as InlineConfig, c as CoverageV8Options, R as ResolvedCoverageOptions, U as UserWorkspaceConfig, d as UserProjectConfigFn, e as UserProjectConfigExport } from './chunks/reporters.d.Rsi0PyxX.js';
|
|
4
|
+
export { b as TestProjectConfiguration, g as TestProjectInlineConfiguration, f as TestUserConfig, W as WatcherTriggerPattern } from './chunks/reporters.d.Rsi0PyxX.js';
|
|
5
|
+
import { V as VitestPluginContext } from './chunks/plugin.d.v1sC_bv1.js';
|
|
6
6
|
import { F as FakeTimerInstallOpts } from './chunks/config.d.CzIjkicf.js';
|
|
7
7
|
import '@vitest/runner';
|
|
8
8
|
import '@vitest/utils';
|
|
@@ -11,8 +11,8 @@ import '@vitest/snapshot';
|
|
|
11
11
|
import 'vite/module-runner';
|
|
12
12
|
import './chunks/traces.d.402V_yFI.js';
|
|
13
13
|
import 'node:stream';
|
|
14
|
-
import './chunks/browser.d.
|
|
15
|
-
import './chunks/worker.d.
|
|
14
|
+
import './chunks/browser.d.Bz3lxTX-.js';
|
|
15
|
+
import './chunks/worker.d.5JNaocaN.js';
|
|
16
16
|
import './chunks/environment.d.CrsxCzP1.js';
|
|
17
17
|
import '@vitest/mocker';
|
|
18
18
|
import '@vitest/utils/source-map';
|
package/dist/coverage.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { R as ResolvedCoverageOptions, V as Vitest, C as CoverageMap, a as ReportContext } from './chunks/reporters.d.
|
|
1
|
+
import { R as ResolvedCoverageOptions, V as Vitest, C as CoverageMap, a as ReportContext } from './chunks/reporters.d.Rsi0PyxX.js';
|
|
2
2
|
import { TransformResult } from 'vite';
|
|
3
3
|
import { A as AfterSuiteRunMeta } from './chunks/rpc.d.RH3apGEf.js';
|
|
4
4
|
import '@vitest/runner';
|
|
5
5
|
import '@vitest/utils';
|
|
6
6
|
import 'node:stream';
|
|
7
|
-
import './chunks/browser.d.
|
|
8
|
-
import './chunks/worker.d.
|
|
7
|
+
import './chunks/browser.d.Bz3lxTX-.js';
|
|
8
|
+
import './chunks/worker.d.5JNaocaN.js';
|
|
9
9
|
import 'vite/module-runner';
|
|
10
10
|
import './chunks/config.d.CzIjkicf.js';
|
|
11
11
|
import '@vitest/pretty-format';
|
package/dist/coverage.js
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { M as ModuleDefinitionDurationsDiagnostic, U as UntrackedModuleDefinitionDiagnostic, S as SerializedTestSpecification, a as ModuleDefinitionDiagnostic, b as ModuleDefinitionLocation, c as SourceModuleDiagnostic, d as SourceModuleLocations } from './chunks/browser.d.
|
|
2
|
-
export { B as BrowserTesterOptions } from './chunks/browser.d.
|
|
1
|
+
import { M as ModuleDefinitionDurationsDiagnostic, U as UntrackedModuleDefinitionDiagnostic, S as SerializedTestSpecification, a as ModuleDefinitionDiagnostic, b as ModuleDefinitionLocation, c as SourceModuleDiagnostic, d as SourceModuleLocations } from './chunks/browser.d.Bz3lxTX-.js';
|
|
2
|
+
export { B as BrowserTesterOptions } from './chunks/browser.d.Bz3lxTX-.js';
|
|
3
3
|
import './chunks/global.d.B15mdLcR.js';
|
|
4
4
|
import { File, TestAnnotation, TestArtifact, TaskResultPack, TaskEventPack, Test, TaskPopulated } from '@vitest/runner';
|
|
5
5
|
export { CancelReason, ImportDuration, OnTestFailedHandler, OnTestFinishedHandler, RunMode, Task as RunnerTask, TaskBase as RunnerTaskBase, TaskEventPack as RunnerTaskEventPack, TaskResult as RunnerTaskResult, TaskResultPack as RunnerTaskResultPack, Test as RunnerTestCase, File as RunnerTestFile, Suite as RunnerTestSuite, SuiteAPI, SuiteCollector, SuiteFactory, TaskCustomOptions, TaskMeta, TaskState, TestAPI, TestAnnotation, TestAnnotationArtifact, TestArtifact, TestArtifactBase, TestArtifactLocation, TestArtifactRegistry, TestAttachment, TestContext, TestFunction, TestOptions, afterAll, afterEach, beforeAll, beforeEach, describe, it, onTestFailed, onTestFinished, recordArtifact, suite, test } from '@vitest/runner';
|
|
6
6
|
import { Awaitable } from '@vitest/utils';
|
|
7
7
|
export { ParsedStack, SerializedError, TestError } from '@vitest/utils';
|
|
8
|
-
import { b as BirpcReturn } from './chunks/worker.d.
|
|
9
|
-
export { C as ContextRPC, c as ContextTestEnvironment, T as TestExecutionMethod, W as WorkerGlobalState } from './chunks/worker.d.
|
|
8
|
+
import { b as BirpcReturn } from './chunks/worker.d.5JNaocaN.js';
|
|
9
|
+
export { C as ContextRPC, c as ContextTestEnvironment, T as TestExecutionMethod, W as WorkerGlobalState } from './chunks/worker.d.5JNaocaN.js';
|
|
10
10
|
import { S as SerializedConfig, F as FakeTimerInstallOpts, R as RuntimeOptions } from './chunks/config.d.CzIjkicf.js';
|
|
11
11
|
export { b as RuntimeConfig, a as SerializedCoverageConfig } from './chunks/config.d.CzIjkicf.js';
|
|
12
12
|
import { U as UserConsoleLog, L as LabelColor, M as ModuleGraphData, P as ProvidedContext } from './chunks/rpc.d.RH3apGEf.js';
|
package/dist/module-evaluator.js
CHANGED
|
@@ -194,19 +194,11 @@ class VitestModuleEvaluator {
|
|
|
194
194
|
importer
|
|
195
195
|
});
|
|
196
196
|
try {
|
|
197
|
-
|
|
198
|
-
const dynamicRequest = async (dep, options) => {
|
|
199
|
-
dep = String(dep);
|
|
200
|
-
// TODO: support more edge cases?
|
|
201
|
-
// vite doesn't support dynamic modules by design, but we have to
|
|
202
|
-
if (dep[0] === "#") return context[ssrDynamicImportKey](wrapId(dep), options);
|
|
203
|
-
return context[ssrDynamicImportKey](dep, options);
|
|
204
|
-
};
|
|
205
|
-
await initModule(
|
|
197
|
+
await (this.vm ? vm.runInContext(wrappedCode, this.vm.context, options) : vm.runInThisContext(wrappedCode, options))(
|
|
206
198
|
context[ssrModuleExportsKey],
|
|
207
199
|
context[ssrImportMetaKey],
|
|
208
200
|
context[ssrImportKey],
|
|
209
|
-
|
|
201
|
+
context[ssrDynamicImportKey],
|
|
210
202
|
context[ssrExportAllKey],
|
|
211
203
|
// vite 7 support, remove when vite 7+ is supported
|
|
212
204
|
context.__vite_ssr_exportName__ || ((name, getter) => Object.defineProperty(exportsObject, name, {
|
package/dist/module-runner.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { VitestModuleEvaluator } from './module-evaluator.js';
|
|
2
|
-
export { a as VITEST_VM_CONTEXT_SYMBOL, V as VitestModuleRunner, s as startVitestModuleRunner } from './chunks/startModuleRunner.
|
|
2
|
+
export { a as VITEST_VM_CONTEXT_SYMBOL, V as VitestModuleRunner, s as startVitestModuleRunner } from './chunks/startModuleRunner.DpqpB8k3.js';
|
|
3
3
|
export { g as getWorkerState } from './chunks/utils.DvEY5TfP.js';
|
|
4
4
|
import 'node:module';
|
|
5
5
|
import 'node:url';
|
|
@@ -9,7 +9,7 @@ import 'vite/module-runner';
|
|
|
9
9
|
import './chunks/traces.U4xDYhzZ.js';
|
|
10
10
|
import 'node:fs';
|
|
11
11
|
import '@vitest/utils/helpers';
|
|
12
|
-
import './chunks/modules.
|
|
12
|
+
import './chunks/modules.BJuCwlRJ.js';
|
|
13
13
|
import './path.js';
|
|
14
14
|
import 'node:path';
|
|
15
15
|
import '@vitest/utils/serialize';
|
package/dist/node.d.ts
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import * as vite from 'vite';
|
|
2
|
-
import { InlineConfig, UserConfig as UserConfig$1, Plugin, ResolvedConfig as ResolvedConfig$1, LogLevel, LoggerOptions, Logger as Logger$1 } from 'vite';
|
|
2
|
+
import { InlineConfig, UserConfig as UserConfig$1, Plugin, ResolvedConfig as ResolvedConfig$1, ViteDevServer, LogLevel, LoggerOptions, Logger as Logger$1 } from 'vite';
|
|
3
3
|
export { vite as Vite };
|
|
4
|
-
export { esbuildVersion, isCSSRequest,
|
|
4
|
+
export { esbuildVersion, isCSSRequest, isFileLoadingAllowed, parseAst, parseAstAsync, rollupVersion, version as viteVersion } from 'vite';
|
|
5
5
|
import { IncomingMessage } from 'node:http';
|
|
6
|
-
import { h as ResolvedConfig, f as UserConfig, i as VitestRunMode, j as VitestOptions, V as Vitest, A as ApiConfig, k as TestSpecification, T as TestProject, P as PoolWorker, l as PoolOptions, m as WorkerRequest, n as TestSequencer, L as Logger } from './chunks/reporters.d.
|
|
7
|
-
export { at as BaseCoverageOptions, Y as BenchmarkUserOptions, Z as BrowserBuiltinProvider, $ as BrowserCommand, a0 as BrowserCommandContext, a1 as BrowserConfigOptions, a2 as BrowserInstanceOption, a3 as BrowserModuleMocker, a4 as BrowserOrchestrator, a5 as BrowserProvider, a6 as BrowserProviderOption, a7 as BrowserScript, a8 as BrowserServerFactory, a9 as BrowserServerOptions, aa as BrowserServerState, ab as BrowserServerStateSession, ai as BuiltinEnvironment, ac as CDPSession, aj as CSSModuleScopeStrategy, au as CoverageIstanbulOptions, av as CoverageOptions, aw as CoverageProvider, ax as CoverageProviderModule, ay as CoverageReporter, c as CoverageV8Options, az as CustomProviderOptions, ak as DepsOptimizationOptions, al as EnvironmentOptions, H as HTMLOptions, I as InlineConfig, t as JUnitOptions, J as JsonOptions, M as ModuleDiagnostic, O as OnServerRestartHandler, o as OnTestsRerunHandler, ad as ParentProjectBrowser, am as Pool, q as PoolRunnerInitializer, r as PoolTask, ae as ProjectBrowser, an as ProjectConfig, a as ReportContext, aB as ReportedHookContext, aC as Reporter, ap as ResolveSnapshotPathHandler, aq as ResolveSnapshotPathHandlerContext, af as ResolvedBrowserOptions, R as ResolvedCoverageOptions, ao as ResolvedProjectConfig, S as SerializedTestProject, u as TaskOptions, v as TestCase, w as TestCollection, x as TestDiagnostic, y as TestModule, z as TestModuleState, B as TestResult, D as TestResultFailed, E as TestResultPassed, F as TestResultSkipped, aD as TestRunEndReason, aA as TestRunResult, X as TestSequencerConstructor, G as TestState, K as TestSuite, N as TestSuiteState, ag as ToMatchScreenshotComparators, ah as ToMatchScreenshotOptions, ar as TypecheckConfig, U as UserWorkspaceConfig, as as VitestEnvironment, p as VitestPackageInstaller, W as WatcherTriggerPattern, s as WorkerResponse, _ as _BrowserNames, Q as experimental_getRunnerTask } from './chunks/reporters.d.
|
|
8
|
-
export { C as CacheKeyIdGenerator, a as CacheKeyIdGeneratorContext, V as VitestPluginContext } from './chunks/plugin.d.
|
|
6
|
+
import { h as ResolvedConfig, f as UserConfig, i as VitestRunMode, j as VitestOptions, V as Vitest, A as ApiConfig, k as TestSpecification, T as TestProject, P as PoolWorker, l as PoolOptions, m as WorkerRequest, n as TestSequencer, L as Logger } from './chunks/reporters.d.Rsi0PyxX.js';
|
|
7
|
+
export { at as BaseCoverageOptions, Y as BenchmarkUserOptions, Z as BrowserBuiltinProvider, $ as BrowserCommand, a0 as BrowserCommandContext, a1 as BrowserConfigOptions, a2 as BrowserInstanceOption, a3 as BrowserModuleMocker, a4 as BrowserOrchestrator, a5 as BrowserProvider, a6 as BrowserProviderOption, a7 as BrowserScript, a8 as BrowserServerFactory, a9 as BrowserServerOptions, aa as BrowserServerState, ab as BrowserServerStateSession, ai as BuiltinEnvironment, ac as CDPSession, aj as CSSModuleScopeStrategy, au as CoverageIstanbulOptions, av as CoverageOptions, aw as CoverageProvider, ax as CoverageProviderModule, ay as CoverageReporter, c as CoverageV8Options, az as CustomProviderOptions, ak as DepsOptimizationOptions, al as EnvironmentOptions, H as HTMLOptions, I as InlineConfig, t as JUnitOptions, J as JsonOptions, M as ModuleDiagnostic, O as OnServerRestartHandler, o as OnTestsRerunHandler, ad as ParentProjectBrowser, am as Pool, q as PoolRunnerInitializer, r as PoolTask, ae as ProjectBrowser, an as ProjectConfig, a as ReportContext, aB as ReportedHookContext, aC as Reporter, ap as ResolveSnapshotPathHandler, aq as ResolveSnapshotPathHandlerContext, af as ResolvedBrowserOptions, R as ResolvedCoverageOptions, ao as ResolvedProjectConfig, S as SerializedTestProject, u as TaskOptions, v as TestCase, w as TestCollection, x as TestDiagnostic, y as TestModule, z as TestModuleState, B as TestResult, D as TestResultFailed, E as TestResultPassed, F as TestResultSkipped, aD as TestRunEndReason, aA as TestRunResult, X as TestSequencerConstructor, G as TestState, K as TestSuite, N as TestSuiteState, ag as ToMatchScreenshotComparators, ah as ToMatchScreenshotOptions, ar as TypecheckConfig, U as UserWorkspaceConfig, as as VitestEnvironment, p as VitestPackageInstaller, W as WatcherTriggerPattern, s as WorkerResponse, _ as _BrowserNames, Q as experimental_getRunnerTask } from './chunks/reporters.d.Rsi0PyxX.js';
|
|
8
|
+
export { C as CacheKeyIdGenerator, a as CacheKeyIdGeneratorContext, V as VitestPluginContext } from './chunks/plugin.d.v1sC_bv1.js';
|
|
9
9
|
import { Awaitable } from '@vitest/utils';
|
|
10
10
|
export { SerializedError } from '@vitest/utils';
|
|
11
11
|
import { R as RuntimeRPC } from './chunks/rpc.d.RH3apGEf.js';
|
|
12
12
|
import { Writable } from 'node:stream';
|
|
13
|
-
import { C as ContextRPC } from './chunks/worker.d.
|
|
14
|
-
export { T as TestExecutionType } from './chunks/worker.d.
|
|
13
|
+
import { C as ContextRPC } from './chunks/worker.d.5JNaocaN.js';
|
|
14
|
+
export { T as TestExecutionType } from './chunks/worker.d.5JNaocaN.js';
|
|
15
15
|
import { Debugger } from 'obug';
|
|
16
16
|
import './chunks/global.d.B15mdLcR.js';
|
|
17
17
|
export { Task as RunnerTask, TaskResult as RunnerTaskResult, TaskResultPack as RunnerTaskResultPack, Test as RunnerTestCase, File as RunnerTestFile, Suite as RunnerTestSuite, SequenceHooks, SequenceSetupFiles } from '@vitest/runner';
|
|
18
18
|
export { b as RuntimeConfig } from './chunks/config.d.CzIjkicf.js';
|
|
19
19
|
export { generateFileHash } from '@vitest/runner/utils';
|
|
20
|
-
import './chunks/browser.d.
|
|
20
|
+
import './chunks/browser.d.Bz3lxTX-.js';
|
|
21
21
|
import '@vitest/mocker';
|
|
22
22
|
import '@vitest/utils/source-map';
|
|
23
23
|
import 'vitest/browser';
|
|
@@ -225,6 +225,13 @@ declare function registerConsoleShortcuts(ctx: Vitest, stdin: NodeJS.ReadStream
|
|
|
225
225
|
|
|
226
226
|
interface WorkerContext extends ContextRPC {}
|
|
227
227
|
|
|
228
|
+
/**
|
|
229
|
+
* Check if the url is allowed to be served, via the `server.fs` config.
|
|
230
|
+
* @deprecated Use the `isFileLoadingAllowed` function instead.
|
|
231
|
+
*/
|
|
232
|
+
declare function isFileServingAllowed(config: ResolvedConfig$1, url: string): boolean;
|
|
233
|
+
declare function isFileServingAllowed(url: string, server: ViteDevServer): boolean;
|
|
234
|
+
|
|
228
235
|
declare function createViteLogger(console: Logger, level?: LogLevel, options?: LoggerOptions): Logger$1;
|
|
229
236
|
|
|
230
237
|
declare const rootDir: string;
|
|
@@ -238,5 +245,5 @@ declare const createViteServer: typeof vite.createServer;
|
|
|
238
245
|
|
|
239
246
|
declare const rolldownVersion: string | undefined;
|
|
240
247
|
|
|
241
|
-
export { ApiConfig, BaseSequencer, ForksPoolWorker, GitNotFoundError, PoolOptions, PoolWorker, ResolvedConfig, TestProject, TestSequencer, TestSpecification, UserConfig as TestUserConfig, FilesNotFoundError as TestsNotFoundError, ThreadsPoolWorker, TypecheckPoolWorker, Vitest, VitestOptions, VitestPlugin, VitestRunMode, VmForksPoolWorker, VmThreadsPoolWorker, WorkerRequest, createDebugger, createMethodsRPC, createViteLogger, createViteServer, createVitest, distDir, escapeTestName, getFilePoolName, isValidApiRequest, parseCLI, registerConsoleShortcuts, resolveApiServerConfig, resolveConfig, resolveFsAllow, rolldownVersion, rootDir, startVitest, version };
|
|
248
|
+
export { ApiConfig, BaseSequencer, ForksPoolWorker, GitNotFoundError, PoolOptions, PoolWorker, ResolvedConfig, TestProject, TestSequencer, TestSpecification, UserConfig as TestUserConfig, FilesNotFoundError as TestsNotFoundError, ThreadsPoolWorker, TypecheckPoolWorker, Vitest, VitestOptions, VitestPlugin, VitestRunMode, VmForksPoolWorker, VmThreadsPoolWorker, WorkerRequest, createDebugger, createMethodsRPC, createViteLogger, createViteServer, createVitest, distDir, escapeTestName, getFilePoolName, isFileServingAllowed, isValidApiRequest, parseCLI, registerConsoleShortcuts, resolveApiServerConfig, resolveConfig, resolveFsAllow, rolldownVersion, rootDir, startVitest, version };
|
|
242
249
|
export type { CliOptions, CliParseOptions, ProcessPool, CollectLineNumbers as TypeCheckCollectLineNumbers, CollectLines as TypeCheckCollectLines, Context as TypeCheckContext, TscErrorInfo as TypeCheckErrorInfo, RawErrsMap as TypeCheckRawErrorsMap, RootAndTarget as TypeCheckRootAndTarget, WorkerContext };
|
package/dist/node.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as vite from 'vite';
|
|
2
2
|
import { resolveConfig as resolveConfig$1, mergeConfig } from 'vite';
|
|
3
|
-
export { esbuildVersion, isCSSRequest,
|
|
4
|
-
import { V as Vitest, a as VitestPlugin } from './chunks/cli-api.
|
|
5
|
-
export { f as ForksPoolWorker, G as GitNotFoundError, F as TestsNotFoundError, T as ThreadsPoolWorker, h as TypecheckPoolWorker, b as VitestPackageInstaller, j as VmForksPoolWorker, k as VmThreadsPoolWorker,
|
|
6
|
-
export { p as parseCLI } from './chunks/cac.
|
|
7
|
-
import { r as resolveConfig$2 } from './chunks/coverage.
|
|
8
|
-
export { b as BaseSequencer, a as resolveApiServerConfig } from './chunks/coverage.
|
|
3
|
+
export { esbuildVersion, isCSSRequest, isFileLoadingAllowed, parseAst, parseAstAsync, rollupVersion, version as viteVersion } from 'vite';
|
|
4
|
+
import { V as Vitest, a as VitestPlugin } from './chunks/cli-api.BKg19Fvw.js';
|
|
5
|
+
export { f as ForksPoolWorker, G as GitNotFoundError, F as TestsNotFoundError, T as ThreadsPoolWorker, h as TypecheckPoolWorker, b as VitestPackageInstaller, j as VmForksPoolWorker, k as VmThreadsPoolWorker, p as createDebugger, d as createMethodsRPC, o as createViteLogger, c as createVitest, e as escapeTestName, l as experimental_getRunnerTask, g as getFilePoolName, n as isFileServingAllowed, i as isValidApiRequest, m as registerConsoleShortcuts, r as resolveFsAllow, s as startVitest } from './chunks/cli-api.BKg19Fvw.js';
|
|
6
|
+
export { p as parseCLI } from './chunks/cac.BGonGPac.js';
|
|
7
|
+
import { r as resolveConfig$2 } from './chunks/coverage.BuJUwVtg.js';
|
|
8
|
+
export { b as BaseSequencer, a as resolveApiServerConfig } from './chunks/coverage.BuJUwVtg.js';
|
|
9
9
|
import { slash, deepClone } from '@vitest/utils/helpers';
|
|
10
10
|
import { a as any } from './chunks/index.D4KonVSU.js';
|
|
11
11
|
import { resolve } from 'pathe';
|
|
@@ -18,7 +18,7 @@ import 'node:path';
|
|
|
18
18
|
import 'node:os';
|
|
19
19
|
import '@vitest/snapshot/manager';
|
|
20
20
|
import 'node:perf_hooks';
|
|
21
|
-
import './chunks/index.
|
|
21
|
+
import './chunks/index.Chj8NDwU.js';
|
|
22
22
|
import './chunks/index.456_DGfR.js';
|
|
23
23
|
import 'node:fs/promises';
|
|
24
24
|
import '@vitest/utils/source-map';
|
|
@@ -52,7 +52,7 @@ import '@vitest/utils/highlight';
|
|
|
52
52
|
import 'node:url';
|
|
53
53
|
import 'node:tty';
|
|
54
54
|
import 'node:events';
|
|
55
|
-
import './chunks/modules.
|
|
55
|
+
import './chunks/modules.BJuCwlRJ.js';
|
|
56
56
|
import 'node:child_process';
|
|
57
57
|
import 'node:worker_threads';
|
|
58
58
|
import 'picomatch';
|
package/dist/reporters.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { aR as BaseReporter, aS as BenchmarkBuiltinReporters, aE as BenchmarkReporter, aF as BenchmarkReportsMap, aT as BuiltinReporterOptions, aU as BuiltinReporters, aG as DefaultReporter, aH as DotReporter, aI as GithubActionsReporter, aJ as HangingProcessReporter, aL as JUnitReporter, aV as JsonAssertionResult, aK as JsonReporter, aW as JsonTestResult, aX as JsonTestResults, aB as ReportedHookContext, aC as Reporter, aM as ReportersMap, aN as TapFlatReporter, aO as TapReporter, aD as TestRunEndReason, aP as VerboseBenchmarkReporter, aQ as VerboseReporter } from './chunks/reporters.d.
|
|
1
|
+
export { aR as BaseReporter, aS as BenchmarkBuiltinReporters, aE as BenchmarkReporter, aF as BenchmarkReportsMap, aT as BuiltinReporterOptions, aU as BuiltinReporters, aG as DefaultReporter, aH as DotReporter, aI as GithubActionsReporter, aJ as HangingProcessReporter, aL as JUnitReporter, aV as JsonAssertionResult, aK as JsonReporter, aW as JsonTestResult, aX as JsonTestResults, aB as ReportedHookContext, aC as Reporter, aM as ReportersMap, aN as TapFlatReporter, aO as TapReporter, aD as TestRunEndReason, aP as VerboseBenchmarkReporter, aQ as VerboseReporter } from './chunks/reporters.d.Rsi0PyxX.js';
|
|
2
2
|
import '@vitest/runner';
|
|
3
3
|
import '@vitest/utils';
|
|
4
4
|
import './chunks/rpc.d.RH3apGEf.js';
|
|
@@ -7,8 +7,8 @@ import 'vite/module-runner';
|
|
|
7
7
|
import './chunks/traces.d.402V_yFI.js';
|
|
8
8
|
import 'node:stream';
|
|
9
9
|
import 'vite';
|
|
10
|
-
import './chunks/browser.d.
|
|
11
|
-
import './chunks/worker.d.
|
|
10
|
+
import './chunks/browser.d.Bz3lxTX-.js';
|
|
11
|
+
import './chunks/worker.d.5JNaocaN.js';
|
|
12
12
|
import './chunks/config.d.CzIjkicf.js';
|
|
13
13
|
import '@vitest/pretty-format';
|
|
14
14
|
import '@vitest/utils/diff';
|
package/dist/runners.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { N as NodeBenchmarkRunner, V as VitestTestRunner } from './chunks/test.
|
|
1
|
+
export { N as NodeBenchmarkRunner, V as VitestTestRunner } from './chunks/test.B8ej_ZHS.js';
|
|
2
2
|
import '@vitest/runner';
|
|
3
3
|
import '@vitest/utils/helpers';
|
|
4
4
|
import '@vitest/utils/timers';
|
|
@@ -15,5 +15,5 @@ import '@vitest/utils/offset';
|
|
|
15
15
|
import '@vitest/utils/source-map';
|
|
16
16
|
import './chunks/_commonjsHelpers.D26ty3Ew.js';
|
|
17
17
|
import './chunks/date.Bq6ZW5rf.js';
|
|
18
|
-
import './chunks/rpc.
|
|
19
|
-
import './chunks/index.
|
|
18
|
+
import './chunks/rpc.BoxB0q7B.js';
|
|
19
|
+
import './chunks/index.Chj8NDwU.js';
|
package/dist/worker.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { W as WorkerGlobalState,
|
|
1
|
+
import { W as WorkerGlobalState, a as WorkerSetupContext, B as BirpcOptions } from './chunks/worker.d.5JNaocaN.js';
|
|
2
2
|
import { T as Traces } from './chunks/traces.d.402V_yFI.js';
|
|
3
3
|
import { Awaitable } from '@vitest/utils';
|
|
4
4
|
import { R as RuntimeRPC } from './chunks/rpc.d.RH3apGEf.js';
|
|
@@ -10,6 +10,8 @@ import '@vitest/snapshot';
|
|
|
10
10
|
import '@vitest/utils/diff';
|
|
11
11
|
import './chunks/environment.d.CrsxCzP1.js';
|
|
12
12
|
|
|
13
|
+
/** @experimental */
|
|
14
|
+
declare function setupEnvironment(context: WorkerSetupContext): Promise<() => Promise<void>>;
|
|
13
15
|
/** @experimental */
|
|
14
16
|
declare function runBaseTests(method: "run" | "collect", state: WorkerGlobalState, traces: Traces): Promise<void>;
|
|
15
17
|
|
|
@@ -26,4 +28,4 @@ interface Options extends VitestWorker {
|
|
|
26
28
|
/** @experimental */
|
|
27
29
|
declare function init(worker: Options): void;
|
|
28
30
|
|
|
29
|
-
export { init, runBaseTests };
|
|
31
|
+
export { init, runBaseTests, setupEnvironment };
|
package/dist/worker.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
export { r as runBaseTests } from './chunks/base.
|
|
2
|
-
export { i as init } from './chunks/init.
|
|
1
|
+
export { r as runBaseTests, s as setupEnvironment } from './chunks/base.Bin-9uYm.js';
|
|
2
|
+
export { i as init } from './chunks/init.KmQZdqFg.js';
|
|
3
3
|
import 'node:vm';
|
|
4
4
|
import '@vitest/spy';
|
|
5
|
-
import './chunks/index.
|
|
5
|
+
import './chunks/index.6Qv1eEA6.js';
|
|
6
6
|
import '@vitest/expect';
|
|
7
7
|
import './chunks/setup-common.Cm-kSBVi.js';
|
|
8
8
|
import './chunks/coverage.D_JHT54q.js';
|
|
9
9
|
import '@vitest/snapshot';
|
|
10
10
|
import '@vitest/utils/timers';
|
|
11
11
|
import './chunks/utils.DvEY5TfP.js';
|
|
12
|
-
import './chunks/rpc.
|
|
13
|
-
import './chunks/index.
|
|
14
|
-
import './chunks/test.
|
|
12
|
+
import './chunks/rpc.BoxB0q7B.js';
|
|
13
|
+
import './chunks/index.Chj8NDwU.js';
|
|
14
|
+
import './chunks/test.B8ej_ZHS.js';
|
|
15
15
|
import '@vitest/runner';
|
|
16
16
|
import '@vitest/utils/helpers';
|
|
17
17
|
import './chunks/benchmark.B3N2zMcH.js';
|
|
@@ -25,9 +25,9 @@ import './chunks/_commonjsHelpers.D26ty3Ew.js';
|
|
|
25
25
|
import './chunks/date.Bq6ZW5rf.js';
|
|
26
26
|
import './chunks/evaluatedModules.Dg1zASAC.js';
|
|
27
27
|
import 'vite/module-runner';
|
|
28
|
-
import './chunks/startModuleRunner.
|
|
28
|
+
import './chunks/startModuleRunner.DpqpB8k3.js';
|
|
29
29
|
import 'node:fs';
|
|
30
|
-
import './chunks/modules.
|
|
30
|
+
import './chunks/modules.BJuCwlRJ.js';
|
|
31
31
|
import 'node:module';
|
|
32
32
|
import 'node:url';
|
|
33
33
|
import './path.js';
|
package/dist/workers/forks.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { r as runBaseTests, s as setupEnvironment } from '../chunks/base.
|
|
2
|
-
import { w as workerInit } from '../chunks/init-forks.
|
|
1
|
+
import { r as runBaseTests, s as setupEnvironment } from '../chunks/base.Bin-9uYm.js';
|
|
2
|
+
import { w as workerInit } from '../chunks/init-forks.v9UONQS6.js';
|
|
3
3
|
import 'node:vm';
|
|
4
4
|
import '@vitest/spy';
|
|
5
|
-
import '../chunks/index.
|
|
5
|
+
import '../chunks/index.6Qv1eEA6.js';
|
|
6
6
|
import '@vitest/expect';
|
|
7
7
|
import '../chunks/setup-common.Cm-kSBVi.js';
|
|
8
8
|
import '../chunks/coverage.D_JHT54q.js';
|
|
9
9
|
import '@vitest/snapshot';
|
|
10
10
|
import '@vitest/utils/timers';
|
|
11
11
|
import '../chunks/utils.DvEY5TfP.js';
|
|
12
|
-
import '../chunks/rpc.
|
|
13
|
-
import '../chunks/index.
|
|
14
|
-
import '../chunks/test.
|
|
12
|
+
import '../chunks/rpc.BoxB0q7B.js';
|
|
13
|
+
import '../chunks/index.Chj8NDwU.js';
|
|
14
|
+
import '../chunks/test.B8ej_ZHS.js';
|
|
15
15
|
import '@vitest/runner';
|
|
16
16
|
import '@vitest/utils/helpers';
|
|
17
17
|
import '../chunks/benchmark.B3N2zMcH.js';
|
|
@@ -23,13 +23,13 @@ import '@vitest/utils/offset';
|
|
|
23
23
|
import '@vitest/utils/source-map';
|
|
24
24
|
import '../chunks/_commonjsHelpers.D26ty3Ew.js';
|
|
25
25
|
import '../chunks/date.Bq6ZW5rf.js';
|
|
26
|
-
import '../chunks/init.
|
|
26
|
+
import '../chunks/init.KmQZdqFg.js';
|
|
27
27
|
import 'node:fs';
|
|
28
28
|
import 'node:module';
|
|
29
29
|
import 'node:url';
|
|
30
30
|
import 'vite/module-runner';
|
|
31
|
-
import '../chunks/startModuleRunner.
|
|
32
|
-
import '../chunks/modules.
|
|
31
|
+
import '../chunks/startModuleRunner.DpqpB8k3.js';
|
|
32
|
+
import '../chunks/modules.BJuCwlRJ.js';
|
|
33
33
|
import '../path.js';
|
|
34
34
|
import 'node:path';
|
|
35
35
|
import '@vitest/utils/serialize';
|
|
@@ -5,17 +5,17 @@ import timersPromises from 'node:timers/promises';
|
|
|
5
5
|
import util from 'node:util';
|
|
6
6
|
import { startTests, collectTests } from '@vitest/runner';
|
|
7
7
|
import { KNOWN_ASSET_TYPES } from '@vitest/utils/constants';
|
|
8
|
-
import { s as setupChaiConfig, r as resolveTestRunner, a as resolveSnapshotEnvironment } from '../chunks/index.
|
|
8
|
+
import { s as setupChaiConfig, r as resolveTestRunner, a as resolveSnapshotEnvironment } from '../chunks/index.6Qv1eEA6.js';
|
|
9
9
|
import { c as setupCommonEnv, s as startCoverageInsideWorker, a as stopCoverageInsideWorker } from '../chunks/setup-common.Cm-kSBVi.js';
|
|
10
10
|
import { i as index } from '../chunks/index.Z5E_ObnR.js';
|
|
11
11
|
import { c as closeInspector } from '../chunks/inspector.CvyFGlXm.js';
|
|
12
12
|
import { g as getWorkerState } from '../chunks/utils.DvEY5TfP.js';
|
|
13
13
|
import { g as globalExpect } from '../chunks/vi.2VT5v0um.js';
|
|
14
14
|
import '@vitest/expect';
|
|
15
|
-
import '../chunks/rpc.
|
|
15
|
+
import '../chunks/rpc.BoxB0q7B.js';
|
|
16
16
|
import '@vitest/utils/timers';
|
|
17
|
-
import '../chunks/index.
|
|
18
|
-
import '../chunks/test.
|
|
17
|
+
import '../chunks/index.Chj8NDwU.js';
|
|
18
|
+
import '../chunks/test.B8ej_ZHS.js';
|
|
19
19
|
import '@vitest/utils/helpers';
|
|
20
20
|
import '../chunks/benchmark.B3N2zMcH.js';
|
|
21
21
|
import '@vitest/runner/utils';
|