vitest 3.0.0-beta.2 → 3.0.0-beta.4
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 +1 -315
- package/config.d.ts +2 -0
- package/dist/browser.d.ts +3 -3
- package/dist/browser.js +1 -1
- package/dist/chunks/{RandomSequencer.gisBJ77r.js → RandomSequencer.DB__To1b.js} +38 -8
- package/dist/chunks/{base.CUgXReRN.js → base.BJ8KO-VX.js} +2 -2
- package/dist/chunks/{cac.Xzv7eNWw.js → cac.BAYqQ2aM.js} +21 -10
- package/dist/chunks/{cli-api.CETCDGgZ.js → cli-api.Dhl34Trr.js} +263 -58
- package/dist/chunks/{config.BTPBhmK5.d.ts → config.BRtC-JeT.d.ts} +6 -0
- package/dist/chunks/{console.BYGVloWk.js → console.CN7AiMGV.js} +16 -7
- package/dist/chunks/{creator.DcAcUhMD.js → creator.Ot9GlSGw.js} +16 -14
- package/dist/chunks/{execute.2pr0rHgK.js → execute.BMOaRArH.js} +27 -16
- package/dist/chunks/{globals.BFncSRNA.js → globals.C5RQxaV3.js} +2 -2
- package/dist/chunks/{index.DoV7W5gc.js → index.B2M9nD1V.js} +6 -1
- package/dist/chunks/{index.CkWmZCXU.js → index.BQbxGbG9.js} +1 -1
- package/dist/chunks/index.CAueP3cK.js +3205 -0
- package/dist/chunks/{reporters.DTtxC3KQ.d.ts → reporters.Dcdq51WE.d.ts} +211 -257
- package/dist/chunks/{resolveConfig.BA-_OKEx.js → resolveConfig.kZFMjKCQ.js} +28 -6
- package/dist/chunks/{runBaseTests.D0dWpzZV.js → runBaseTests.URiUrnWK.js} +8 -6
- package/dist/chunks/{setup-common.Cp_bu5q3.js → setup-common.D0zLenuv.js} +1 -1
- package/dist/chunks/{utils.CMUTX-p8.js → utils.yHKcm4dz.js} +10 -21
- package/dist/chunks/{vi.S4Fq8wSo.js → vi.Da_PT3Vw.js} +554 -272
- package/dist/chunks/{vite.CXaetSK3.d.ts → vite.DzluO1Kj.d.ts} +1 -1
- package/dist/chunks/{vm.DGhTouO3.js → vm.DrFVeTXo.js} +4 -4
- package/dist/chunks/{worker.ClntunZp.d.ts → worker.BIVMnzXw.d.ts} +1 -1
- package/dist/chunks/{worker.o1PBoDdo.d.ts → worker.Hz_LAzfd.d.ts} +2 -1
- package/dist/cli.js +1 -1
- package/dist/config.cjs +1 -0
- package/dist/config.d.ts +4 -4
- package/dist/config.js +1 -0
- package/dist/coverage.d.ts +2 -2
- package/dist/coverage.js +33 -8
- package/dist/execute.d.ts +3 -3
- package/dist/execute.js +1 -1
- package/dist/index.d.ts +7 -7
- package/dist/index.js +2 -2
- package/dist/node.d.ts +6 -6
- package/dist/node.js +10 -11
- package/dist/reporters.d.ts +2 -2
- package/dist/reporters.js +3 -7
- package/dist/runners.d.ts +1 -1
- package/dist/runners.js +5 -12
- package/dist/workers/forks.js +2 -2
- package/dist/workers/runVmTests.js +7 -5
- package/dist/workers/threads.js +2 -2
- package/dist/workers/vmForks.js +3 -3
- package/dist/workers/vmThreads.js +3 -3
- package/dist/workers.d.ts +3 -3
- package/dist/workers.js +4 -4
- package/package.json +17 -19
- package/dist/chunks/index.9ZEBV_TJ.js +0 -5442
|
@@ -2,8 +2,8 @@ import { fileURLToPath, pathToFileURL } from 'node:url';
|
|
|
2
2
|
import vm, { isContext } from 'node:vm';
|
|
3
3
|
import { dirname, basename, extname, normalize, join, resolve } from 'pathe';
|
|
4
4
|
import { distDir } from '../path.js';
|
|
5
|
-
import { createCustomConsole } from './console.
|
|
6
|
-
import { g as getDefaultRequestStubs, s as startVitestExecutor } from './execute.
|
|
5
|
+
import { createCustomConsole } from './console.CN7AiMGV.js';
|
|
6
|
+
import { g as getDefaultRequestStubs, s as startVitestExecutor } from './execute.BMOaRArH.js';
|
|
7
7
|
import fs from 'node:fs';
|
|
8
8
|
import { dirname as dirname$1 } from 'node:path';
|
|
9
9
|
import { isNodeBuiltin, isPrimitive, toArray, getCachedData, setCacheData } from 'vite-node/utils';
|
|
@@ -633,7 +633,7 @@ class ExternalModulesExecutor {
|
|
|
633
633
|
}
|
|
634
634
|
return {};
|
|
635
635
|
}
|
|
636
|
-
|
|
636
|
+
wrapCoreSyntheticModule(identifier, exports) {
|
|
637
637
|
const moduleKeys = Object.keys(exports);
|
|
638
638
|
const m = new SyntheticModule(
|
|
639
639
|
[...moduleKeys, "default"],
|
|
@@ -711,7 +711,7 @@ class ExternalModulesExecutor {
|
|
|
711
711
|
return await this.esm.createDataModule(identifier);
|
|
712
712
|
case "builtin": {
|
|
713
713
|
const exports = this.require(identifier);
|
|
714
|
-
return this.
|
|
714
|
+
return this.wrapCoreSyntheticModule(identifier, exports);
|
|
715
715
|
}
|
|
716
716
|
case "vite":
|
|
717
717
|
return await this.vite.createViteModule(url);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { File, TaskResultPack, CancelReason, FileSpecification, Task } from '@vitest/runner';
|
|
2
2
|
import { ViteNodeResolveId, ModuleCacheMap } from 'vite-node';
|
|
3
|
-
import { S as SerializedConfig } from './config.
|
|
3
|
+
import { S as SerializedConfig } from './config.BRtC-JeT.js';
|
|
4
4
|
import { T as TransformMode, U as UserConsoleLog, A as AfterSuiteRunMeta, E as Environment } from './environment.d8YfPkTm.js';
|
|
5
5
|
import { SnapshotResult } from '@vitest/snapshot';
|
|
6
6
|
|
|
@@ -104,6 +104,7 @@ interface RuntimeRPC {
|
|
|
104
104
|
onPathsCollected: (paths: string[]) => void;
|
|
105
105
|
onUserConsoleLog: (log: UserConsoleLog) => void;
|
|
106
106
|
onUnhandledError: (err: unknown, type: string) => void;
|
|
107
|
+
onQueued: (file: File) => void;
|
|
107
108
|
onCollected: (files: File[]) => Promise<void>;
|
|
108
109
|
onAfterSuiteRun: (meta: AfterSuiteRunMeta) => void;
|
|
109
110
|
onTaskUpdate: (pack: TaskResultPack[]) => Promise<void>;
|
package/dist/cli.js
CHANGED
package/dist/config.cjs
CHANGED
|
@@ -15,6 +15,7 @@ const extraInlineDeps = [
|
|
|
15
15
|
const isNode = typeof process < "u" && typeof process.stdout < "u" && !process.versions?.deno && !globalThis.window;
|
|
16
16
|
const isDeno = typeof process < "u" && typeof process.stdout < "u" && process.versions?.deno !== void 0;
|
|
17
17
|
(isNode || isDeno) && process.platform === "win32";
|
|
18
|
+
(isNode || isDeno) && process.stdout?.isTTY && !stdEnv.isCI;
|
|
18
19
|
|
|
19
20
|
const defaultInclude = ["**/*.{test,spec}.?(c|m)[jt]s?(x)"];
|
|
20
21
|
const defaultExclude = [
|
package/dist/config.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { UserConfig as UserConfig$1, ConfigEnv } from 'vite';
|
|
2
2
|
export { ConfigEnv, Plugin, UserConfig as ViteUserConfig, mergeConfig } from 'vite';
|
|
3
|
-
import { R as ResolvedCoverageOptions, d as CoverageV8Options, U as UserWorkspaceConfig, e as UserProjectConfigFn, f as UserProjectConfigExport, T as TestProjectConfiguration } from './chunks/reporters.
|
|
4
|
-
export { W as WorkspaceProjectConfiguration } from './chunks/reporters.
|
|
5
|
-
import './chunks/vite.
|
|
3
|
+
import { R as ResolvedCoverageOptions, d as CoverageV8Options, U as UserWorkspaceConfig, e as UserProjectConfigFn, f as UserProjectConfigExport, T as TestProjectConfiguration } from './chunks/reporters.Dcdq51WE.js';
|
|
4
|
+
export { W as WorkspaceProjectConfiguration } from './chunks/reporters.Dcdq51WE.js';
|
|
5
|
+
import './chunks/vite.DzluO1Kj.js';
|
|
6
6
|
import '@vitest/runner';
|
|
7
7
|
import './chunks/environment.d8YfPkTm.js';
|
|
8
8
|
import '@vitest/utils';
|
|
9
9
|
import 'node:stream';
|
|
10
10
|
import '@vitest/utils/source-map';
|
|
11
|
-
import './chunks/config.
|
|
11
|
+
import './chunks/config.BRtC-JeT.js';
|
|
12
12
|
import '@vitest/pretty-format';
|
|
13
13
|
import '@vitest/snapshot';
|
|
14
14
|
import '@vitest/snapshot/environment';
|
package/dist/config.js
CHANGED
|
@@ -13,6 +13,7 @@ const extraInlineDeps = [
|
|
|
13
13
|
const isNode = typeof process < "u" && typeof process.stdout < "u" && !process.versions?.deno && !globalThis.window;
|
|
14
14
|
const isDeno = typeof process < "u" && typeof process.stdout < "u" && process.versions?.deno !== void 0;
|
|
15
15
|
(isNode || isDeno) && process.platform === "win32";
|
|
16
|
+
(isNode || isDeno) && process.stdout?.isTTY && !isCI;
|
|
16
17
|
|
|
17
18
|
const defaultInclude = ["**/*.{test,spec}.?(c|m)[jt]s?(x)"];
|
|
18
19
|
const defaultExclude = [
|
package/dist/coverage.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as vite from 'vite';
|
|
2
|
-
import { R as ResolvedCoverageOptions, V as Vitest, C as CoverageMap, a as ReportContext } from './chunks/reporters.
|
|
2
|
+
import { R as ResolvedCoverageOptions, V as Vitest, C as CoverageMap, a as ReportContext } from './chunks/reporters.Dcdq51WE.js';
|
|
3
3
|
import { A as AfterSuiteRunMeta } from './chunks/environment.d8YfPkTm.js';
|
|
4
4
|
import '@vitest/runner';
|
|
5
5
|
import '@vitest/utils';
|
|
6
6
|
import 'node:stream';
|
|
7
7
|
import '@vitest/utils/source-map';
|
|
8
|
-
import './chunks/config.
|
|
8
|
+
import './chunks/config.BRtC-JeT.js';
|
|
9
9
|
import '@vitest/pretty-format';
|
|
10
10
|
import '@vitest/snapshot';
|
|
11
11
|
import '@vitest/snapshot/environment';
|
package/dist/coverage.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { existsSync, promises, readdirSync, writeFileSync } from 'node:fs';
|
|
2
|
-
import { c as coverageConfigDefaults, r as resolveCoverageReporters, m as mm } from './chunks/resolveConfig.
|
|
2
|
+
import { c as coverageConfigDefaults, r as resolveCoverageReporters, m as mm } from './chunks/resolveConfig.kZFMjKCQ.js';
|
|
3
3
|
import { resolve, relative } from 'pathe';
|
|
4
4
|
import c from 'tinyrainbow';
|
|
5
5
|
import '@vitest/utils';
|
|
@@ -13,7 +13,7 @@ import 'node:v8';
|
|
|
13
13
|
import 'node:util';
|
|
14
14
|
import './chunks/constants.fzPh7AOq.js';
|
|
15
15
|
import 'node:os';
|
|
16
|
-
import './chunks/RandomSequencer.
|
|
16
|
+
import './chunks/RandomSequencer.DB__To1b.js';
|
|
17
17
|
import 'std-env';
|
|
18
18
|
import 'node:perf_hooks';
|
|
19
19
|
import '@vitest/runner/utils';
|
|
@@ -271,7 +271,10 @@ Update your dependencies and make sure the versions match.`
|
|
|
271
271
|
for (const { summary, file } of summaries) {
|
|
272
272
|
for (const thresholdKey of THRESHOLD_KEYS) {
|
|
273
273
|
const threshold = thresholds[thresholdKey];
|
|
274
|
-
if (threshold
|
|
274
|
+
if (threshold === void 0) {
|
|
275
|
+
continue;
|
|
276
|
+
}
|
|
277
|
+
if (threshold >= 0) {
|
|
275
278
|
const coverage = summary.data[thresholdKey].pct;
|
|
276
279
|
if (coverage < threshold) {
|
|
277
280
|
process.exitCode = 1;
|
|
@@ -281,6 +284,17 @@ Update your dependencies and make sure the versions match.`
|
|
|
281
284
|
}
|
|
282
285
|
this.ctx.logger.error(errorMessage);
|
|
283
286
|
}
|
|
287
|
+
} else {
|
|
288
|
+
const uncovered = summary.data[thresholdKey].total - summary.data[thresholdKey].covered;
|
|
289
|
+
const absoluteThreshold = threshold * -1;
|
|
290
|
+
if (uncovered > absoluteThreshold) {
|
|
291
|
+
process.exitCode = 1;
|
|
292
|
+
let errorMessage = `ERROR: Uncovered ${thresholdKey} (${uncovered}) exceed ${name === GLOBAL_THRESHOLDS_KEY ? name : `"${name}"`} threshold (${absoluteThreshold})`;
|
|
293
|
+
if (this.options.thresholds?.perFile && file) {
|
|
294
|
+
errorMessage += ` for ${relative("./", file).replace(/\\/g, "/")}`;
|
|
295
|
+
}
|
|
296
|
+
this.ctx.logger.error(errorMessage);
|
|
297
|
+
}
|
|
284
298
|
}
|
|
285
299
|
}
|
|
286
300
|
}
|
|
@@ -300,11 +314,22 @@ Update your dependencies and make sure the versions match.`
|
|
|
300
314
|
const thresholdsToUpdate = [];
|
|
301
315
|
for (const key of THRESHOLD_KEYS) {
|
|
302
316
|
const threshold = thresholds[key] ?? 100;
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
317
|
+
if (threshold >= 0) {
|
|
318
|
+
const actual = Math.min(
|
|
319
|
+
...summaries.map((summary) => summary[key].pct)
|
|
320
|
+
);
|
|
321
|
+
if (actual > threshold) {
|
|
322
|
+
thresholdsToUpdate.push([key, actual]);
|
|
323
|
+
}
|
|
324
|
+
} else {
|
|
325
|
+
const absoluteThreshold = threshold * -1;
|
|
326
|
+
const actual = Math.max(
|
|
327
|
+
...summaries.map((summary) => summary[key].total - summary[key].covered)
|
|
328
|
+
);
|
|
329
|
+
if (actual < absoluteThreshold) {
|
|
330
|
+
const updatedThreshold = actual === 0 ? 100 : actual * -1;
|
|
331
|
+
thresholdsToUpdate.push([key, updatedThreshold]);
|
|
332
|
+
}
|
|
308
333
|
}
|
|
309
334
|
}
|
|
310
335
|
if (thresholdsToUpdate.length === 0) {
|
package/dist/execute.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { ViteNodeRunnerOptions } from 'vite-node';
|
|
2
2
|
import { ViteNodeRunner } from 'vite-node/client';
|
|
3
|
-
import { R as RuntimeRPC, W as WorkerGlobalState } from './chunks/worker.
|
|
3
|
+
import { R as RuntimeRPC, W as WorkerGlobalState } from './chunks/worker.Hz_LAzfd.js';
|
|
4
4
|
import vm from 'node:vm';
|
|
5
5
|
import * as _vitest_mocker from '@vitest/mocker';
|
|
6
6
|
import { MockedModuleType } from '@vitest/mocker';
|
|
7
7
|
import { P as PendingSuiteMock, b as MockFactory, a as MockOptions } from './chunks/mocker.cRtM890J.js';
|
|
8
8
|
import '@vitest/runner';
|
|
9
|
-
import './chunks/config.
|
|
9
|
+
import './chunks/config.BRtC-JeT.js';
|
|
10
10
|
import '@vitest/pretty-format';
|
|
11
11
|
import '@vitest/snapshot';
|
|
12
12
|
import '@vitest/snapshot/environment';
|
|
@@ -65,7 +65,7 @@ declare class ExternalModulesExecutor {
|
|
|
65
65
|
resolveModule: (specifier: string, referencer: string) => Promise<VMModule>;
|
|
66
66
|
resolve(specifier: string, parent: string): string;
|
|
67
67
|
private findNearestPackageData;
|
|
68
|
-
private
|
|
68
|
+
private wrapCoreSyntheticModule;
|
|
69
69
|
private wrapCommonJsSynteticModule;
|
|
70
70
|
private getModuleInformation;
|
|
71
71
|
private createModule;
|
package/dist/execute.js
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { TaskResultPack as TaskResultPack$1, File as File$1, 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, b as CoverageProvider$1, a as ReportContext$1, c as CoverageProviderModule$1, g as CoverageReporter$1, h as CoverageProviderName, i as CoverageOptions$1, R as ResolvedCoverageOptions$1, B as BaseCoverageOptions$1, j as CoverageIstanbulOptions$1, d as CoverageV8Options$1, k as CustomProviderOptions$1, l as Reporter$1, V as Vitest$1, m as BrowserScript$1, n as BrowserConfigOptions$1, o as BuiltinEnvironment$1, p as VitestEnvironment$1, P as Pool$1, q as PoolOptions$1, r as CSSModuleScopeStrategy$1, A as ApiConfig$1, s as VitestRunMode$1, D as DepsOptimizationOptions$1, t as TransformModePatterns$1, I as InlineConfig$1, u as TypecheckConfig$1, v as UserConfig$1, w as ResolvedConfig$1, x as ProjectConfig$1, U as UserWorkspaceConfig$1, y as BenchmarkUserOptions$1 } from './chunks/reporters.
|
|
4
|
-
import { W as WorkerContext$1 } from './chunks/worker.
|
|
3
|
+
import { S as SerializedTestSpecification, b as CoverageProvider$1, a as ReportContext$1, c as CoverageProviderModule$1, g as CoverageReporter$1, h as CoverageProviderName, i as CoverageOptions$1, R as ResolvedCoverageOptions$1, B as BaseCoverageOptions$1, j as CoverageIstanbulOptions$1, d as CoverageV8Options$1, k as CustomProviderOptions$1, l as Reporter$1, V as Vitest$1, m as BrowserScript$1, n as BrowserConfigOptions$1, o as BuiltinEnvironment$1, p as VitestEnvironment$1, P as Pool$1, q as PoolOptions$1, r as CSSModuleScopeStrategy$1, A as ApiConfig$1, s as VitestRunMode$1, D as DepsOptimizationOptions$1, t as TransformModePatterns$1, I as InlineConfig$1, u as TypecheckConfig$1, v as UserConfig$1, w as ResolvedConfig$1, x as ProjectConfig$1, U as UserWorkspaceConfig$1, y as BenchmarkUserOptions$1 } from './chunks/reporters.Dcdq51WE.js';
|
|
4
|
+
import { W as WorkerContext$1 } from './chunks/worker.BIVMnzXw.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/types.BOjykUpq.js';
|
|
6
6
|
import { U as UserConsoleLog, M as ModuleGraphData, b as Awaitable$1, 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.Hz_LAzfd.js';
|
|
9
|
+
export { C as ContextRPC, d as ContextTestEnvironment, e as ResolveIdFunction, c as RunnerRPC, R as RuntimeRPC, W as WorkerGlobalState } from './chunks/worker.Hz_LAzfd.js';
|
|
10
|
+
import './chunks/vite.DzluO1Kj.js';
|
|
11
11
|
import { PromisifyAssertion, Tester, ExpectStatic } from '@vitest/expect';
|
|
12
12
|
export { Assertion, AsymmetricMatchersContaining, ExpectPollOptions, ExpectStatic, JestAssertion } from '@vitest/expect';
|
|
13
13
|
import { Plugin } from '@vitest/pretty-format';
|
|
@@ -15,8 +15,8 @@ import { SnapshotState } from '@vitest/snapshot';
|
|
|
15
15
|
export { SnapshotData, SnapshotMatchOptions, SnapshotResult, SnapshotSerializer, SnapshotStateOptions, SnapshotSummary, SnapshotUpdateState, UncheckedSnapshot } from '@vitest/snapshot';
|
|
16
16
|
import { B as BenchmarkResult } from './chunks/benchmark.CFFwLv-O.js';
|
|
17
17
|
export { a as BenchFunction, b as Benchmark, c as BenchmarkAPI } from './chunks/benchmark.CFFwLv-O.js';
|
|
18
|
-
import { S as SerializedConfig, F as FakeTimerInstallOpts, R as RuntimeOptions } from './chunks/config.
|
|
19
|
-
export { b as RuntimeConfig, a as SerializedCoverageConfig } from './chunks/config.
|
|
18
|
+
import { S as SerializedConfig, F as FakeTimerInstallOpts, R as RuntimeOptions } from './chunks/config.BRtC-JeT.js';
|
|
19
|
+
export { b as RuntimeConfig, a as SerializedCoverageConfig } from './chunks/config.BRtC-JeT.js';
|
|
20
20
|
import { spyOn, fn, MaybeMockedDeep, MaybeMocked, MaybePartiallyMocked, MaybePartiallyMockedDeep, MockInstance } from '@vitest/spy';
|
|
21
21
|
export { Mock, MockContext, MockInstance, Mocked, MockedClass, MockedFunction, MockedObject } from '@vitest/spy';
|
|
22
22
|
import { M as MockFactoryWithHelper, a as MockOptions } from './chunks/mocker.cRtM890J.js';
|
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.Da_PT3Vw.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.BQbxGbG9.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,17 +1,17 @@
|
|
|
1
|
-
import { s as VitestRunMode, z as VitestOptions, V as Vitest, v as UserConfig$1, A as ApiConfig, E as TestProject, w as ResolvedConfig, F as TestSequencer, G as TestSpecification, L as Logger, H as TestModule, M as ModuleDiagnostic } from './chunks/reporters.
|
|
2
|
-
export { B as BaseCoverageOptions, y as BenchmarkUserOptions, aa as BrowserBuiltinProvider, ab as BrowserCommand, ac as BrowserCommandContext, n as BrowserConfigOptions, ad as
|
|
1
|
+
import { s as VitestRunMode, z as VitestOptions, V as Vitest, v as UserConfig$1, A as ApiConfig, E as TestProject, w as ResolvedConfig, F as TestSequencer, G as TestSpecification, L as Logger, H as TestModule, M as ModuleDiagnostic } from './chunks/reporters.Dcdq51WE.js';
|
|
2
|
+
export { B as BaseCoverageOptions, y as BenchmarkUserOptions, aa as BrowserBuiltinProvider, ab as BrowserCommand, ac as BrowserCommandContext, n as BrowserConfigOptions, ad as BrowserInstanceOption, ae as BrowserOrchestrator, af as BrowserProvider, ag as BrowserProviderInitializationOptions, ah as BrowserProviderModule, ai as BrowserProviderOptions, m as BrowserScript, aj as BrowserServerState, ak as BrowserServerStateSession, o as BuiltinEnvironment, al as CDPSession, r as CSSModuleScopeStrategy, j as CoverageIstanbulOptions, i as CoverageOptions, b as CoverageProvider, c as CoverageProviderModule, g as CoverageReporter, d as CoverageV8Options, k as CustomProviderOptions, D as DepsOptimizationOptions, Z as HTMLOptions, I as InlineConfig, $ as JUnitOptions, _ as JsonOptions, O as OnServerRestartHandler, J as OnTestsRerunHandler, am as ParentProjectBrowser, P as Pool, q as PoolOptions, N as ProcessPool, an as ProjectBrowser, x as ProjectConfig, a as ReportContext, aq as ResolveSnapshotPathHandler, ar as ResolveSnapshotPathHandlerContext, ao as ResolvedBrowserOptions, R as ResolvedCoverageOptions, ap as ResolvedProjectConfig, Y as SerializedTestProject, a0 as TaskOptions, a1 as TestCase, a2 as TestCollection, a3 as TestDiagnostic, a4 as TestResult, a5 as TestResultFailed, a6 as TestResultPassed, a7 as TestResultSkipped, as as TestRunResult, a9 as TestSequencerConstructor, a8 as TestSuite, t as TransformModePatterns, u as TypecheckConfig, U as UserWorkspaceConfig, p as VitestEnvironment, K as VitestPackageInstaller, Q as WorkspaceSpec, X as getFilePoolName } from './chunks/reporters.Dcdq51WE.js';
|
|
3
3
|
import { UserConfig, 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 { R as RuntimeRPC } from './chunks/worker.
|
|
7
|
+
import { R as RuntimeRPC } from './chunks/worker.Hz_LAzfd.js';
|
|
8
8
|
import { Writable } from 'node:stream';
|
|
9
|
-
export { W as WorkerContext } from './chunks/worker.
|
|
9
|
+
export { W as WorkerContext } from './chunks/worker.BIVMnzXw.js';
|
|
10
10
|
export { C as TypeCheckCollectLineNumbers, a as TypeCheckCollectLines, c as TypeCheckContext, T as TypeCheckErrorInfo, R as TypeCheckRawErrorsMap, b as TypeCheckRootAndTarget } from './chunks/types.BOjykUpq.js';
|
|
11
11
|
import createDebug from 'debug';
|
|
12
12
|
export { generateFileHash } from '@vitest/runner/utils';
|
|
13
13
|
export { f as EnvironmentOptions, H as HappyDOMOptions, J as JSDOMOptions } from './chunks/environment.d8YfPkTm.js';
|
|
14
|
-
export { b as RuntimeConfig } from './chunks/config.
|
|
14
|
+
export { b as RuntimeConfig } from './chunks/config.BRtC-JeT.js';
|
|
15
15
|
export { SequenceHooks, SequenceSetupFiles } from '@vitest/runner';
|
|
16
16
|
import '@vitest/utils';
|
|
17
17
|
import '@vitest/utils/source-map';
|
|
@@ -122,4 +122,4 @@ declare const TestFile: typeof TestModule;
|
|
|
122
122
|
*/
|
|
123
123
|
type FileDiagnostic = ModuleDiagnostic;
|
|
124
124
|
|
|
125
|
-
export { ApiConfig, BaseSequencer, type CliParseOptions, type FileDiagnostic, GitNotFoundError, type GlobalSetupContext, ModuleDiagnostic, ResolvedConfig, TestFile, TestModule, TestProject, TestSequencer, TestSpecification, FilesNotFoundError as TestsNotFoundError, UserConfig$1 as UserConfig, Vitest, VitestPlugin, VitestRunMode, TestProject as WorkspaceProject, createDebugger, createMethodsRPC, createServer, createViteLogger, createViteServer, createVitest, distDir, parseCLI, registerConsoleShortcuts, resolveApiServerConfig, resolveConfig, resolveFsAllow, rootDir, startVitest, version };
|
|
125
|
+
export { ApiConfig, BaseSequencer, type CliParseOptions, type FileDiagnostic, GitNotFoundError, type GlobalSetupContext, ModuleDiagnostic, ResolvedConfig, TestFile, TestModule, TestProject, TestSequencer, TestSpecification, FilesNotFoundError as TestsNotFoundError, UserConfig$1 as UserConfig, Vitest, VitestOptions, VitestPlugin, VitestRunMode, TestProject as WorkspaceProject, createDebugger, createMethodsRPC, createServer, createViteLogger, createViteServer, createVitest, distDir, parseCLI, registerConsoleShortcuts, resolveApiServerConfig, resolveConfig, resolveFsAllow, rootDir, startVitest, version };
|
package/dist/node.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
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 } 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
|
-
import { f as TestModule } from './chunks/index.
|
|
6
|
-
export { p as parseCLI } from './chunks/cac.
|
|
7
|
-
import { a as resolveConfig$2 } from './chunks/resolveConfig.
|
|
8
|
-
export { d as createMethodsRPC, g as getFilePoolName, b as resolveApiServerConfig } from './chunks/resolveConfig.
|
|
3
|
+
import { V as Vitest, a as VitestPlugin } from './chunks/cli-api.Dhl34Trr.js';
|
|
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.Dhl34Trr.js';
|
|
5
|
+
import { f as TestModule } from './chunks/index.CAueP3cK.js';
|
|
6
|
+
export { p as parseCLI } from './chunks/cac.BAYqQ2aM.js';
|
|
7
|
+
import { a as resolveConfig$2 } from './chunks/resolveConfig.kZFMjKCQ.js';
|
|
8
|
+
export { d as createMethodsRPC, g as getFilePoolName, b as resolveApiServerConfig } from './chunks/resolveConfig.kZFMjKCQ.js';
|
|
9
9
|
import { slash } from '@vitest/utils';
|
|
10
10
|
import { f as findUp } from './chunks/index.BJDntFik.js';
|
|
11
11
|
import { resolve } from 'pathe';
|
|
12
12
|
import { c as configFiles } from './chunks/constants.fzPh7AOq.js';
|
|
13
|
-
export { B as BaseSequencer } from './chunks/RandomSequencer.
|
|
13
|
+
export { B as BaseSequencer } from './chunks/RandomSequencer.DB__To1b.js';
|
|
14
14
|
export { distDir, rootDir } from './path.js';
|
|
15
15
|
import createDebug from 'debug';
|
|
16
16
|
export { generateFileHash } from '@vitest/runner/utils';
|
|
@@ -36,7 +36,6 @@ import '@vitest/utils/source-map';
|
|
|
36
36
|
import 'node:module';
|
|
37
37
|
import 'node:url';
|
|
38
38
|
import 'tinyrainbow';
|
|
39
|
-
import 'std-env';
|
|
40
39
|
import 'node:fs/promises';
|
|
41
40
|
import 'node:os';
|
|
42
41
|
import 'os';
|
|
@@ -45,16 +44,16 @@ import 'fs';
|
|
|
45
44
|
import 'vite-node/utils';
|
|
46
45
|
import '@vitest/mocker/node';
|
|
47
46
|
import 'magic-string';
|
|
48
|
-
import '
|
|
47
|
+
import './chunks/utils.yHKcm4dz.js';
|
|
49
48
|
import 'node:util';
|
|
50
|
-
import '
|
|
49
|
+
import 'node:readline';
|
|
51
50
|
import 'node:perf_hooks';
|
|
52
51
|
import 'node:stream';
|
|
53
52
|
import 'node:console';
|
|
54
53
|
import 'node:process';
|
|
55
|
-
import 'assert';
|
|
56
54
|
import 'node:assert';
|
|
57
55
|
import 'node:v8';
|
|
56
|
+
import 'std-env';
|
|
58
57
|
import 'util';
|
|
59
58
|
import 'node:events';
|
|
60
59
|
import 'tinypool';
|
package/dist/reporters.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { aD as BaseReporter, at as BasicReporter, aN as BenchmarkBuiltinReporters, aM as BenchmarkReportsMap, aI as BuiltinReporterOptions, aH as BuiltinReporters, au as DefaultReporter, av as DotReporter, aF as FileDiagnostic, aw as GithubActionsReporter, ax as HangingProcessReporter, az as JUnitReporter, aJ as JsonAssertionResult, ay as JsonReporter, aK as JsonTestResult, aL as JsonTestResults, l as Reporter, aG as ReportersMap, aA as TapFlatReporter, aB as TapReporter, a0 as TaskOptions, a1 as TestCase, a2 as TestCollection, a3 as TestDiagnostic, aE as TestFile, H as TestModule, E as TestProject, a4 as TestResult, a5 as TestResultFailed, a6 as TestResultPassed, a7 as TestResultSkipped, a8 as TestSuite, aC as VerboseReporter } from './chunks/reporters.Dcdq51WE.js';
|
|
2
2
|
import '@vitest/runner';
|
|
3
3
|
import './chunks/environment.d8YfPkTm.js';
|
|
4
4
|
import '@vitest/utils';
|
|
5
5
|
import 'node:stream';
|
|
6
6
|
import 'vite';
|
|
7
7
|
import '@vitest/utils/source-map';
|
|
8
|
-
import './chunks/config.
|
|
8
|
+
import './chunks/config.BRtC-JeT.js';
|
|
9
9
|
import '@vitest/pretty-format';
|
|
10
10
|
import '@vitest/snapshot';
|
|
11
11
|
import '@vitest/snapshot/environment';
|
package/dist/reporters.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export { B as BasicReporter, h as BenchmarkReportsMap, 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, e as TestCase, d as TestFile, f as TestModule, g as TestSuite, V as VerboseReporter } from './chunks/index.
|
|
1
|
+
export { B as BasicReporter, h as BenchmarkReportsMap, 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, e as TestCase, d as TestFile, f as TestModule, g as TestSuite, V as VerboseReporter } from './chunks/index.CAueP3cK.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.yHKcm4dz.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/RandomSequencer.
|
|
11
|
+
import './chunks/RandomSequencer.DB__To1b.js';
|
|
12
12
|
import 'std-env';
|
|
13
13
|
import 'node:fs/promises';
|
|
14
14
|
import 'tinyexec';
|
|
@@ -22,7 +22,3 @@ import 'vite-node/utils';
|
|
|
22
22
|
import 'node:crypto';
|
|
23
23
|
import 'node:stream';
|
|
24
24
|
import 'node:console';
|
|
25
|
-
import 'node:process';
|
|
26
|
-
import './chunks/_commonjsHelpers.BFTU3MAI.js';
|
|
27
|
-
import 'assert';
|
|
28
|
-
import 'events';
|
package/dist/runners.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as tinybench from 'tinybench';
|
|
2
2
|
import { VitestRunner, VitestRunnerImportSource, Suite, File, Task, CancelReason, TestContext } from '@vitest/runner';
|
|
3
|
-
import { S as SerializedConfig } from './chunks/config.
|
|
3
|
+
import { S as SerializedConfig } from './chunks/config.BRtC-JeT.js';
|
|
4
4
|
import '@vitest/pretty-format';
|
|
5
5
|
import '@vitest/snapshot';
|
|
6
6
|
import '@vitest/snapshot/environment';
|
package/dist/runners.js
CHANGED
|
@@ -4,7 +4,7 @@ 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.
|
|
7
|
+
import { g as getSnapshotClient, i as inject, c as createExpect, v as vi } from './chunks/vi.Da_PT3Vw.js';
|
|
8
8
|
import { r as rpc } from './chunks/rpc.C3q9uwRX.js';
|
|
9
9
|
import 'chai';
|
|
10
10
|
import './chunks/_commonjsHelpers.BFTU3MAI.js';
|
|
@@ -30,7 +30,7 @@ async function runBenchmarkSuite(suite, runner) {
|
|
|
30
30
|
const benchmarkGroup = [];
|
|
31
31
|
const benchmarkSuiteGroup = [];
|
|
32
32
|
for (const task of suite.tasks) {
|
|
33
|
-
if (task.mode !== "run") {
|
|
33
|
+
if (task.mode !== "run" && task.mode !== "queued") {
|
|
34
34
|
continue;
|
|
35
35
|
}
|
|
36
36
|
if (task.meta?.benchmark) {
|
|
@@ -57,6 +57,7 @@ async function runBenchmarkSuite(suite, runner) {
|
|
|
57
57
|
const task2 = e.task;
|
|
58
58
|
const taskRes = task2.result;
|
|
59
59
|
const result = benchmark.result.benchmark;
|
|
60
|
+
benchmark.result.state = "pass";
|
|
60
61
|
Object.assign(result, taskRes);
|
|
61
62
|
const samples = result.samples;
|
|
62
63
|
result.sampleCount = samples.length;
|
|
@@ -93,12 +94,12 @@ async function runBenchmarkSuite(suite, runner) {
|
|
|
93
94
|
const task = new Task(benchmarkInstance, benchmark.name, benchmarkFn);
|
|
94
95
|
benchmarkTasks.set(benchmark, task);
|
|
95
96
|
addBenchTaskListener(task, benchmark);
|
|
96
|
-
updateTask$1(benchmark);
|
|
97
97
|
});
|
|
98
98
|
const { setTimeout } = getSafeTimers();
|
|
99
99
|
const tasks = [];
|
|
100
100
|
for (const benchmark of benchmarkGroup) {
|
|
101
101
|
const task = benchmarkTasks.get(benchmark);
|
|
102
|
+
updateTask$1(benchmark);
|
|
102
103
|
await task.warmup();
|
|
103
104
|
tasks.push([
|
|
104
105
|
await new Promise(
|
|
@@ -111,14 +112,6 @@ async function runBenchmarkSuite(suite, runner) {
|
|
|
111
112
|
}
|
|
112
113
|
suite.result.duration = performance.now() - start;
|
|
113
114
|
suite.result.state = "pass";
|
|
114
|
-
tasks.sort(([taskA], [taskB]) => taskA.result.mean - taskB.result.mean).forEach(([, benchmark], idx) => {
|
|
115
|
-
benchmark.result.state = "pass";
|
|
116
|
-
if (benchmark) {
|
|
117
|
-
const result = benchmark.result.benchmark;
|
|
118
|
-
result.rank = Number(idx) + 1;
|
|
119
|
-
updateTask$1(benchmark);
|
|
120
|
-
}
|
|
121
|
-
});
|
|
122
115
|
updateTask$1(suite);
|
|
123
116
|
defer.resolve(null);
|
|
124
117
|
await defer;
|
|
@@ -204,7 +197,7 @@ class VitestTestRunner {
|
|
|
204
197
|
if (this.cancelRun) {
|
|
205
198
|
test.mode = "skip";
|
|
206
199
|
}
|
|
207
|
-
if (test.mode !== "run") {
|
|
200
|
+
if (test.mode !== "run" && test.mode !== "queued") {
|
|
208
201
|
return;
|
|
209
202
|
}
|
|
210
203
|
clearModuleMocks(this.config);
|
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.BJ8KO-VX.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.BMOaRArH.js';
|
|
6
6
|
import 'node:fs';
|
|
7
7
|
import 'node:url';
|
|
8
8
|
import 'node:vm';
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { createRequire } from 'node:module';
|
|
2
2
|
import { performance } from 'node:perf_hooks';
|
|
3
3
|
import timers from 'node:timers';
|
|
4
|
+
import timersPromises from 'node:timers/promises';
|
|
4
5
|
import util from 'node:util';
|
|
5
6
|
import { startTests, collectTests } from '@vitest/runner';
|
|
6
7
|
import { KNOWN_ASSET_TYPES } from 'vite-node/constants';
|
|
7
8
|
import { installSourcemapsSupport } from 'vite-node/source-map';
|
|
8
|
-
import { s as setupChaiConfig, r as resolveTestRunner, a as resolveSnapshotEnvironment } from '../chunks/index.
|
|
9
|
+
import { s as setupChaiConfig, r as resolveTestRunner, a as resolveSnapshotEnvironment } from '../chunks/index.B2M9nD1V.js';
|
|
9
10
|
import { s as startCoverageInsideWorker, a as stopCoverageInsideWorker } from '../chunks/coverage.BWeNbfBa.js';
|
|
10
|
-
import { V as VitestIndex } from '../chunks/index.
|
|
11
|
+
import { V as VitestIndex } from '../chunks/index.BQbxGbG9.js';
|
|
11
12
|
import { c as closeInspector } from '../chunks/inspector.DKLceBVD.js';
|
|
12
|
-
import { s as setupCommonEnv } from '../chunks/setup-common.
|
|
13
|
+
import { s as setupCommonEnv } from '../chunks/setup-common.D0zLenuv.js';
|
|
13
14
|
import { g as getWorkerState } from '../chunks/utils.C8RiOc4B.js';
|
|
14
15
|
import 'chai';
|
|
15
16
|
import 'node:path';
|
|
@@ -18,7 +19,7 @@ import 'node:url';
|
|
|
18
19
|
import '../chunks/rpc.C3q9uwRX.js';
|
|
19
20
|
import '@vitest/utils';
|
|
20
21
|
import '../chunks/index.68735LiX.js';
|
|
21
|
-
import '../chunks/vi.
|
|
22
|
+
import '../chunks/vi.Da_PT3Vw.js';
|
|
22
23
|
import '@vitest/expect';
|
|
23
24
|
import '@vitest/runner/utils';
|
|
24
25
|
import '../chunks/_commonjsHelpers.BFTU3MAI.js';
|
|
@@ -53,7 +54,8 @@ async function run(method, files, config, executor) {
|
|
|
53
54
|
}
|
|
54
55
|
globalThis.__vitest_required__ = {
|
|
55
56
|
util,
|
|
56
|
-
timers
|
|
57
|
+
timers,
|
|
58
|
+
timersPromises
|
|
57
59
|
};
|
|
58
60
|
installSourcemapsSupport({
|
|
59
61
|
getSourceMap: (source) => workerState.moduleCache.getSourceMap(source)
|
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.BJ8KO-VX.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.BMOaRArH.js';
|
|
5
5
|
import 'node:fs';
|
|
6
6
|
import 'node:url';
|
|
7
7
|
import 'node:vm';
|
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.DrFVeTXo.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.BMOaRArH.js';
|
|
17
17
|
import 'node:fs';
|
|
18
18
|
import '@vitest/utils/error';
|
|
19
19
|
import 'vite-node/client';
|
|
@@ -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.DrFVeTXo.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.BMOaRArH.js';
|
|
16
16
|
import 'node:fs';
|
|
17
17
|
import '@vitest/utils/error';
|
|
18
18
|
import 'vite-node/client';
|
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.Hz_LAzfd.js';
|
|
2
2
|
import { Awaitable } from '@vitest/utils';
|
|
3
3
|
import * as v8 from 'v8';
|
|
4
|
-
import { S as SerializedConfig } from './chunks/config.
|
|
5
|
-
import { W as WorkerContext } from './chunks/worker.
|
|
4
|
+
import { S as SerializedConfig } from './chunks/config.BRtC-JeT.js';
|
|
5
|
+
import { W as WorkerContext } from './chunks/worker.BIVMnzXw.js';
|
|
6
6
|
import '@vitest/runner';
|
|
7
7
|
import 'vite-node';
|
|
8
8
|
import './chunks/environment.d8YfPkTm.js';
|