vitest 3.0.4 → 3.0.6
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/LICENSE.md +20 -304
- package/dist/browser.d.ts +8 -14
- package/dist/browser.js +2 -2
- package/dist/chunks/{base.wKnmhRYd.js → base.B2NLWv2w.js} +5 -3
- package/dist/chunks/{cac.DYBkNWP6.js → cac.mNJBJcT7.js} +24 -24
- package/dist/chunks/{cli-api.Ci-9Ccnz.js → cli-api.Dkt_XoKq.js} +3289 -3054
- package/dist/chunks/{console.BxE0RUCr.js → console.CN7AiMGV.js} +3 -3
- package/dist/chunks/{coverage.BWeNbfBa.js → coverage.DnNIv-kJ.js} +1 -1
- package/dist/chunks/{creator.fUJbheb8.js → creator.2CFRE1Yx.js} +5 -5
- package/dist/chunks/{execute.PoofJYS5.js → execute.DNQad00_.js} +11 -4
- package/dist/chunks/{globals.BSNBk3vE.js → globals.DrEiwfS1.js} +2 -2
- package/dist/chunks/{index.TH3f4LSA.js → index.68735LiX.js} +2 -2
- package/dist/chunks/{index.NxxmQyK2.js → index.Bw6JxgX8.js} +3 -3
- package/dist/chunks/{index.vId0fl99.js → index.C1f-_gvH.js} +86 -45
- package/dist/chunks/{index.B57_6XMC.js → index.DBIGubLC.js} +8 -8
- package/dist/chunks/{index.C2XSkjNu.js → index.DC3HGwr0.js} +3 -3
- package/dist/chunks/{index.cYxyd29h.js → index.K90BXFOx.js} +12 -12
- package/dist/chunks/{index.Bf4FgyZN.js → index.SduP00mx.js} +1 -1
- package/dist/chunks/{inspector.CU9GlB9I.js → inspector.DKLceBVD.js} +1 -1
- package/dist/chunks/{reporters.0x019-V2.d.ts → reporters.DTtkbAtP.d.ts} +78 -60
- package/dist/chunks/{resolveConfig.DkmB2h7h.js → resolveConfig.BbcK25zb.js} +23 -24
- package/dist/chunks/{rpc.Bf456uf4.js → rpc.TVf73xOu.js} +1 -1
- package/dist/chunks/{runBaseTests.Ba8jtu6O.js → runBaseTests.Cr-AyqFv.js} +9 -9
- package/dist/chunks/{setup-common.jLbIuaww.js → setup-common.IrcyRZ8C.js} +1 -1
- package/dist/chunks/{suite.BJU7kdY9.d.ts → suite.qtkXWc6R.d.ts} +1 -1
- package/dist/chunks/{typechecker.CdcjdhoT.js → typechecker.cZ0LjdSi.js} +7 -7
- package/dist/chunks/{utils.DJWL04yX.js → utils.bLM2atbD.js} +3 -3
- package/dist/chunks/{vi.CjhMlMwf.js → vi.DrftpPF8.js} +26 -20
- package/dist/chunks/{vite.DiG-KbRF.d.ts → vite.BmCIRnbq.d.ts} +1 -1
- package/dist/chunks/{vm.DXDoSHPT.js → vm.ku9l48hv.js} +7 -5
- package/dist/chunks/{worker.B1y96qmv.d.ts → worker.B2JXutr8.d.ts} +1 -1
- package/dist/chunks/{worker.CIpff8Eg.d.ts → worker.DaAIyCKm.d.ts} +2 -1
- package/dist/cli.js +1 -1
- package/dist/config.cjs +3 -4
- package/dist/config.d.ts +23 -26
- package/dist/config.js +3 -4
- package/dist/coverage.d.ts +3 -3
- package/dist/coverage.js +10 -10
- package/dist/environments.d.ts +2 -2
- package/dist/environments.js +1 -1
- package/dist/execute.d.ts +6 -6
- package/dist/execute.js +1 -1
- package/dist/index.d.ts +10 -10
- package/dist/index.js +2 -2
- package/dist/node.d.ts +16 -13
- package/dist/node.js +12 -13
- package/dist/reporters.d.ts +1 -1
- package/dist/reporters.js +3 -3
- package/dist/runners.js +4 -4
- package/dist/suite.d.ts +1 -1
- package/dist/worker.js +6 -5
- package/dist/workers/forks.js +4 -4
- package/dist/workers/runVmTests.js +8 -8
- package/dist/workers/threads.js +4 -4
- package/dist/workers/vmForks.js +5 -5
- package/dist/workers/vmThreads.js +5 -5
- package/dist/workers.d.ts +2 -2
- package/dist/workers.js +8 -8
- package/package.json +18 -18
package/dist/coverage.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { existsSync, promises, readdirSync, writeFileSync } from 'node:fs';
|
|
2
|
-
import {
|
|
2
|
+
import { r as resolveCoverageReporters, c as coverageConfigDefaults, m as mm } from './chunks/resolveConfig.BbcK25zb.js';
|
|
3
3
|
import { resolve, relative } from 'pathe';
|
|
4
4
|
import c from 'tinyrainbow';
|
|
5
|
+
import 'node:crypto';
|
|
5
6
|
import '@vitest/utils';
|
|
6
7
|
import 'node:fs/promises';
|
|
7
8
|
import 'node:module';
|
|
@@ -13,7 +14,7 @@ import 'node:v8';
|
|
|
13
14
|
import 'node:util';
|
|
14
15
|
import './chunks/constants.fzPh7AOq.js';
|
|
15
16
|
import 'node:os';
|
|
16
|
-
import './chunks/typechecker.
|
|
17
|
+
import './chunks/typechecker.cZ0LjdSi.js';
|
|
17
18
|
import 'std-env';
|
|
18
19
|
import 'node:perf_hooks';
|
|
19
20
|
import '@vitest/utils/source-map';
|
|
@@ -21,13 +22,12 @@ import 'tinyexec';
|
|
|
21
22
|
import '@vitest/runner/utils';
|
|
22
23
|
import 'vite';
|
|
23
24
|
import 'fs';
|
|
24
|
-
import 'node:crypto';
|
|
25
25
|
import 'node:tty';
|
|
26
26
|
import './chunks/_commonjsHelpers.BFTU3MAI.js';
|
|
27
27
|
import 'util';
|
|
28
28
|
import 'path';
|
|
29
29
|
import 'node:events';
|
|
30
|
-
import './chunks/index.
|
|
30
|
+
import './chunks/index.68735LiX.js';
|
|
31
31
|
import 'tinypool';
|
|
32
32
|
import 'node:worker_threads';
|
|
33
33
|
import './path.js';
|
|
@@ -262,7 +262,7 @@ Update your dependencies and make sure the versions match.`
|
|
|
262
262
|
*/
|
|
263
263
|
checkThresholds(allThresholds) {
|
|
264
264
|
for (const { coverageMap, thresholds, name } of allThresholds) {
|
|
265
|
-
if (thresholds.branches ===
|
|
265
|
+
if (thresholds.branches === void 0 && thresholds.functions === void 0 && thresholds.lines === void 0 && thresholds.statements === void 0) {
|
|
266
266
|
continue;
|
|
267
267
|
}
|
|
268
268
|
const summaries = this.options.thresholds?.perFile ? coverageMap.files().map((file) => ({
|
|
@@ -272,7 +272,7 @@ Update your dependencies and make sure the versions match.`
|
|
|
272
272
|
for (const { summary, file } of summaries) {
|
|
273
273
|
for (const thresholdKey of THRESHOLD_KEYS) {
|
|
274
274
|
const threshold = thresholds[thresholdKey];
|
|
275
|
-
if (threshold ===
|
|
275
|
+
if (threshold === void 0) {
|
|
276
276
|
continue;
|
|
277
277
|
}
|
|
278
278
|
if (threshold >= 0) {
|
|
@@ -414,10 +414,10 @@ function resolveGlobThresholds(thresholds) {
|
|
|
414
414
|
};
|
|
415
415
|
}
|
|
416
416
|
return {
|
|
417
|
-
lines: "lines" in thresholds && typeof thresholds.lines === "number" ? thresholds.lines :
|
|
418
|
-
branches: "branches" in thresholds && typeof thresholds.branches === "number" ? thresholds.branches :
|
|
419
|
-
functions: "functions" in thresholds && typeof thresholds.functions === "number" ? thresholds.functions :
|
|
420
|
-
statements: "statements" in thresholds && typeof thresholds.statements === "number" ? thresholds.statements :
|
|
417
|
+
lines: "lines" in thresholds && typeof thresholds.lines === "number" ? thresholds.lines : void 0,
|
|
418
|
+
branches: "branches" in thresholds && typeof thresholds.branches === "number" ? thresholds.branches : void 0,
|
|
419
|
+
functions: "functions" in thresholds && typeof thresholds.functions === "number" ? thresholds.functions : void 0,
|
|
420
|
+
statements: "statements" in thresholds && typeof thresholds.statements === "number" ? thresholds.statements : void 0
|
|
421
421
|
};
|
|
422
422
|
}
|
|
423
423
|
function assertConfigurationModule(config) {
|
package/dist/environments.d.ts
CHANGED
|
@@ -2,8 +2,8 @@ import { E as Environment } from './chunks/environment.d8YfPkTm.js';
|
|
|
2
2
|
export { a as EnvironmentReturn, V as VmEnvironmentReturn } from './chunks/environment.d8YfPkTm.js';
|
|
3
3
|
|
|
4
4
|
declare const environments: {
|
|
5
|
-
node: Environment;
|
|
6
|
-
jsdom: Environment;
|
|
5
|
+
'node': Environment;
|
|
6
|
+
'jsdom': Environment;
|
|
7
7
|
'happy-dom': Environment;
|
|
8
8
|
'edge-runtime': Environment;
|
|
9
9
|
};
|
package/dist/environments.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { e as builtinEnvironments, p as populateGlobal } from './chunks/index.
|
|
1
|
+
export { e as builtinEnvironments, p as populateGlobal } from './chunks/index.K90BXFOx.js';
|
|
2
2
|
import 'node:console';
|
package/dist/execute.d.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { ViteNodeRunnerOptions } from 'vite-node';
|
|
2
|
-
import { ViteNodeRunner } from 'vite-node/client';
|
|
3
|
-
import { R as RuntimeRPC, W as WorkerGlobalState } from './chunks/worker.
|
|
2
|
+
import { ViteNodeRunner, ModuleExecutionInfo } from 'vite-node/client';
|
|
3
|
+
import { R as RuntimeRPC, W as WorkerGlobalState } from './chunks/worker.DaAIyCKm.js';
|
|
4
4
|
import vm from 'node:vm';
|
|
5
|
-
import
|
|
6
|
-
import { MockedModuleType } from '@vitest/mocker';
|
|
5
|
+
import { MockedModule, MockedModuleType } from '@vitest/mocker';
|
|
7
6
|
import { P as PendingSuiteMock, b as MockFactory, a as MockOptions } from './chunks/mocker.cRtM890J.js';
|
|
8
7
|
import '@vitest/runner';
|
|
9
8
|
import './chunks/config.BRtC-JeT.js';
|
|
@@ -18,7 +17,7 @@ declare class FileMap {
|
|
|
18
17
|
private fsBufferCache;
|
|
19
18
|
readFileAsync(path: string): Promise<string>;
|
|
20
19
|
readFile(path: string): string;
|
|
21
|
-
readBuffer(path: string): Buffer
|
|
20
|
+
readBuffer(path: string): Buffer;
|
|
22
21
|
}
|
|
23
22
|
|
|
24
23
|
interface ModuleEvaluateOptions {
|
|
@@ -102,7 +101,7 @@ declare class VitestMocker {
|
|
|
102
101
|
private callFunctionMock;
|
|
103
102
|
getMockContext(): MockContext;
|
|
104
103
|
getMockPath(dep: string): string;
|
|
105
|
-
getDependencyMock(id: string):
|
|
104
|
+
getDependencyMock(id: string): MockedModule | undefined;
|
|
106
105
|
normalizePath(path: string): string;
|
|
107
106
|
resolveMockPath(mockPath: string, external: string | null): string | null;
|
|
108
107
|
mockObject(object: Record<string | symbol, any>, mockExports?: Record<string | symbol, any>, behavior?: MockedModuleType): Record<string | symbol, any>;
|
|
@@ -133,6 +132,7 @@ declare class VitestExecutor extends ViteNodeRunner {
|
|
|
133
132
|
Symbol: typeof Symbol;
|
|
134
133
|
};
|
|
135
134
|
get state(): WorkerGlobalState;
|
|
135
|
+
get moduleExecutionInfo(): ModuleExecutionInfo | undefined;
|
|
136
136
|
shouldResolveId(id: string, _importee?: string | undefined): boolean;
|
|
137
137
|
originalResolveUrl(id: string, importer?: string): Promise<[url: string, fsPath: string]>;
|
|
138
138
|
resolveUrl(id: string, importer?: string): Promise<[url: string, fsPath: string]>;
|
package/dist/execute.js
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { File as File$1, TaskResultPack as TaskResultPack$1, TaskEventPack, TaskPopulated, Suite as Suite$1, Test as Test$1, Custom as Custom$1, Task as Task$1, TaskBase as TaskBase$1, TaskResult as TaskResult$1, DoneCallback as DoneCallback$1, RuntimeContext as RuntimeContext$1, SuiteHooks as SuiteHooks$1, SequenceHooks as SequenceHooks$1, SequenceSetupFiles as SequenceSetupFiles$1 } from '@vitest/runner';
|
|
2
2
|
export { CancelReason, ExtendedContext, HookCleanupCallback, HookListener, OnTestFailedHandler, OnTestFinishedHandler, RunMode, Custom as RunnerCustomCase, Task as RunnerTask, TaskBase as RunnerTaskBase, TaskResult as RunnerTaskResult, TaskResultPack as RunnerTaskResultPack, Test as RunnerTestCase, File as RunnerTestFile, Suite as RunnerTestSuite, SuiteAPI, SuiteCollector, SuiteFactory, TaskContext, TaskCustomOptions, TaskMeta, TaskState, TestAPI, TestContext, TestFunction, TestOptions, afterAll, afterEach, beforeAll, beforeEach, describe, it, onTestFailed, onTestFinished, suite, test } from '@vitest/runner';
|
|
3
|
-
import { S as SerializedTestSpecification,
|
|
4
|
-
import { W as WorkerContext$1 } from './chunks/worker.
|
|
3
|
+
import { S as SerializedTestSpecification, c as CoverageProvider$1, a as ReportContext$1, g as CoverageProviderModule$1, h as CoverageReporter$1, i as CoverageProviderName, j as CoverageOptions$1, R as ResolvedCoverageOptions$1, B as BaseCoverageOptions$1, k as CoverageIstanbulOptions$1, d as CoverageV8Options$1, l as CustomProviderOptions$1, m as Reporter$1, V as Vitest$1, n as BrowserScript$1, o as BrowserConfigOptions$1, p as BuiltinEnvironment$1, q as VitestEnvironment$1, P as Pool$1, r as PoolOptions$1, s as CSSModuleScopeStrategy$1, A as ApiConfig$1, t as VitestRunMode$1, D as DepsOptimizationOptions$1, u as TransformModePatterns$1, I as InlineConfig$1, v as TypecheckConfig$1, w as UserConfig$1, x as ResolvedConfig$1, y as ProjectConfig$1, U as UserWorkspaceConfig$1, z as BenchmarkUserOptions$1 } from './chunks/reporters.DTtkbAtP.js';
|
|
4
|
+
import { W as WorkerContext$1 } from './chunks/worker.B2JXutr8.js';
|
|
5
5
|
import { R as RawErrsMap$1, T as TscErrorInfo$1, C as CollectLineNumbers$1, a as CollectLines$1, b as RootAndTarget$1, c as Context$1 } from './chunks/global.CnI8_G5V.js';
|
|
6
|
-
import {
|
|
6
|
+
import { b as Awaitable$1, U as UserConsoleLog, M as ModuleGraphData, P as ProvidedContext, N as Nullable$1, c as Arrayable$1, d as ArgumentsType$1, e as MutableArray$1, C as Constructable$1, a as EnvironmentReturn$1, V as VmEnvironmentReturn$1, E as Environment$1, R as ResolvedTestEnvironment$1, J as JSDOMOptions$1, H as HappyDOMOptions$1, f as EnvironmentOptions$1 } from './chunks/environment.d8YfPkTm.js';
|
|
7
7
|
export { A as AfterSuiteRunMeta, g as ModuleCache } from './chunks/environment.d8YfPkTm.js';
|
|
8
|
-
import { a as BirpcReturn, b as WorkerRPC$1 } from './chunks/worker.
|
|
9
|
-
export { C as ContextRPC, d as ContextTestEnvironment, e as ResolveIdFunction, c as RunnerRPC, R as RuntimeRPC, W as WorkerGlobalState } from './chunks/worker.
|
|
10
|
-
import './chunks/vite.
|
|
8
|
+
import { a as BirpcReturn, b as WorkerRPC$1 } from './chunks/worker.DaAIyCKm.js';
|
|
9
|
+
export { C as ContextRPC, d as ContextTestEnvironment, e as ResolveIdFunction, c as RunnerRPC, R as RuntimeRPC, W as WorkerGlobalState } from './chunks/worker.DaAIyCKm.js';
|
|
10
|
+
import './chunks/vite.BmCIRnbq.js';
|
|
11
11
|
import { S as SerializedConfig, F as FakeTimerInstallOpts, R as RuntimeOptions } from './chunks/config.BRtC-JeT.js';
|
|
12
12
|
export { b as RuntimeConfig, a as SerializedCoverageConfig } from './chunks/config.BRtC-JeT.js';
|
|
13
13
|
import { ExpectStatic } from '@vitest/expect';
|
|
@@ -15,7 +15,7 @@ export { Assertion, AsymmetricMatchersContaining, ExpectPollOptions, ExpectStati
|
|
|
15
15
|
import { spyOn, fn, MaybeMockedDeep, MaybeMocked, MaybePartiallyMocked, MaybePartiallyMockedDeep, MockInstance } from '@vitest/spy';
|
|
16
16
|
export { Mock, MockContext, MockInstance, Mocked, MockedClass, MockedFunction, MockedObject } from '@vitest/spy';
|
|
17
17
|
import { M as MockFactoryWithHelper, a as MockOptions } from './chunks/mocker.cRtM890J.js';
|
|
18
|
-
export { b as bench } from './chunks/suite.
|
|
18
|
+
export { b as bench } from './chunks/suite.qtkXWc6R.js';
|
|
19
19
|
export { a as BenchFunction, b as Benchmark, c as BenchmarkAPI, B as BenchmarkResult } from './chunks/benchmark.CFFwLv-O.js';
|
|
20
20
|
export { ExpectTypeOf, expectTypeOf } from 'expect-type';
|
|
21
21
|
export { SnapshotData, SnapshotMatchOptions, SnapshotResult, SnapshotSerializer, SnapshotStateOptions, SnapshotSummary, SnapshotUpdateState, UncheckedSnapshot } from '@vitest/snapshot';
|
|
@@ -112,7 +112,7 @@ declare function runOnce<T>(fn: () => T, key?: string): T;
|
|
|
112
112
|
*/
|
|
113
113
|
declare function isFirstRun(): boolean;
|
|
114
114
|
|
|
115
|
-
declare function getRunningMode():
|
|
115
|
+
declare function getRunningMode(): 'watch' | 'run';
|
|
116
116
|
declare function isWatchMode(): boolean;
|
|
117
117
|
|
|
118
118
|
type WaitForCallback<T> = () => T | Promise<T>;
|
|
@@ -203,7 +203,7 @@ interface VitestUtils {
|
|
|
203
203
|
*/
|
|
204
204
|
setSystemTime: (time: number | string | Date) => VitestUtils;
|
|
205
205
|
/**
|
|
206
|
-
* Returns mocked current date
|
|
206
|
+
* Returns mocked current date. If date is not mocked the method will return `null`.
|
|
207
207
|
*/
|
|
208
208
|
getMockedSystemTime: () => Date | null;
|
|
209
209
|
/**
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { c as createExpect, a as expect, i as inject, v as vi, b as vitest } from './chunks/vi.
|
|
1
|
+
export { c as createExpect, a as expect, i as inject, v as vi, b as vitest } from './chunks/vi.DrftpPF8.js';
|
|
2
2
|
export { i as isFirstRun, a as runOnce } from './chunks/run-once.2ogXb3JV.js';
|
|
3
|
-
export { a as assertType, g as getRunningMode, i as isWatchMode } from './chunks/index.
|
|
3
|
+
export { a as assertType, g as getRunningMode, i as isWatchMode } from './chunks/index.SduP00mx.js';
|
|
4
4
|
export { b as bench } from './chunks/benchmark.Cdu9hjj4.js';
|
|
5
5
|
export { expectTypeOf } from 'expect-type';
|
|
6
6
|
export { afterAll, afterEach, beforeAll, beforeEach, describe, it, onTestFailed, onTestFinished, suite, test } from '@vitest/runner';
|
package/dist/node.d.ts
CHANGED
|
@@ -1,19 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { B as BaseCoverageOptions,
|
|
3
|
-
import { UserConfig, Plugin, ResolvedConfig as ResolvedConfig$1, LogLevel, LoggerOptions, Logger as Logger$1, createServer as createServer$1 } from 'vite';
|
|
1
|
+
import { x as ResolvedConfig, w as UserConfig, t as VitestRunMode, E as VitestOptions, V as Vitest, A as ApiConfig, F as TestProject, G as TestSequencer, H as TestSpecification, L as Logger, J as TestModule, M as ModuleDiagnostic } from './chunks/reporters.DTtkbAtP.js';
|
|
2
|
+
export { B as BaseCoverageOptions, z as BenchmarkUserOptions, ae as BrowserBuiltinProvider, af as BrowserCommand, ag as BrowserCommandContext, o as BrowserConfigOptions, ah as BrowserInstanceOption, ai as BrowserOrchestrator, aj as BrowserProvider, ak as BrowserProviderInitializationOptions, al as BrowserProviderModule, am as BrowserProviderOptions, n as BrowserScript, an as BrowserServerState, ao as BrowserServerStateSession, p as BuiltinEnvironment, ap as CDPSession, s as CSSModuleScopeStrategy, k as CoverageIstanbulOptions, j as CoverageOptions, c as CoverageProvider, g as CoverageProviderModule, h as CoverageReporter, d as CoverageV8Options, l as CustomProviderOptions, D as DepsOptimizationOptions, _ as HTMLOptions, I as InlineConfig, a0 as JUnitOptions, $ as JsonOptions, O as OnServerRestartHandler, K as OnTestsRerunHandler, aq as ParentProjectBrowser, P as Pool, r as PoolOptions, Q as ProcessPool, ar as ProjectBrowser, y as ProjectConfig, a as ReportContext, ax as ReportedHookContext, m as Reporter, au as ResolveSnapshotPathHandler, av as ResolveSnapshotPathHandlerContext, as as ResolvedBrowserOptions, R as ResolvedCoverageOptions, at as ResolvedProjectConfig, Z as SerializedTestProject, a1 as TaskOptions, a2 as TestCase, a3 as TestCollection, a4 as TestDiagnostic, a5 as TestModuleState, a6 as TestResult, a7 as TestResultFailed, a8 as TestResultPassed, a9 as TestResultSkipped, ay as TestRunEndReason, aw as TestRunResult, ad as TestSequencerConstructor, aa as TestState, ab as TestSuite, ac as TestSuiteState, u as TransformModePatterns, v as TypecheckConfig, U as UserWorkspaceConfig, q as VitestEnvironment, N as VitestPackageInstaller, X as WorkspaceSpec, Y as getFilePoolName } from './chunks/reporters.DTtkbAtP.js';
|
|
3
|
+
import { UserConfig as UserConfig$1, Plugin, ResolvedConfig as ResolvedConfig$1, LogLevel, LoggerOptions, Logger as Logger$1, createServer as createServer$1 } from 'vite';
|
|
4
4
|
import * as vite from 'vite';
|
|
5
5
|
export { vite as Vite };
|
|
6
6
|
export { esbuildVersion, isFileServingAllowed, parseAst, parseAstAsync, rollupVersion, version as viteVersion } from 'vite';
|
|
7
|
-
import {
|
|
7
|
+
import { IncomingMessage } from 'node:http';
|
|
8
|
+
import { R as RuntimeRPC } from './chunks/worker.DaAIyCKm.js';
|
|
8
9
|
import { Writable } from 'node:stream';
|
|
9
|
-
export { W as WorkerContext } from './chunks/worker.
|
|
10
|
+
export { W as WorkerContext } from './chunks/worker.B2JXutr8.js';
|
|
10
11
|
export { C as TypeCheckCollectLineNumbers, a as TypeCheckCollectLines, c as TypeCheckContext, T as TypeCheckErrorInfo, R as TypeCheckRawErrorsMap, b as TypeCheckRootAndTarget } from './chunks/global.CnI8_G5V.js';
|
|
11
12
|
import { Debugger } from 'debug';
|
|
12
13
|
export { Task as RunnerTask, TaskResult as RunnerTaskResult, TaskResultPack as RunnerTaskResultPack, Test as RunnerTestCase, File as RunnerTestFile, Suite as RunnerTestSuite, SequenceHooks, SequenceSetupFiles } from '@vitest/runner';
|
|
13
14
|
export { f as EnvironmentOptions, H as HappyDOMOptions, J as JSDOMOptions } from './chunks/environment.d8YfPkTm.js';
|
|
14
15
|
export { SerializedError } from '@vitest/utils';
|
|
15
16
|
export { b as RuntimeConfig } from './chunks/config.BRtC-JeT.js';
|
|
16
|
-
import './chunks/vite.
|
|
17
|
+
import './chunks/vite.BmCIRnbq.js';
|
|
17
18
|
export { generateFileHash } from '@vitest/runner/utils';
|
|
18
19
|
import '@vitest/utils/source-map';
|
|
19
20
|
import '@vitest/pretty-format';
|
|
@@ -29,7 +30,9 @@ import 'node:worker_threads';
|
|
|
29
30
|
import '@vitest/expect';
|
|
30
31
|
import '@vitest/snapshot/environment';
|
|
31
32
|
|
|
32
|
-
|
|
33
|
+
declare function isValidApiRequest(config: ResolvedConfig, req: IncomingMessage): boolean;
|
|
34
|
+
|
|
35
|
+
interface CliOptions extends UserConfig {
|
|
33
36
|
/**
|
|
34
37
|
* Override the watch mode
|
|
35
38
|
*/
|
|
@@ -52,7 +55,7 @@ interface CliOptions extends UserConfig$1 {
|
|
|
52
55
|
*
|
|
53
56
|
* Returns a Vitest instance if initialized successfully.
|
|
54
57
|
*/
|
|
55
|
-
declare function startVitest(mode: VitestRunMode, cliFilters?: string[], options?: CliOptions, viteOverrides?: UserConfig, vitestOptions?: VitestOptions): Promise<Vitest>;
|
|
58
|
+
declare function startVitest(mode: VitestRunMode, cliFilters?: string[], options?: CliOptions, viteOverrides?: UserConfig$1, vitestOptions?: VitestOptions): Promise<Vitest>;
|
|
56
59
|
|
|
57
60
|
interface CliParseOptions {
|
|
58
61
|
allowUnknownOptions?: boolean;
|
|
@@ -62,9 +65,9 @@ declare function parseCLI(argv: string | string[], config?: CliParseOptions): {
|
|
|
62
65
|
options: CliOptions;
|
|
63
66
|
};
|
|
64
67
|
|
|
65
|
-
declare function resolveApiServerConfig<Options extends ApiConfig & UserConfig
|
|
68
|
+
declare function resolveApiServerConfig<Options extends ApiConfig & UserConfig>(options: Options, defaultPort: number): ApiConfig | undefined;
|
|
66
69
|
|
|
67
|
-
declare function createVitest(mode: VitestRunMode, options: UserConfig
|
|
70
|
+
declare function createVitest(mode: VitestRunMode, options: UserConfig, viteOverrides?: UserConfig$1, vitestOptions?: VitestOptions): Promise<Vitest>;
|
|
68
71
|
|
|
69
72
|
declare class FilesNotFoundError extends Error {
|
|
70
73
|
code: string;
|
|
@@ -78,9 +81,9 @@ declare class GitNotFoundError extends Error {
|
|
|
78
81
|
/** @deprecated use `TestProject` instead */
|
|
79
82
|
type GlobalSetupContext = TestProject;
|
|
80
83
|
|
|
81
|
-
declare function VitestPlugin(options?: UserConfig
|
|
84
|
+
declare function VitestPlugin(options?: UserConfig, ctx?: Vitest): Promise<Plugin[]>;
|
|
82
85
|
|
|
83
|
-
declare function resolveConfig(options?: UserConfig
|
|
86
|
+
declare function resolveConfig(options?: UserConfig, viteOverrides?: UserConfig$1): Promise<{
|
|
84
87
|
vitestConfig: ResolvedConfig;
|
|
85
88
|
viteConfig: ResolvedConfig$1;
|
|
86
89
|
}>;
|
|
@@ -125,4 +128,4 @@ declare const TestFile: typeof TestModule;
|
|
|
125
128
|
*/
|
|
126
129
|
type FileDiagnostic = ModuleDiagnostic;
|
|
127
130
|
|
|
128
|
-
export { ApiConfig, BaseSequencer, type CliParseOptions, type FileDiagnostic, GitNotFoundError, type GlobalSetupContext, ModuleDiagnostic, ResolvedConfig, TestFile, TestModule, TestProject, TestSequencer, TestSpecification, FilesNotFoundError as TestsNotFoundError, UserConfig
|
|
131
|
+
export { ApiConfig, BaseSequencer, type CliParseOptions, type FileDiagnostic, GitNotFoundError, type GlobalSetupContext, ModuleDiagnostic, ResolvedConfig, TestFile, TestModule, TestProject, TestSequencer, TestSpecification, FilesNotFoundError as TestsNotFoundError, UserConfig, Vitest, VitestOptions, VitestPlugin, VitestRunMode, TestProject as WorkspaceProject, createDebugger, createMethodsRPC, createServer, createViteLogger, createViteServer, createVitest, distDir, isValidApiRequest, parseCLI, registerConsoleShortcuts, resolveApiServerConfig, resolveConfig, resolveFsAllow, rootDir, startVitest, version };
|
package/dist/node.js
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import { resolveConfig as resolveConfig$1, mergeConfig, createServer as createServer$1 } from 'vite';
|
|
2
2
|
export { esbuildVersion, isFileServingAllowed, parseAst, parseAstAsync, rollupVersion, version as viteVersion } from 'vite';
|
|
3
|
-
import { V as Vitest, a as VitestPlugin, T as TestModule } from './chunks/cli-api.
|
|
4
|
-
export { G as GitNotFoundError, F as TestsNotFoundError, b as VitestPackageInstaller, e as createViteLogger, c as createVitest, d as registerConsoleShortcuts, r as resolveFsAllow, s as startVitest } from './chunks/cli-api.
|
|
5
|
-
export { p as parseCLI } from './chunks/cac.
|
|
6
|
-
import { a as resolveConfig$2 } from './chunks/resolveConfig.
|
|
7
|
-
export { B as BaseSequencer, d as createMethodsRPC, g as getFilePoolName, b as resolveApiServerConfig } from './chunks/resolveConfig.
|
|
3
|
+
import { V as Vitest, a as VitestPlugin, T as TestModule } from './chunks/cli-api.Dkt_XoKq.js';
|
|
4
|
+
export { G as GitNotFoundError, F as TestsNotFoundError, b as VitestPackageInstaller, e as createViteLogger, c as createVitest, i as isValidApiRequest, d as registerConsoleShortcuts, r as resolveFsAllow, s as startVitest } from './chunks/cli-api.Dkt_XoKq.js';
|
|
5
|
+
export { p as parseCLI } from './chunks/cac.mNJBJcT7.js';
|
|
6
|
+
import { a as resolveConfig$2 } from './chunks/resolveConfig.BbcK25zb.js';
|
|
7
|
+
export { B as BaseSequencer, d as createMethodsRPC, g as getFilePoolName, b as resolveApiServerConfig } from './chunks/resolveConfig.BbcK25zb.js';
|
|
8
8
|
import { slash } from '@vitest/utils';
|
|
9
|
-
import { f as findUp } from './chunks/index.
|
|
9
|
+
import { f as findUp } from './chunks/index.DBIGubLC.js';
|
|
10
10
|
import { resolve } from 'pathe';
|
|
11
11
|
import { c as configFiles } from './chunks/constants.fzPh7AOq.js';
|
|
12
12
|
export { distDir, rootDir } from './path.js';
|
|
13
13
|
import createDebug from 'debug';
|
|
14
14
|
export { generateFileHash } from '@vitest/runner/utils';
|
|
15
15
|
import 'node:fs';
|
|
16
|
-
import './chunks/coverage.
|
|
16
|
+
import './chunks/coverage.DnNIv-kJ.js';
|
|
17
17
|
import 'node:path';
|
|
18
18
|
import '@vitest/snapshot/manager';
|
|
19
19
|
import 'vite-node/client';
|
|
20
20
|
import 'vite-node/server';
|
|
21
|
-
import './chunks/index.
|
|
22
|
-
import './chunks/index.
|
|
21
|
+
import './chunks/index.68735LiX.js';
|
|
22
|
+
import './chunks/index.C1f-_gvH.js';
|
|
23
23
|
import 'tinyrainbow';
|
|
24
|
-
import './chunks/utils.
|
|
24
|
+
import './chunks/utils.bLM2atbD.js';
|
|
25
25
|
import 'node:util';
|
|
26
26
|
import 'node:perf_hooks';
|
|
27
27
|
import '@vitest/utils/source-map';
|
|
28
|
-
import './chunks/typechecker.
|
|
28
|
+
import './chunks/typechecker.cZ0LjdSi.js';
|
|
29
29
|
import 'std-env';
|
|
30
30
|
import 'node:fs/promises';
|
|
31
31
|
import 'tinyexec';
|
|
@@ -46,7 +46,7 @@ import 'net';
|
|
|
46
46
|
import 'tls';
|
|
47
47
|
import 'url';
|
|
48
48
|
import './chunks/_commonjsHelpers.BFTU3MAI.js';
|
|
49
|
-
import '
|
|
49
|
+
import 'node:crypto';
|
|
50
50
|
import 'path';
|
|
51
51
|
import 'vite-node/utils';
|
|
52
52
|
import '@vitest/mocker/node';
|
|
@@ -56,7 +56,6 @@ import '@vitest/utils/error';
|
|
|
56
56
|
import 'node:readline';
|
|
57
57
|
import 'node:process';
|
|
58
58
|
import 'node:v8';
|
|
59
|
-
import 'node:crypto';
|
|
60
59
|
import 'node:tty';
|
|
61
60
|
import 'util';
|
|
62
61
|
import 'node:events';
|
package/dist/reporters.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { aN as BaseReporter, az as BasicReporter, aO as BenchmarkBuiltinReporters, aA as BenchmarkReporter, aB as BenchmarkReportsMap, aP as BuiltinReporterOptions, aQ as BuiltinReporters, aC as DefaultReporter, aD as DotReporter, aE as GithubActionsReporter, aF as HangingProcessReporter, aH as JUnitReporter, aR as JsonAssertionResult, aG as JsonReporter, aS as JsonTestResult, aT as JsonTestResults, ax as ReportedHookContext, m as Reporter, aI as ReportersMap, aJ as TapFlatReporter, aK as TapReporter, ay as TestRunEndReason, aL as VerboseBenchmarkReporter, aM as VerboseReporter } from './chunks/reporters.DTtkbAtP.js';
|
|
2
2
|
import '@vitest/runner';
|
|
3
3
|
import './chunks/environment.d8YfPkTm.js';
|
|
4
4
|
import '@vitest/utils';
|
package/dist/reporters.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export { B as BasicReporter, a as BenchmarkReporter, b as BenchmarkReportsMap, D as DefaultReporter, c as DotReporter, G as GithubActionsReporter, H as HangingProcessReporter, d as JUnitReporter, J as JsonReporter, R as ReportersMap, T as TapFlatReporter, e as TapReporter, V as VerboseBenchmarkReporter, f as VerboseReporter } from './chunks/index.
|
|
1
|
+
export { B as BasicReporter, a as BenchmarkReporter, b as BenchmarkReportsMap, D as DefaultReporter, c as DotReporter, G as GithubActionsReporter, H as HangingProcessReporter, d as JUnitReporter, J as JsonReporter, R as ReportersMap, T as TapFlatReporter, e as TapReporter, V as VerboseBenchmarkReporter, f as VerboseReporter } from './chunks/index.C1f-_gvH.js';
|
|
2
2
|
import 'node:fs';
|
|
3
3
|
import '@vitest/runner/utils';
|
|
4
4
|
import 'pathe';
|
|
5
5
|
import 'tinyrainbow';
|
|
6
|
-
import './chunks/utils.
|
|
6
|
+
import './chunks/utils.bLM2atbD.js';
|
|
7
7
|
import 'node:util';
|
|
8
8
|
import '@vitest/utils';
|
|
9
9
|
import 'node:perf_hooks';
|
|
10
10
|
import '@vitest/utils/source-map';
|
|
11
|
-
import './chunks/typechecker.
|
|
11
|
+
import './chunks/typechecker.cZ0LjdSi.js';
|
|
12
12
|
import 'std-env';
|
|
13
13
|
import 'node:fs/promises';
|
|
14
14
|
import 'tinyexec';
|
package/dist/runners.js
CHANGED
|
@@ -4,8 +4,8 @@ import { a as getBenchOptions, g as getBenchFn } from './chunks/benchmark.Cdu9hj
|
|
|
4
4
|
import { g as getWorkerState } from './chunks/utils.C8RiOc4B.js';
|
|
5
5
|
import { setState, GLOBAL_EXPECT, getState } from '@vitest/expect';
|
|
6
6
|
import { getTests, getNames, getTestName } from '@vitest/runner/utils';
|
|
7
|
-
import { g as getSnapshotClient, i as inject, c as createExpect, v as vi } from './chunks/vi.
|
|
8
|
-
import { r as rpc } from './chunks/rpc.
|
|
7
|
+
import { g as getSnapshotClient, i as inject, c as createExpect, v as vi } from './chunks/vi.DrftpPF8.js';
|
|
8
|
+
import { r as rpc } from './chunks/rpc.TVf73xOu.js';
|
|
9
9
|
import 'chai';
|
|
10
10
|
import './chunks/_commonjsHelpers.BFTU3MAI.js';
|
|
11
11
|
import '@vitest/snapshot';
|
|
@@ -13,7 +13,7 @@ import '@vitest/utils/error';
|
|
|
13
13
|
import '@vitest/utils/source-map';
|
|
14
14
|
import './chunks/date.W2xKR2qe.js';
|
|
15
15
|
import '@vitest/spy';
|
|
16
|
-
import './chunks/index.
|
|
16
|
+
import './chunks/index.68735LiX.js';
|
|
17
17
|
|
|
18
18
|
function createBenchmarkResult(name) {
|
|
19
19
|
return {
|
|
@@ -163,7 +163,7 @@ class VitestTestRunner {
|
|
|
163
163
|
}
|
|
164
164
|
onAfterRunFiles() {
|
|
165
165
|
this.snapshotClient.clear();
|
|
166
|
-
this.workerState.current =
|
|
166
|
+
this.workerState.current = void 0;
|
|
167
167
|
}
|
|
168
168
|
async onAfterRunSuite(suite) {
|
|
169
169
|
if (this.config.logHeapUsage && typeof process !== "undefined") {
|
package/dist/suite.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { g as getBenchFn, a as getBenchOptions } from './chunks/suite.
|
|
1
|
+
export { g as getBenchFn, a as getBenchOptions } from './chunks/suite.qtkXWc6R.js';
|
|
2
2
|
export { VitestRunner, VitestRunnerConfig, createTaskCollector, getCurrentSuite, getCurrentTest, getFn, getHooks, setFn, setHooks } from '@vitest/runner';
|
|
3
3
|
export { createChainable } from '@vitest/runner/utils';
|
|
4
4
|
import './chunks/benchmark.CFFwLv-O.js';
|
package/dist/worker.js
CHANGED
|
@@ -4,15 +4,15 @@ import { workerId } from 'tinypool';
|
|
|
4
4
|
import { ViteNodeRunner, ModuleCacheMap } from 'vite-node/client';
|
|
5
5
|
import { readFileSync } from 'node:fs';
|
|
6
6
|
import { resolve, normalize } from 'pathe';
|
|
7
|
-
import { e as environments } from './chunks/index.
|
|
8
|
-
import { s as setupInspect } from './chunks/inspector.
|
|
9
|
-
import { c as createRuntimeRpc, a as rpcDone } from './chunks/rpc.
|
|
7
|
+
import { e as environments } from './chunks/index.K90BXFOx.js';
|
|
8
|
+
import { s as setupInspect } from './chunks/inspector.DKLceBVD.js';
|
|
9
|
+
import { c as createRuntimeRpc, a as rpcDone } from './chunks/rpc.TVf73xOu.js';
|
|
10
10
|
import { i as isChildProcess, s as setProcessTitle } from './chunks/utils.C8RiOc4B.js';
|
|
11
11
|
import { d as disposeInternalListeners } from './chunks/utils.Cn0zI1t3.js';
|
|
12
12
|
import 'node:console';
|
|
13
13
|
import 'node:module';
|
|
14
14
|
import '@vitest/utils';
|
|
15
|
-
import './chunks/index.
|
|
15
|
+
import './chunks/index.68735LiX.js';
|
|
16
16
|
|
|
17
17
|
function isBuiltinEnvironment(env) {
|
|
18
18
|
return env in environments;
|
|
@@ -43,7 +43,7 @@ async function loadEnvironment(ctx, rpc) {
|
|
|
43
43
|
resolveId: (id, importer) => rpc.resolveId(id, importer, "ssr")
|
|
44
44
|
});
|
|
45
45
|
const root = loader.root;
|
|
46
|
-
const packageId = name[0] === "." || name[0] === "/" ? resolve(root, name) : (await rpc.resolveId(`vitest-environment-${name}`,
|
|
46
|
+
const packageId = name[0] === "." || name[0] === "/" ? resolve(root, name) : (await rpc.resolveId(`vitest-environment-${name}`, void 0, "ssr"))?.id ?? resolve(root, name);
|
|
47
47
|
const pkg = await loader.executeId(normalize(packageId));
|
|
48
48
|
if (!pkg || !pkg.default || typeof pkg.default !== "object") {
|
|
49
49
|
throw new TypeError(
|
|
@@ -105,6 +105,7 @@ async function execute(method, ctx) {
|
|
|
105
105
|
ctx,
|
|
106
106
|
// here we create a new one, workers can reassign this if they need to keep it non-isolated
|
|
107
107
|
moduleCache: new ModuleCacheMap(),
|
|
108
|
+
moduleExecutionInfo: /* @__PURE__ */ new Map(),
|
|
108
109
|
config: ctx.config,
|
|
109
110
|
onCancel,
|
|
110
111
|
environment,
|
package/dist/workers/forks.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import v8 from 'node:v8';
|
|
2
|
-
import { r as runBaseTests } from '../chunks/base.
|
|
2
|
+
import { r as runBaseTests } from '../chunks/base.B2NLWv2w.js';
|
|
3
3
|
import { c as createForksRpcOptions, u as unwrapSerializableConfig } from '../chunks/utils.Cn0zI1t3.js';
|
|
4
4
|
import 'vite-node/client';
|
|
5
|
-
import '../chunks/execute.
|
|
5
|
+
import '../chunks/execute.DNQad00_.js';
|
|
6
6
|
import 'node:fs';
|
|
7
7
|
import 'node:url';
|
|
8
8
|
import 'node:vm';
|
|
@@ -36,6 +36,6 @@ class ForksBaseWorker {
|
|
|
36
36
|
return this.executeTests("collect", state);
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
|
-
|
|
39
|
+
const worker = new ForksBaseWorker();
|
|
40
40
|
|
|
41
|
-
export {
|
|
41
|
+
export { worker as default };
|
|
@@ -6,20 +6,20 @@ import util from 'node:util';
|
|
|
6
6
|
import { startTests, collectTests } from '@vitest/runner';
|
|
7
7
|
import { KNOWN_ASSET_TYPES } from 'vite-node/constants';
|
|
8
8
|
import { installSourcemapsSupport } from 'vite-node/source-map';
|
|
9
|
-
import { s as setupChaiConfig, r as resolveTestRunner, a as resolveSnapshotEnvironment } from '../chunks/index.
|
|
10
|
-
import { s as startCoverageInsideWorker, a as stopCoverageInsideWorker } from '../chunks/coverage.
|
|
11
|
-
import { V as VitestIndex } from '../chunks/index.
|
|
12
|
-
import { c as closeInspector } from '../chunks/inspector.
|
|
13
|
-
import { s as setupCommonEnv } from '../chunks/setup-common.
|
|
9
|
+
import { s as setupChaiConfig, r as resolveTestRunner, a as resolveSnapshotEnvironment } from '../chunks/index.DC3HGwr0.js';
|
|
10
|
+
import { s as startCoverageInsideWorker, a as stopCoverageInsideWorker } from '../chunks/coverage.DnNIv-kJ.js';
|
|
11
|
+
import { V as VitestIndex } from '../chunks/index.SduP00mx.js';
|
|
12
|
+
import { c as closeInspector } from '../chunks/inspector.DKLceBVD.js';
|
|
13
|
+
import { s as setupCommonEnv } from '../chunks/setup-common.IrcyRZ8C.js';
|
|
14
14
|
import { g as getWorkerState } from '../chunks/utils.C8RiOc4B.js';
|
|
15
15
|
import 'chai';
|
|
16
16
|
import 'node:path';
|
|
17
17
|
import '../path.js';
|
|
18
18
|
import 'node:url';
|
|
19
|
-
import '../chunks/rpc.
|
|
19
|
+
import '../chunks/rpc.TVf73xOu.js';
|
|
20
20
|
import '@vitest/utils';
|
|
21
|
-
import '../chunks/index.
|
|
22
|
-
import '../chunks/vi.
|
|
21
|
+
import '../chunks/index.68735LiX.js';
|
|
22
|
+
import '../chunks/vi.DrftpPF8.js';
|
|
23
23
|
import '@vitest/expect';
|
|
24
24
|
import '@vitest/runner/utils';
|
|
25
25
|
import '../chunks/_commonjsHelpers.BFTU3MAI.js';
|
package/dist/workers/threads.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { r as runBaseTests } from '../chunks/base.
|
|
1
|
+
import { r as runBaseTests } from '../chunks/base.B2NLWv2w.js';
|
|
2
2
|
import { a as createThreadsRpcOptions } from '../chunks/utils.Cn0zI1t3.js';
|
|
3
3
|
import 'vite-node/client';
|
|
4
|
-
import '../chunks/execute.
|
|
4
|
+
import '../chunks/execute.DNQad00_.js';
|
|
5
5
|
import 'node:fs';
|
|
6
6
|
import 'node:url';
|
|
7
7
|
import 'node:vm';
|
|
@@ -26,6 +26,6 @@ class ThreadsBaseWorker {
|
|
|
26
26
|
return runBaseTests("collect", state);
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
|
-
|
|
29
|
+
const worker = new ThreadsBaseWorker();
|
|
30
30
|
|
|
31
|
-
export {
|
|
31
|
+
export { worker as default };
|
package/dist/workers/vmForks.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import v8 from 'node:v8';
|
|
2
2
|
import { c as createForksRpcOptions, u as unwrapSerializableConfig } from '../chunks/utils.Cn0zI1t3.js';
|
|
3
|
-
import { r as runVmTests } from '../chunks/vm.
|
|
3
|
+
import { r as runVmTests } from '../chunks/vm.ku9l48hv.js';
|
|
4
4
|
import '@vitest/utils';
|
|
5
5
|
import 'node:url';
|
|
6
6
|
import 'node:vm';
|
|
7
7
|
import 'pathe';
|
|
8
8
|
import '../path.js';
|
|
9
9
|
import 'node:path';
|
|
10
|
-
import '../chunks/console.
|
|
10
|
+
import '../chunks/console.CN7AiMGV.js';
|
|
11
11
|
import 'node:console';
|
|
12
12
|
import 'node:stream';
|
|
13
13
|
import 'tinyrainbow';
|
|
14
14
|
import '../chunks/date.W2xKR2qe.js';
|
|
15
15
|
import '../chunks/utils.C8RiOc4B.js';
|
|
16
|
-
import '../chunks/execute.
|
|
16
|
+
import '../chunks/execute.DNQad00_.js';
|
|
17
17
|
import 'node:fs';
|
|
18
18
|
import '@vitest/utils/error';
|
|
19
19
|
import 'vite-node/client';
|
|
@@ -42,6 +42,6 @@ class ForksVmWorker {
|
|
|
42
42
|
return this.executeTests("collect", state);
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
|
-
|
|
45
|
+
const worker = new ForksVmWorker();
|
|
46
46
|
|
|
47
|
-
export {
|
|
47
|
+
export { worker as default };
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { a as createThreadsRpcOptions } from '../chunks/utils.Cn0zI1t3.js';
|
|
2
|
-
import { r as runVmTests } from '../chunks/vm.
|
|
2
|
+
import { r as runVmTests } from '../chunks/vm.ku9l48hv.js';
|
|
3
3
|
import '@vitest/utils';
|
|
4
4
|
import 'node:url';
|
|
5
5
|
import 'node:vm';
|
|
6
6
|
import 'pathe';
|
|
7
7
|
import '../path.js';
|
|
8
8
|
import 'node:path';
|
|
9
|
-
import '../chunks/console.
|
|
9
|
+
import '../chunks/console.CN7AiMGV.js';
|
|
10
10
|
import 'node:console';
|
|
11
11
|
import 'node:stream';
|
|
12
12
|
import 'tinyrainbow';
|
|
13
13
|
import '../chunks/date.W2xKR2qe.js';
|
|
14
14
|
import '../chunks/utils.C8RiOc4B.js';
|
|
15
|
-
import '../chunks/execute.
|
|
15
|
+
import '../chunks/execute.DNQad00_.js';
|
|
16
16
|
import 'node:fs';
|
|
17
17
|
import '@vitest/utils/error';
|
|
18
18
|
import 'vite-node/client';
|
|
@@ -32,6 +32,6 @@ class ThreadsVmWorker {
|
|
|
32
32
|
return runVmTests("collect", state);
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
|
-
|
|
35
|
+
const worker = new ThreadsVmWorker();
|
|
36
36
|
|
|
37
|
-
export {
|
|
37
|
+
export { worker as default };
|
package/dist/workers.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { W as WorkerGlobalState, C as ContextRPC, B as BirpcOptions, R as RuntimeRPC } from './chunks/worker.
|
|
1
|
+
import { W as WorkerGlobalState, C as ContextRPC, B as BirpcOptions, R as RuntimeRPC } from './chunks/worker.DaAIyCKm.js';
|
|
2
2
|
import { Awaitable } from '@vitest/utils';
|
|
3
3
|
import * as v8 from 'v8';
|
|
4
4
|
import { S as SerializedConfig } from './chunks/config.BRtC-JeT.js';
|
|
5
|
-
import { W as WorkerContext } from './chunks/worker.
|
|
5
|
+
import { W as WorkerContext } from './chunks/worker.B2JXutr8.js';
|
|
6
6
|
import '@vitest/runner';
|
|
7
7
|
import 'vite-node';
|
|
8
8
|
import './chunks/environment.d8YfPkTm.js';
|