vitest 4.0.8 → 4.0.10
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 +2 -2
- package/dist/browser.js +1 -1
- package/dist/chunks/_commonjsHelpers.D26ty3Ew.js +6 -0
- package/dist/chunks/{base.BgTO2qAg.js → base.BFVArrYW.js} +6 -6
- package/dist/chunks/{browser.d.DTTM2PTh.d.ts → browser.d.DnU_kh8a.d.ts} +1 -1
- package/dist/chunks/{cac.CfkWq8Qy.js → cac.D9CYcNPM.js} +7 -7
- package/dist/chunks/{cli-api.BQ-bjcRi.js → cli-api.RnIE1JbW.js} +65 -63
- package/dist/chunks/{coverage.NVjCOln1.js → coverage.BUlIqJrL.js} +11 -11
- package/dist/chunks/{creator.fzVyoMf3.js → creator.DU9qFjsW.js} +2 -2
- package/dist/chunks/{global.d.DVdCfKp5.d.ts → global.d.BQDgW9Pr.d.ts} +1 -1
- package/dist/chunks/{globals.DOh96BiR.js → globals.NLOzC_A5.js} +3 -3
- package/dist/chunks/{index.DAL392Ss.js → index.0kCJoeWi.js} +94 -75
- package/dist/chunks/{index.op2Re5rn.js → index.B8lJfb0J.js} +1 -1
- package/dist/chunks/{index.kotH7DY7.js → index.BYek7GgP.js} +5 -3
- package/dist/chunks/{index.Dc3xnDvT.js → index.D4KonVSU.js} +5 -5
- package/dist/chunks/{index.DIFZf73e.js → index.DZ-mI_Nm.js} +1 -1
- package/dist/chunks/{index.BY4-tcno.js → index.Dua7TZg_.js} +3 -3
- package/dist/chunks/{index.DfKyPFVi.js → index.QWbK7rHY.js} +9 -3
- package/dist/chunks/init-forks.BZSlxfwV.js +32 -0
- package/dist/chunks/{init-threads.Cm4OCIWA.js → init-threads.CwE2n-Bv.js} +1 -1
- package/dist/chunks/{init.DMDG-idf.js → init.Cz2kTB9a.js} +3 -3
- package/dist/chunks/{moduleRunner.d.CzOZ_4wC.d.ts → moduleRunner.d.BxT-OjLR.d.ts} +1 -1
- package/dist/chunks/{plugin.d.D4RrtywJ.d.ts → plugin.d.C6KrdvNG.d.ts} +1 -1
- package/dist/chunks/{reporters.d.Da1D1VbQ.d.ts → reporters.d.keG-yFSu.d.ts} +4 -3
- package/dist/chunks/{rpc.BUV7uWKJ.js → rpc.BytlcPfC.js} +1 -1
- package/dist/chunks/{setup-common.LGjNSzXp.js → setup-common.BOzbXE3x.js} +2 -2
- package/dist/chunks/{startModuleRunner.BOmUtLIO.js → startModuleRunner.DLjmA_wU.js} +9 -9
- package/dist/chunks/{test.ClrAtjMv.js → test.BPErLMrw.js} +2 -2
- package/dist/chunks/{vi.Bgcdy3bQ.js → vi.BiaV1qII.js} +8 -8
- package/dist/chunks/{vm.BIkCDs68.js → vm.wSHjz-et.js} +11 -11
- package/dist/chunks/{worker.d.DadbA89M.d.ts → worker.d.ZGohxCEd.d.ts} +44 -5
- package/dist/cli.js +2 -2
- package/dist/config.d.ts +5 -5
- package/dist/coverage.d.ts +3 -3
- package/dist/coverage.js +1 -1
- package/dist/environments.js +1 -1
- package/dist/index.d.ts +7 -7
- package/dist/index.js +3 -3
- package/dist/module-evaluator.d.ts +2 -2
- package/dist/module-evaluator.js +6 -6
- package/dist/module-runner.js +1 -1
- package/dist/node.d.ts +7 -7
- package/dist/node.js +12 -12
- package/dist/reporters.d.ts +3 -3
- package/dist/reporters.js +2 -2
- package/dist/runners.js +5 -5
- package/dist/worker.d.ts +1 -1
- package/dist/worker.js +12 -12
- package/dist/workers/forks.js +13 -14
- package/dist/workers/runVmTests.js +8 -8
- package/dist/workers/threads.js +13 -13
- package/dist/workers/vmForks.js +7 -8
- package/dist/workers/vmThreads.js +7 -7
- package/package.json +15 -15
- package/dist/chunks/_commonjsHelpers.BFTU3MAI.js +0 -7
- package/dist/chunks/init-forks.2hx7cf78.js +0 -65
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { fileURLToPath, pathToFileURL } from 'node:url';
|
|
2
2
|
import vm, { isContext, runInContext } from 'node:vm';
|
|
3
3
|
import { dirname, basename, extname, normalize, resolve } from 'pathe';
|
|
4
|
-
import { l as loadEnvironment } from './init.
|
|
4
|
+
import { l as loadEnvironment } from './init.Cz2kTB9a.js';
|
|
5
5
|
import { distDir } from '../path.js';
|
|
6
6
|
import { createCustomConsole } from './console.Cf-YriPC.js';
|
|
7
7
|
import fs from 'node:fs';
|
|
@@ -11,7 +11,7 @@ import { findNearestPackageData } from '@vitest/utils/resolver';
|
|
|
11
11
|
import { dirname as dirname$1 } from 'node:path';
|
|
12
12
|
import { CSS_LANGS_RE, KNOWN_ASSET_RE } from '@vitest/utils/constants';
|
|
13
13
|
import { getDefaultRequestStubs } from '../module-evaluator.js';
|
|
14
|
-
import { s as startVitestModuleRunner, c as createNodeImportMeta, a as VITEST_VM_CONTEXT_SYMBOL } from './startModuleRunner.
|
|
14
|
+
import { s as startVitestModuleRunner, c as createNodeImportMeta, a as VITEST_VM_CONTEXT_SYMBOL } from './startModuleRunner.DLjmA_wU.js';
|
|
15
15
|
import { p as provideWorkerState } from './utils.DvEY5TfP.js';
|
|
16
16
|
|
|
17
17
|
function interopCommonJsModule(interopDefault, mod) {
|
|
@@ -232,11 +232,11 @@ class CommonjsExecutor {
|
|
|
232
232
|
}
|
|
233
233
|
getCoreSyntheticModule(identifier) {
|
|
234
234
|
if (this.moduleCache.has(identifier)) return this.moduleCache.get(identifier);
|
|
235
|
-
const exports = this.require(identifier);
|
|
236
|
-
const keys = Object.keys(exports);
|
|
235
|
+
const exports$1 = this.require(identifier);
|
|
236
|
+
const keys = Object.keys(exports$1);
|
|
237
237
|
const module = new SyntheticModule([...keys, "default"], () => {
|
|
238
|
-
for (const key of keys) module.setExport(key, exports[key]);
|
|
239
|
-
module.setExport("default", exports);
|
|
238
|
+
for (const key of keys) module.setExport(key, exports$1[key]);
|
|
239
|
+
module.setExport("default", exports$1);
|
|
240
240
|
}, {
|
|
241
241
|
context: this.context,
|
|
242
242
|
identifier
|
|
@@ -246,9 +246,9 @@ class CommonjsExecutor {
|
|
|
246
246
|
}
|
|
247
247
|
getCjsSyntheticModule(path, identifier) {
|
|
248
248
|
if (this.moduleCache.has(identifier)) return this.moduleCache.get(identifier);
|
|
249
|
-
const exports = this.require(path);
|
|
249
|
+
const exports$1 = this.require(path);
|
|
250
250
|
// TODO: technically module should be parsed to find static exports, implement for strict mode in #2854
|
|
251
|
-
const { keys, moduleExports, defaultExport } = interopCommonJsModule(this.interopDefault, exports);
|
|
251
|
+
const { keys, moduleExports, defaultExport } = interopCommonJsModule(this.interopDefault, exports$1);
|
|
252
252
|
const module = new SyntheticModule([...keys, "default"], function() {
|
|
253
253
|
for (const key of keys) this.setExport(key, moduleExports[key]);
|
|
254
254
|
this.setExport("default", defaultExport);
|
|
@@ -391,12 +391,12 @@ class EsmExecutor {
|
|
|
391
391
|
const cached = this.moduleCache.get(identifier);
|
|
392
392
|
if (cached) return cached;
|
|
393
393
|
const wasmModule = await WebAssembly.compile(source);
|
|
394
|
-
const exports = WebAssembly.Module.exports(wasmModule);
|
|
394
|
+
const exports$1 = WebAssembly.Module.exports(wasmModule);
|
|
395
395
|
const imports = WebAssembly.Module.imports(wasmModule);
|
|
396
396
|
const moduleLookup = {};
|
|
397
397
|
for (const { module } of imports) if (moduleLookup[module] === void 0) moduleLookup[module] = await this.executor.resolveModule(module, identifier);
|
|
398
398
|
const evaluateModule = (module) => this.evaluateModule(module);
|
|
399
|
-
return new SyntheticModule(exports.map(({ name }) => name), async function() {
|
|
399
|
+
return new SyntheticModule(exports$1.map(({ name }) => name), async function() {
|
|
400
400
|
const importsObject = {};
|
|
401
401
|
for (const { module, name } of imports) {
|
|
402
402
|
if (!importsObject[module]) importsObject[module] = {};
|
|
@@ -404,7 +404,7 @@ class EsmExecutor {
|
|
|
404
404
|
importsObject[module][name] = moduleLookup[module].namespace[name];
|
|
405
405
|
}
|
|
406
406
|
const wasmInstance = new WebAssembly.Instance(wasmModule, importsObject);
|
|
407
|
-
for (const { name } of exports) this.setExport(name, wasmInstance.exports[name]);
|
|
407
|
+
for (const { name } of exports$1) this.setExport(name, wasmInstance.exports[name]);
|
|
408
408
|
}, {
|
|
409
409
|
context: this.context,
|
|
410
410
|
identifier
|
|
@@ -132,14 +132,49 @@ type BirpcFn<T> = PromisifyFn<T> & {
|
|
|
132
132
|
*/
|
|
133
133
|
asEvent: (...args: ArgumentsType<T>) => Promise<void>;
|
|
134
134
|
};
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
135
|
+
interface BirpcReturnBuiltin<RemoteFunctions, LocalFunctions = Record<string, never>> {
|
|
136
|
+
/**
|
|
137
|
+
* Raw functions object
|
|
138
|
+
*/
|
|
138
139
|
$functions: LocalFunctions;
|
|
140
|
+
/**
|
|
141
|
+
* Whether the RPC is closed
|
|
142
|
+
*/
|
|
143
|
+
readonly $closed: boolean;
|
|
144
|
+
/**
|
|
145
|
+
* Close the RPC connection
|
|
146
|
+
*/
|
|
139
147
|
$close: (error?: Error) => void;
|
|
140
|
-
|
|
148
|
+
/**
|
|
149
|
+
* Reject pending calls
|
|
150
|
+
*/
|
|
141
151
|
$rejectPendingCalls: (handler?: PendingCallHandler) => Promise<void>[];
|
|
142
|
-
|
|
152
|
+
/**
|
|
153
|
+
* Call the remote function and wait for the result.
|
|
154
|
+
* An alternative to directly calling the function
|
|
155
|
+
*/
|
|
156
|
+
$call: <K extends keyof RemoteFunctions>(method: K, ...args: ArgumentsType<RemoteFunctions[K]>) => Promise<Awaited<ReturnType<RemoteFunctions[K]>>>;
|
|
157
|
+
/**
|
|
158
|
+
* Same as `$call`, but returns `undefined` if the function is not defined on the remote side.
|
|
159
|
+
*/
|
|
160
|
+
$callOptional: <K extends keyof RemoteFunctions>(method: K, ...args: ArgumentsType<RemoteFunctions[K]>) => Promise<Awaited<ReturnType<RemoteFunctions[K]> | undefined>>;
|
|
161
|
+
/**
|
|
162
|
+
* Send event without asking for response
|
|
163
|
+
*/
|
|
164
|
+
$callEvent: <K extends keyof RemoteFunctions>(method: K, ...args: ArgumentsType<RemoteFunctions[K]>) => Promise<void>;
|
|
165
|
+
/**
|
|
166
|
+
* Call the remote function with the raw options.
|
|
167
|
+
*/
|
|
168
|
+
$callRaw: (options: {
|
|
169
|
+
method: string;
|
|
170
|
+
args: unknown[];
|
|
171
|
+
event?: boolean;
|
|
172
|
+
optional?: boolean;
|
|
173
|
+
}) => Promise<Awaited<ReturnType<any>>[]>;
|
|
174
|
+
}
|
|
175
|
+
type BirpcReturn<RemoteFunctions, LocalFunctions = Record<string, never>> = {
|
|
176
|
+
[K in keyof RemoteFunctions]: BirpcFn<RemoteFunctions[K]>;
|
|
177
|
+
} & BirpcReturnBuiltin<RemoteFunctions, LocalFunctions>;
|
|
143
178
|
type PendingCallHandler = (options: Pick<PromiseEntry, 'method' | 'reject'>) => void | Promise<void>;
|
|
144
179
|
interface PromiseEntry {
|
|
145
180
|
resolve: (arg: any) => void;
|
|
@@ -165,6 +200,10 @@ interface Request {
|
|
|
165
200
|
* Arguments
|
|
166
201
|
*/
|
|
167
202
|
a: any[];
|
|
203
|
+
/**
|
|
204
|
+
* Optional
|
|
205
|
+
*/
|
|
206
|
+
o?: boolean;
|
|
168
207
|
}
|
|
169
208
|
declare const setTimeout: typeof globalThis.setTimeout;
|
|
170
209
|
|
package/dist/cli.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { c as createCLI } from './chunks/cac.
|
|
1
|
+
import { c as createCLI } from './chunks/cac.D9CYcNPM.js';
|
|
2
2
|
import '@vitest/utils/helpers';
|
|
3
3
|
import 'events';
|
|
4
4
|
import 'pathe';
|
|
5
5
|
import 'tinyrainbow';
|
|
6
6
|
import './chunks/constants.D_Q9UYh-.js';
|
|
7
|
-
import './chunks/index.
|
|
7
|
+
import './chunks/index.BYek7GgP.js';
|
|
8
8
|
import 'node:fs';
|
|
9
9
|
import 'node:fs/promises';
|
|
10
10
|
import 'node:perf_hooks';
|
package/dist/config.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
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 { a 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.keG-yFSu.js';
|
|
4
|
+
export { a as TestProjectConfiguration, g as TestProjectInlineConfiguration, f as TestUserConfig, W as WatcherTriggerPattern } from './chunks/reporters.d.keG-yFSu.js';
|
|
5
|
+
import { V as VitestPluginContext } from './chunks/plugin.d.C6KrdvNG.js';
|
|
6
6
|
import { F as FakeTimerInstallOpts } from './chunks/config.d.BTfZNUu9.js';
|
|
7
7
|
import '@vitest/runner';
|
|
8
8
|
import '@vitest/utils';
|
|
9
|
-
import './chunks/worker.d.
|
|
9
|
+
import './chunks/worker.d.ZGohxCEd.js';
|
|
10
10
|
import 'vite/module-runner';
|
|
11
11
|
import './chunks/environment.d.CrsxCzP1.js';
|
|
12
12
|
import '@vitest/snapshot';
|
|
@@ -14,7 +14,7 @@ import 'node:stream';
|
|
|
14
14
|
import '@vitest/mocker';
|
|
15
15
|
import '@vitest/utils/source-map';
|
|
16
16
|
import 'vitest/browser';
|
|
17
|
-
import './chunks/browser.d.
|
|
17
|
+
import './chunks/browser.d.DnU_kh8a.js';
|
|
18
18
|
import '@vitest/pretty-format';
|
|
19
19
|
import '@vitest/utils/diff';
|
|
20
20
|
import '@vitest/expect';
|
package/dist/coverage.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { R as ResolvedCoverageOptions, V as Vitest, C as CoverageMap, b as ReportContext } from './chunks/reporters.d.
|
|
1
|
+
import { R as ResolvedCoverageOptions, V as Vitest, C as CoverageMap, b as ReportContext } from './chunks/reporters.d.keG-yFSu.js';
|
|
2
2
|
import { TransformResult } from 'vite';
|
|
3
|
-
import { A as AfterSuiteRunMeta } from './chunks/worker.d.
|
|
3
|
+
import { A as AfterSuiteRunMeta } from './chunks/worker.d.ZGohxCEd.js';
|
|
4
4
|
import '@vitest/runner';
|
|
5
5
|
import '@vitest/utils';
|
|
6
6
|
import 'node:stream';
|
|
@@ -11,7 +11,7 @@ import './chunks/config.d.BTfZNUu9.js';
|
|
|
11
11
|
import '@vitest/pretty-format';
|
|
12
12
|
import '@vitest/snapshot';
|
|
13
13
|
import '@vitest/utils/diff';
|
|
14
|
-
import './chunks/browser.d.
|
|
14
|
+
import './chunks/browser.d.DnU_kh8a.js';
|
|
15
15
|
import '@vitest/expect';
|
|
16
16
|
import 'vitest/optional-types.js';
|
|
17
17
|
import './chunks/benchmark.d.DAaHLpsq.js';
|
package/dist/coverage.js
CHANGED
package/dist/environments.js
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { S as SerializedTestSpecification } from './chunks/browser.d.
|
|
2
|
-
export { B as BrowserTesterOptions } from './chunks/browser.d.
|
|
3
|
-
import './chunks/global.d.
|
|
1
|
+
import { S as SerializedTestSpecification } from './chunks/browser.d.DnU_kh8a.js';
|
|
2
|
+
export { B as BrowserTesterOptions } from './chunks/browser.d.DnU_kh8a.js';
|
|
3
|
+
import './chunks/global.d.BQDgW9Pr.js';
|
|
4
4
|
import { File, TestAnnotation, TaskResultPack, TaskEventPack, 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, TestContext, TestFunction, TestOptions, afterAll, afterEach, beforeAll, beforeEach, describe, it, onTestFailed, onTestFinished, suite, test } from '@vitest/runner';
|
|
6
6
|
import { Awaitable } from '@vitest/utils';
|
|
7
7
|
export { ParsedStack, SerializedError, TestError } from '@vitest/utils';
|
|
8
|
-
import { U as UserConsoleLog, L as LabelColor, M as ModuleGraphData, b as BirpcReturn, P as ProvidedContext } from './chunks/worker.d.
|
|
9
|
-
export { A as AfterSuiteRunMeta, C as ContextRPC, d as ContextTestEnvironment, c as RunnerRPC, R as RuntimeRPC, T as TestExecutionMethod, W as WorkerGlobalState } from './chunks/worker.d.
|
|
8
|
+
import { U as UserConsoleLog, L as LabelColor, M as ModuleGraphData, b as BirpcReturn, P as ProvidedContext } from './chunks/worker.d.ZGohxCEd.js';
|
|
9
|
+
export { A as AfterSuiteRunMeta, C as ContextRPC, d as ContextTestEnvironment, c as RunnerRPC, R as RuntimeRPC, T as TestExecutionMethod, W as WorkerGlobalState } from './chunks/worker.d.ZGohxCEd.js';
|
|
10
10
|
import { S as SerializedConfig, F as FakeTimerInstallOpts, R as RuntimeOptions } from './chunks/config.d.BTfZNUu9.js';
|
|
11
11
|
export { b as RuntimeConfig, a as SerializedCoverageConfig } from './chunks/config.d.BTfZNUu9.js';
|
|
12
12
|
import { ExpectStatic } from '@vitest/expect';
|
|
@@ -67,12 +67,12 @@ interface WebSocketHandlers {
|
|
|
67
67
|
}
|
|
68
68
|
interface WebSocketEvents {
|
|
69
69
|
onCollected?: (files?: File[]) => Awaitable<void>;
|
|
70
|
-
onFinished?: (files: File[], errors: unknown[], coverage?: unknown) => Awaitable<void>;
|
|
70
|
+
onFinished?: (files: File[], errors: unknown[], coverage?: unknown, executionTime?: number) => Awaitable<void>;
|
|
71
71
|
onTestAnnotate?: (testId: string, annotation: TestAnnotation) => Awaitable<void>;
|
|
72
72
|
onTaskUpdate?: (packs: TaskResultPack[], events: TaskEventPack[]) => Awaitable<void>;
|
|
73
73
|
onUserConsoleLog?: (log: UserConsoleLog) => Awaitable<void>;
|
|
74
74
|
onPathsCollected?: (paths?: string[]) => Awaitable<void>;
|
|
75
|
-
onSpecsCollected?: (specs?: SerializedTestSpecification[]) => Awaitable<void>;
|
|
75
|
+
onSpecsCollected?: (specs?: SerializedTestSpecification[], startTime?: number) => Awaitable<void>;
|
|
76
76
|
onFinishedReportCoverage: () => void;
|
|
77
77
|
}
|
|
78
78
|
type WebSocketRPC = BirpcReturn<WebSocketEvents, WebSocketHandlers>;
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { b as assert, c as createExpect, g as expect, i as inject, s as should, v as vi, d as vitest } from './chunks/vi.
|
|
1
|
+
export { b as assert, c as createExpect, g as expect, i as inject, s as should, v as vi, d as vitest } from './chunks/vi.BiaV1qII.js';
|
|
2
2
|
export { b as bench } from './chunks/benchmark.B3N2zMcH.js';
|
|
3
3
|
export { V as EvaluatedModules } from './chunks/evaluatedModules.Dg1zASAC.js';
|
|
4
|
-
export { a as assertType } from './chunks/index.
|
|
4
|
+
export { a as assertType } from './chunks/index.DZ-mI_Nm.js';
|
|
5
5
|
export { expectTypeOf } from 'expect-type';
|
|
6
6
|
export { afterAll, afterEach, beforeAll, beforeEach, describe, it, onTestFailed, onTestFinished, suite, test } from '@vitest/runner';
|
|
7
7
|
export { chai } from '@vitest/expect';
|
|
@@ -14,7 +14,7 @@ import '@vitest/utils/helpers';
|
|
|
14
14
|
import '@vitest/spy';
|
|
15
15
|
import '@vitest/utils/offset';
|
|
16
16
|
import '@vitest/utils/source-map';
|
|
17
|
-
import './chunks/_commonjsHelpers.
|
|
17
|
+
import './chunks/_commonjsHelpers.D26ty3Ew.js';
|
|
18
18
|
import './chunks/date.Bq6ZW5rf.js';
|
|
19
19
|
import 'pathe';
|
|
20
20
|
import 'vite/module-runner';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import 'vite/module-runner';
|
|
2
|
-
export { b as VitestModuleEvaluator, a as VitestModuleEvaluatorOptions, c as createImportMetaEnvProxy, g as getDefaultRequestStubs, i as isPrimitive, u as unwrapId, w as wrapId } from './chunks/moduleRunner.d.
|
|
2
|
+
export { b as VitestModuleEvaluator, a as VitestModuleEvaluatorOptions, c as createImportMetaEnvProxy, g as getDefaultRequestStubs, i as isPrimitive, u as unwrapId, w as wrapId } from './chunks/moduleRunner.d.BxT-OjLR.js';
|
|
3
3
|
import 'node:vm';
|
|
4
4
|
import '@vitest/spy';
|
|
5
|
-
import './chunks/worker.d.
|
|
5
|
+
import './chunks/worker.d.ZGohxCEd.js';
|
|
6
6
|
import '@vitest/runner';
|
|
7
7
|
import './chunks/config.d.BTfZNUu9.js';
|
|
8
8
|
import '@vitest/pretty-format';
|
package/dist/module-evaluator.js
CHANGED
|
@@ -277,18 +277,18 @@ function getDefaultRequestStubs(context) {
|
|
|
277
277
|
const clientStub = vm.runInContext(`(defaultClient) => ({ ...defaultClient, updateStyle: ${updateStyle.toString()}, removeStyle: ${removeStyle.toString()} })`, context)(defaultClientStub);
|
|
278
278
|
return { "/@vite/client": clientStub };
|
|
279
279
|
}
|
|
280
|
-
function exportAll(exports, sourceModule) {
|
|
280
|
+
function exportAll(exports$1, sourceModule) {
|
|
281
281
|
// #1120 when a module exports itself it causes
|
|
282
282
|
// call stack error
|
|
283
|
-
if (exports === sourceModule) return;
|
|
283
|
+
if (exports$1 === sourceModule) return;
|
|
284
284
|
if (isPrimitive(sourceModule) || Array.isArray(sourceModule) || sourceModule instanceof Promise) return;
|
|
285
|
-
for (const key in sourceModule) if (key !== "default" && !(key in exports)) try {
|
|
286
|
-
defineExport(exports, key, () => sourceModule[key]);
|
|
285
|
+
for (const key in sourceModule) if (key !== "default" && !(key in exports$1)) try {
|
|
286
|
+
defineExport(exports$1, key, () => sourceModule[key]);
|
|
287
287
|
} catch {}
|
|
288
288
|
}
|
|
289
289
|
// keep consistency with Vite on how exports are defined
|
|
290
|
-
function defineExport(exports, key, value) {
|
|
291
|
-
Object.defineProperty(exports, key, {
|
|
290
|
+
function defineExport(exports$1, key, value) {
|
|
291
|
+
Object.defineProperty(exports$1, key, {
|
|
292
292
|
enumerable: true,
|
|
293
293
|
configurable: true,
|
|
294
294
|
get: value
|
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.DLjmA_wU.js';
|
|
3
3
|
export { g as getWorkerState } from './chunks/utils.DvEY5TfP.js';
|
|
4
4
|
import 'node:module';
|
|
5
5
|
import 'node:url';
|
package/dist/node.d.ts
CHANGED
|
@@ -3,23 +3,23 @@ import { InlineConfig, UserConfig as UserConfig$1, Plugin, ResolvedConfig as Res
|
|
|
3
3
|
export { vite as Vite };
|
|
4
4
|
export { esbuildVersion, isCSSRequest, isFileServingAllowed, 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, b 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.
|
|
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.keG-yFSu.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, b 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.keG-yFSu.js';
|
|
8
8
|
import { Awaitable } from '@vitest/utils';
|
|
9
9
|
export { SerializedError } from '@vitest/utils';
|
|
10
|
-
import { R as RuntimeRPC, C as ContextRPC } from './chunks/worker.d.
|
|
11
|
-
export { T as TestExecutionType } from './chunks/worker.d.
|
|
10
|
+
import { R as RuntimeRPC, C as ContextRPC } from './chunks/worker.d.ZGohxCEd.js';
|
|
11
|
+
export { T as TestExecutionType } from './chunks/worker.d.ZGohxCEd.js';
|
|
12
12
|
import { Writable } from 'node:stream';
|
|
13
|
-
export { V as VitestPluginContext } from './chunks/plugin.d.
|
|
13
|
+
export { V as VitestPluginContext } from './chunks/plugin.d.C6KrdvNG.js';
|
|
14
14
|
import { Debugger } from 'debug';
|
|
15
|
-
import './chunks/global.d.
|
|
15
|
+
import './chunks/global.d.BQDgW9Pr.js';
|
|
16
16
|
export { Task as RunnerTask, TaskResult as RunnerTaskResult, TaskResultPack as RunnerTaskResultPack, Test as RunnerTestCase, File as RunnerTestFile, Suite as RunnerTestSuite, SequenceHooks, SequenceSetupFiles } from '@vitest/runner';
|
|
17
17
|
export { b as RuntimeConfig } from './chunks/config.d.BTfZNUu9.js';
|
|
18
18
|
export { generateFileHash } from '@vitest/runner/utils';
|
|
19
19
|
import '@vitest/mocker';
|
|
20
20
|
import '@vitest/utils/source-map';
|
|
21
21
|
import 'vitest/browser';
|
|
22
|
-
import './chunks/browser.d.
|
|
22
|
+
import './chunks/browser.d.DnU_kh8a.js';
|
|
23
23
|
import '@vitest/pretty-format';
|
|
24
24
|
import '@vitest/snapshot';
|
|
25
25
|
import '@vitest/utils/diff';
|
package/dist/node.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import * as vite from 'vite';
|
|
2
2
|
import { resolveConfig as resolveConfig$1, mergeConfig } from 'vite';
|
|
3
3
|
export { esbuildVersion, isCSSRequest, isFileServingAllowed, parseAst, parseAstAsync, rollupVersion, version as viteVersion } from 'vite';
|
|
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, o as createDebugger, d as createMethodsRPC, n as createViteLogger, c as createVitest, e as escapeTestName, l as experimental_getRunnerTask, g as getFilePoolName, i as isValidApiRequest, m as registerConsoleShortcuts, r as resolveFsAllow, s as startVitest } from './chunks/cli-api.
|
|
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.
|
|
4
|
+
import { V as Vitest, a as VitestPlugin } from './chunks/cli-api.RnIE1JbW.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, o as createDebugger, d as createMethodsRPC, n as createViteLogger, c as createVitest, e as escapeTestName, l as experimental_getRunnerTask, g as getFilePoolName, i as isValidApiRequest, m as registerConsoleShortcuts, r as resolveFsAllow, s as startVitest } from './chunks/cli-api.RnIE1JbW.js';
|
|
6
|
+
export { p as parseCLI } from './chunks/cac.D9CYcNPM.js';
|
|
7
|
+
import { r as resolveConfig$2 } from './chunks/coverage.BUlIqJrL.js';
|
|
8
|
+
export { b as BaseSequencer, a as resolveApiServerConfig } from './chunks/coverage.BUlIqJrL.js';
|
|
9
9
|
import { slash, deepClone } from '@vitest/utils/helpers';
|
|
10
|
-
import { a as any } from './chunks/index.
|
|
10
|
+
import { a as any } from './chunks/index.D4KonVSU.js';
|
|
11
11
|
import { resolve } from 'pathe';
|
|
12
12
|
import { c as configFiles } from './chunks/constants.D_Q9UYh-.js';
|
|
13
13
|
export { distDir, rootDir } from './path.js';
|
|
@@ -17,10 +17,10 @@ import './chunks/coverage.D_JHT54q.js';
|
|
|
17
17
|
import 'node:path';
|
|
18
18
|
import 'node:os';
|
|
19
19
|
import '@vitest/snapshot/manager';
|
|
20
|
-
import './chunks/index.DAL392Ss.js';
|
|
21
|
-
import './chunks/index.kotH7DY7.js';
|
|
22
|
-
import 'node:fs/promises';
|
|
23
20
|
import 'node:perf_hooks';
|
|
21
|
+
import './chunks/index.0kCJoeWi.js';
|
|
22
|
+
import './chunks/index.BYek7GgP.js';
|
|
23
|
+
import 'node:fs/promises';
|
|
24
24
|
import '@vitest/utils/source-map';
|
|
25
25
|
import 'tinyrainbow';
|
|
26
26
|
import './chunks/env.D4Lgay0q.js';
|
|
@@ -42,7 +42,7 @@ import 'stream';
|
|
|
42
42
|
import 'url';
|
|
43
43
|
import 'zlib';
|
|
44
44
|
import 'buffer';
|
|
45
|
-
import './chunks/_commonjsHelpers.
|
|
45
|
+
import './chunks/_commonjsHelpers.D26ty3Ew.js';
|
|
46
46
|
import 'node:crypto';
|
|
47
47
|
import 'debug';
|
|
48
48
|
import '#module-evaluator';
|
|
@@ -52,7 +52,6 @@ import 'node:url';
|
|
|
52
52
|
import 'node:tty';
|
|
53
53
|
import 'node:events';
|
|
54
54
|
import 'node:child_process';
|
|
55
|
-
import 'node:v8';
|
|
56
55
|
import 'node:worker_threads';
|
|
57
56
|
import 'picomatch';
|
|
58
57
|
import 'tinyglobby';
|
|
@@ -62,11 +61,12 @@ import './chunks/defaults.BOqNVLsY.js';
|
|
|
62
61
|
import '@vitest/utils/constants';
|
|
63
62
|
import '@vitest/utils/resolver';
|
|
64
63
|
import 'es-module-lexer';
|
|
65
|
-
import './chunks/index.
|
|
64
|
+
import './chunks/index.B8lJfb0J.js';
|
|
66
65
|
import 'node:assert';
|
|
67
66
|
import '@vitest/utils/serialize';
|
|
68
67
|
import 'node:readline';
|
|
69
68
|
import 'node:process';
|
|
69
|
+
import 'node:v8';
|
|
70
70
|
import 'readline';
|
|
71
71
|
|
|
72
72
|
// this is only exported as a public function and not used inside vitest
|
package/dist/reporters.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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.keG-yFSu.js';
|
|
2
2
|
import '@vitest/runner';
|
|
3
3
|
import '@vitest/utils';
|
|
4
|
-
import './chunks/worker.d.
|
|
4
|
+
import './chunks/worker.d.ZGohxCEd.js';
|
|
5
5
|
import 'vite/module-runner';
|
|
6
6
|
import './chunks/config.d.BTfZNUu9.js';
|
|
7
7
|
import '@vitest/pretty-format';
|
|
@@ -13,7 +13,7 @@ import 'vite';
|
|
|
13
13
|
import '@vitest/mocker';
|
|
14
14
|
import '@vitest/utils/source-map';
|
|
15
15
|
import 'vitest/browser';
|
|
16
|
-
import './chunks/browser.d.
|
|
16
|
+
import './chunks/browser.d.DnU_kh8a.js';
|
|
17
17
|
import '@vitest/expect';
|
|
18
18
|
import 'vitest/optional-types.js';
|
|
19
19
|
import './chunks/benchmark.d.DAaHLpsq.js';
|
package/dist/reporters.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { D as DefaultReporter, a as DotReporter, G as GithubActionsReporter, H as HangingProcessReporter, b as JUnitReporter, J as JsonReporter, R as ReportersMap, T as TapFlatReporter, c as TapReporter, V as VerboseReporter } from './chunks/index.
|
|
2
|
-
export { B as BenchmarkReporter, a as BenchmarkReportsMap, V as VerboseBenchmarkReporter } from './chunks/index.
|
|
1
|
+
export { D as DefaultReporter, a as DotReporter, G as GithubActionsReporter, H as HangingProcessReporter, b as JUnitReporter, J as JsonReporter, R as ReportersMap, T as TapFlatReporter, c as TapReporter, V as VerboseReporter } from './chunks/index.BYek7GgP.js';
|
|
2
|
+
export { B as BenchmarkReporter, a as BenchmarkReportsMap, V as VerboseBenchmarkReporter } from './chunks/index.B8lJfb0J.js';
|
|
3
3
|
import 'node:fs';
|
|
4
4
|
import 'node:fs/promises';
|
|
5
5
|
import 'pathe';
|
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.BPErLMrw.js';
|
|
2
2
|
import '@vitest/runner';
|
|
3
3
|
import '@vitest/utils/helpers';
|
|
4
4
|
import '@vitest/utils/timers';
|
|
@@ -8,12 +8,12 @@ import './chunks/utils.DvEY5TfP.js';
|
|
|
8
8
|
import '@vitest/expect';
|
|
9
9
|
import '@vitest/utils/error';
|
|
10
10
|
import 'pathe';
|
|
11
|
-
import './chunks/vi.
|
|
11
|
+
import './chunks/vi.BiaV1qII.js';
|
|
12
12
|
import '@vitest/snapshot';
|
|
13
13
|
import '@vitest/spy';
|
|
14
14
|
import '@vitest/utils/offset';
|
|
15
15
|
import '@vitest/utils/source-map';
|
|
16
|
-
import './chunks/_commonjsHelpers.
|
|
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.BytlcPfC.js';
|
|
19
|
+
import './chunks/index.0kCJoeWi.js';
|
package/dist/worker.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { W as WorkerGlobalState, B as BirpcOptions, R as RuntimeRPC, a as WorkerSetupContext } from './chunks/worker.d.
|
|
1
|
+
import { W as WorkerGlobalState, B as BirpcOptions, R as RuntimeRPC, a as WorkerSetupContext } from './chunks/worker.d.ZGohxCEd.js';
|
|
2
2
|
import { Awaitable } from '@vitest/utils';
|
|
3
3
|
import '@vitest/runner';
|
|
4
4
|
import 'vite/module-runner';
|
package/dist/worker.js
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
export { r as runBaseTests } from './chunks/base.
|
|
2
|
-
export { i as init } from './chunks/init.
|
|
1
|
+
export { r as runBaseTests } from './chunks/base.BFVArrYW.js';
|
|
2
|
+
export { i as init } from './chunks/init.Cz2kTB9a.js';
|
|
3
3
|
import 'node:vm';
|
|
4
4
|
import '@vitest/spy';
|
|
5
|
-
import './chunks/index.
|
|
5
|
+
import './chunks/index.Dua7TZg_.js';
|
|
6
6
|
import '@vitest/expect';
|
|
7
|
-
import './chunks/setup-common.
|
|
7
|
+
import './chunks/setup-common.BOzbXE3x.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.BytlcPfC.js';
|
|
13
|
+
import './chunks/index.0kCJoeWi.js';
|
|
14
|
+
import './chunks/test.BPErLMrw.js';
|
|
15
15
|
import '@vitest/runner';
|
|
16
16
|
import '@vitest/utils/helpers';
|
|
17
17
|
import './chunks/benchmark.B3N2zMcH.js';
|
|
18
18
|
import '@vitest/runner/utils';
|
|
19
19
|
import '@vitest/utils/error';
|
|
20
20
|
import 'pathe';
|
|
21
|
-
import './chunks/vi.
|
|
21
|
+
import './chunks/vi.BiaV1qII.js';
|
|
22
22
|
import '@vitest/utils/offset';
|
|
23
23
|
import '@vitest/utils/source-map';
|
|
24
|
-
import './chunks/_commonjsHelpers.
|
|
24
|
+
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.DLjmA_wU.js';
|
|
29
29
|
import 'node:fs';
|
|
30
30
|
import 'node:module';
|
|
31
31
|
import 'node:url';
|
|
@@ -40,7 +40,7 @@ import 'node:timers';
|
|
|
40
40
|
import 'node:timers/promises';
|
|
41
41
|
import 'node:util';
|
|
42
42
|
import '@vitest/utils/constants';
|
|
43
|
-
import './chunks/index.
|
|
43
|
+
import './chunks/index.DZ-mI_Nm.js';
|
|
44
44
|
import 'expect-type';
|
|
45
|
-
import './chunks/index.
|
|
45
|
+
import './chunks/index.QWbK7rHY.js';
|
|
46
46
|
import 'node:console';
|
package/dist/workers/forks.js
CHANGED
|
@@ -1,40 +1,40 @@
|
|
|
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.BFVArrYW.js';
|
|
2
|
+
import { w as workerInit } from '../chunks/init-forks.BZSlxfwV.js';
|
|
3
3
|
import 'node:vm';
|
|
4
4
|
import '@vitest/spy';
|
|
5
|
-
import '../chunks/index.
|
|
5
|
+
import '../chunks/index.Dua7TZg_.js';
|
|
6
6
|
import '@vitest/expect';
|
|
7
|
-
import '../chunks/setup-common.
|
|
7
|
+
import '../chunks/setup-common.BOzbXE3x.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.BytlcPfC.js';
|
|
13
|
+
import '../chunks/index.0kCJoeWi.js';
|
|
14
|
+
import '../chunks/test.BPErLMrw.js';
|
|
15
15
|
import '@vitest/runner';
|
|
16
16
|
import '@vitest/utils/helpers';
|
|
17
17
|
import '../chunks/benchmark.B3N2zMcH.js';
|
|
18
18
|
import '@vitest/runner/utils';
|
|
19
19
|
import '@vitest/utils/error';
|
|
20
20
|
import 'pathe';
|
|
21
|
-
import '../chunks/vi.
|
|
21
|
+
import '../chunks/vi.BiaV1qII.js';
|
|
22
22
|
import '@vitest/utils/offset';
|
|
23
23
|
import '@vitest/utils/source-map';
|
|
24
|
-
import '../chunks/_commonjsHelpers.
|
|
24
|
+
import '../chunks/_commonjsHelpers.D26ty3Ew.js';
|
|
25
25
|
import '../chunks/date.Bq6ZW5rf.js';
|
|
26
|
-
import '../chunks/init.
|
|
26
|
+
import '../chunks/init.Cz2kTB9a.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.
|
|
31
|
+
import '../chunks/startModuleRunner.DLjmA_wU.js';
|
|
32
32
|
import '../path.js';
|
|
33
33
|
import 'node:path';
|
|
34
34
|
import '@vitest/utils/serialize';
|
|
35
35
|
import '../module-evaluator.js';
|
|
36
36
|
import '@vitest/mocker';
|
|
37
|
-
import '../chunks/index.
|
|
37
|
+
import '../chunks/index.QWbK7rHY.js';
|
|
38
38
|
import 'node:console';
|
|
39
39
|
import '../chunks/inspector.CvyFGlXm.js';
|
|
40
40
|
import '../chunks/evaluatedModules.Dg1zASAC.js';
|
|
@@ -43,9 +43,8 @@ import 'node:timers';
|
|
|
43
43
|
import 'node:timers/promises';
|
|
44
44
|
import 'node:util';
|
|
45
45
|
import '@vitest/utils/constants';
|
|
46
|
-
import '../chunks/index.
|
|
46
|
+
import '../chunks/index.DZ-mI_Nm.js';
|
|
47
47
|
import 'expect-type';
|
|
48
|
-
import 'node:v8';
|
|
49
48
|
|
|
50
49
|
workerInit({
|
|
51
50
|
runTests: runBaseTests,
|
|
@@ -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.
|
|
9
|
-
import { c as setupCommonEnv, s as startCoverageInsideWorker, a as stopCoverageInsideWorker } from '../chunks/setup-common.
|
|
10
|
-
import { i as index } from '../chunks/index.
|
|
8
|
+
import { s as setupChaiConfig, r as resolveTestRunner, a as resolveSnapshotEnvironment } from '../chunks/index.Dua7TZg_.js';
|
|
9
|
+
import { c as setupCommonEnv, s as startCoverageInsideWorker, a as stopCoverageInsideWorker } from '../chunks/setup-common.BOzbXE3x.js';
|
|
10
|
+
import { i as index } from '../chunks/index.DZ-mI_Nm.js';
|
|
11
11
|
import { c as closeInspector } from '../chunks/inspector.CvyFGlXm.js';
|
|
12
12
|
import { g as getWorkerState } from '../chunks/utils.DvEY5TfP.js';
|
|
13
|
-
import { g as globalExpect } from '../chunks/vi.
|
|
13
|
+
import { g as globalExpect } from '../chunks/vi.BiaV1qII.js';
|
|
14
14
|
import '@vitest/expect';
|
|
15
|
-
import '../chunks/rpc.
|
|
15
|
+
import '../chunks/rpc.BytlcPfC.js';
|
|
16
16
|
import '@vitest/utils/timers';
|
|
17
|
-
import '../chunks/index.
|
|
18
|
-
import '../chunks/test.
|
|
17
|
+
import '../chunks/index.0kCJoeWi.js';
|
|
18
|
+
import '../chunks/test.BPErLMrw.js';
|
|
19
19
|
import '@vitest/utils/helpers';
|
|
20
20
|
import '../chunks/benchmark.B3N2zMcH.js';
|
|
21
21
|
import '@vitest/runner/utils';
|
|
@@ -30,7 +30,7 @@ import 'node:url';
|
|
|
30
30
|
import '@vitest/spy';
|
|
31
31
|
import '@vitest/utils/offset';
|
|
32
32
|
import '@vitest/utils/source-map';
|
|
33
|
-
import '../chunks/_commonjsHelpers.
|
|
33
|
+
import '../chunks/_commonjsHelpers.D26ty3Ew.js';
|
|
34
34
|
import '../chunks/date.Bq6ZW5rf.js';
|
|
35
35
|
|
|
36
36
|
async function run(method, files, config, moduleRunner) {
|