vitest 3.0.6 → 3.0.8
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 +6 -24
- package/dist/browser.js +3 -3
- package/dist/chunks/{base.B2NLWv2w.js → base.XvKTsMeK.js} +2 -2
- package/dist/chunks/{cac.mNJBJcT7.js → cac.VN5q-TPC.js} +28 -4
- package/dist/chunks/{cli-api.Dkt_XoKq.js → cli-api.Dis64jtY.js} +205 -203
- package/dist/chunks/{config.BRtC-JeT.d.ts → config.BCv-fVdT.d.ts} +1 -1
- package/dist/chunks/{execute.DNQad00_.js → execute.eDH0aFFd.js} +10 -5
- package/dist/chunks/{globals.DrEiwfS1.js → globals.CydvVTgC.js} +3 -3
- package/dist/chunks/{index.C1f-_gvH.js → index.B7vJpkTD.js} +2 -2
- package/dist/chunks/{index.DC3HGwr0.js → index.BmFgJtkv.js} +1 -1
- package/dist/chunks/{index.SduP00mx.js → index.CNRemkXW.js} +1 -1
- package/dist/chunks/{reporters.DTtkbAtP.d.ts → reporters.66aFHiyX.d.ts} +1 -3
- package/dist/chunks/{resolveConfig.BbcK25zb.js → resolveConfig.L1_HR0_0.js} +6 -6
- package/dist/chunks/{runBaseTests.Cr-AyqFv.js → runBaseTests.DnaAUBKD.js} +5 -5
- package/dist/chunks/{setup-common.IrcyRZ8C.js → setup-common.Uaw6Zgv9.js} +1 -1
- package/dist/chunks/{vi.DrftpPF8.js → vi.B5EKKJdE.js} +4 -4
- package/dist/chunks/{vite.BmCIRnbq.d.ts → vite.BCQa3xFG.d.ts} +1 -1
- package/dist/chunks/{vm.ku9l48hv.js → vm.jEFQDlX_.js} +1 -1
- package/dist/chunks/{worker.B2JXutr8.d.ts → worker.BT4v-DKx.d.ts} +1 -1
- package/dist/chunks/{worker.DaAIyCKm.d.ts → worker.BmVno_ab.d.ts} +1 -1
- package/dist/cli.js +1 -1
- package/dist/config.d.ts +4 -4
- package/dist/coverage.d.ts +2 -2
- package/dist/coverage.js +1 -1
- package/dist/execute.d.ts +2 -2
- package/dist/execute.js +1 -1
- package/dist/index.d.ts +7 -7
- package/dist/index.js +3 -3
- package/dist/node.d.ts +6 -6
- package/dist/node.js +10 -10
- package/dist/reporters.d.ts +2 -2
- package/dist/reporters.js +1 -1
- package/dist/runners.d.ts +1 -1
- package/dist/runners.js +2 -2
- package/dist/workers/forks.js +2 -2
- package/dist/workers/runVmTests.js +5 -5
- package/dist/workers/threads.js +2 -2
- package/dist/workers/vmForks.js +2 -2
- package/dist/workers/vmThreads.js +2 -2
- package/dist/workers.d.ts +3 -3
- package/dist/workers.js +3 -3
- package/package.json +17 -17
- package/dist/chunks/spy.Cf_4R5Oe.js +0 -22
|
@@ -212,4 +212,4 @@ type RuntimeConfig = Pick<SerializedConfig, 'allowOnly' | 'testTimeout' | 'hookT
|
|
|
212
212
|
};
|
|
213
213
|
type RuntimeOptions = Partial<RuntimeConfig>;
|
|
214
214
|
|
|
215
|
-
export type { FakeTimerInstallOpts as F, RuntimeOptions as R,
|
|
215
|
+
export type { FakeTimerInstallOpts as F, RuntimeOptions as R, SerializedCoverageConfig as S, SerializedConfig as a, RuntimeConfig as b };
|
|
@@ -2,7 +2,7 @@ import fs from 'node:fs';
|
|
|
2
2
|
import { pathToFileURL } from 'node:url';
|
|
3
3
|
import vm from 'node:vm';
|
|
4
4
|
import { processError } from '@vitest/utils/error';
|
|
5
|
-
import { normalize as normalize$1
|
|
5
|
+
import { normalize as normalize$1 } from 'pathe';
|
|
6
6
|
import { ViteNodeRunner, DEFAULT_REQUEST_STUBS } from 'vite-node/client';
|
|
7
7
|
import { isInternalRequest, isNodeBuiltin as isNodeBuiltin$1, isPrimitive, toFilePath } from 'vite-node/utils';
|
|
8
8
|
import { distDir } from '../path.js';
|
|
@@ -235,7 +235,12 @@ const builtins = /* @__PURE__ */ new Set([
|
|
|
235
235
|
"util/types",
|
|
236
236
|
"wasi"
|
|
237
237
|
]);
|
|
238
|
-
const prefixedBuiltins = /* @__PURE__ */ new Set([
|
|
238
|
+
const prefixedBuiltins = /* @__PURE__ */ new Set([
|
|
239
|
+
"node:sea",
|
|
240
|
+
"node:sqlite",
|
|
241
|
+
"node:test",
|
|
242
|
+
"node:test/reporters"
|
|
243
|
+
]);
|
|
239
244
|
const NODE_BUILTIN_NAMESPACE = "node:";
|
|
240
245
|
function isNodeBuiltin(id) {
|
|
241
246
|
if (prefixedBuiltins.has(id)) {
|
|
@@ -576,7 +581,7 @@ function listenForErrors(state) {
|
|
|
576
581
|
dispose.length = 0;
|
|
577
582
|
function catchError(err, type, event) {
|
|
578
583
|
const worker = state();
|
|
579
|
-
if (worker.current) {
|
|
584
|
+
if (worker.current?.type === "test") {
|
|
580
585
|
const listeners = process.listeners(event);
|
|
581
586
|
if (listeners.length > 1) {
|
|
582
587
|
return;
|
|
@@ -584,9 +589,9 @@ function listenForErrors(state) {
|
|
|
584
589
|
}
|
|
585
590
|
const error = processError(err);
|
|
586
591
|
if (!isPrimitive(error)) {
|
|
587
|
-
error.VITEST_TEST_NAME = worker.current?.name;
|
|
592
|
+
error.VITEST_TEST_NAME = worker.current?.type === "test" ? worker.current.name : void 0;
|
|
588
593
|
if (worker.filepath) {
|
|
589
|
-
error.VITEST_TEST_PATH =
|
|
594
|
+
error.VITEST_TEST_PATH = worker.filepath;
|
|
590
595
|
}
|
|
591
596
|
error.VITEST_AFTER_ENV_TEARDOWN = worker.environmentTeardownRun;
|
|
592
597
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { g as globalApis } from './constants.fzPh7AOq.js';
|
|
2
|
-
import { V as VitestIndex } from './index.
|
|
3
|
-
import './vi.
|
|
2
|
+
import { V as VitestIndex } from './index.CNRemkXW.js';
|
|
3
|
+
import './vi.B5EKKJdE.js';
|
|
4
4
|
import '@vitest/expect';
|
|
5
5
|
import '@vitest/runner';
|
|
6
6
|
import '@vitest/runner/utils';
|
|
@@ -10,9 +10,9 @@ import '@vitest/utils';
|
|
|
10
10
|
import './_commonjsHelpers.BFTU3MAI.js';
|
|
11
11
|
import '@vitest/snapshot';
|
|
12
12
|
import '@vitest/utils/error';
|
|
13
|
+
import '@vitest/spy';
|
|
13
14
|
import '@vitest/utils/source-map';
|
|
14
15
|
import './date.W2xKR2qe.js';
|
|
15
|
-
import '@vitest/spy';
|
|
16
16
|
import './run-once.2ogXb3JV.js';
|
|
17
17
|
import './benchmark.Cdu9hjj4.js';
|
|
18
18
|
import 'expect-type';
|
|
@@ -192,7 +192,7 @@ function printErrorInner(error, project, options) {
|
|
|
192
192
|
}
|
|
193
193
|
});
|
|
194
194
|
if (type) {
|
|
195
|
-
printErrorType(type, project.
|
|
195
|
+
printErrorType(type, project.vitest);
|
|
196
196
|
}
|
|
197
197
|
printErrorMessage(e, logger);
|
|
198
198
|
if (options.screenshotPaths?.length) {
|
|
@@ -246,7 +246,7 @@ ${e.diff}
|
|
|
246
246
|
logger.error(
|
|
247
247
|
c.red(
|
|
248
248
|
`This error originated in "${c.bold(
|
|
249
|
-
testPath
|
|
249
|
+
relative(project.config.root, testPath)
|
|
250
250
|
)}" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.`
|
|
251
251
|
)
|
|
252
252
|
);
|
|
@@ -3,7 +3,7 @@ import { resolve } from 'node:path';
|
|
|
3
3
|
import { t as takeCoverageInsideWorker } from './coverage.DnNIv-kJ.js';
|
|
4
4
|
import { distDir } from '../path.js';
|
|
5
5
|
import { r as rpc } from './rpc.TVf73xOu.js';
|
|
6
|
-
import { l as loadDiffConfig, a as loadSnapshotSerializers } from './setup-common.
|
|
6
|
+
import { l as loadDiffConfig, a as loadSnapshotSerializers } from './setup-common.Uaw6Zgv9.js';
|
|
7
7
|
import { g as getWorkerState } from './utils.C8RiOc4B.js';
|
|
8
8
|
|
|
9
9
|
function setupChaiConfig(config) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as createExpect, a as globalExpect, i as inject, v as vi, b as vitest } from './vi.
|
|
1
|
+
import { c as createExpect, a as globalExpect, i as inject, v as vi, b as vitest } from './vi.B5EKKJdE.js';
|
|
2
2
|
import { i as isFirstRun, a as runOnce } from './run-once.2ogXb3JV.js';
|
|
3
3
|
import { b as bench } from './benchmark.Cdu9hjj4.js';
|
|
4
4
|
import { expectTypeOf } from 'expect-type';
|
|
@@ -4,7 +4,7 @@ import { ParsedStack, TestError, SerializedError, ErrorWithDiff, Arrayable, Awai
|
|
|
4
4
|
import { Writable } from 'node:stream';
|
|
5
5
|
import { TransformResult as TransformResult$1, UserConfig as UserConfig$1, DepOptimizationConfig, ServerOptions, ConfigEnv, AliasOptions, ViteDevServer, ModuleNode } from 'vite';
|
|
6
6
|
import { StackTraceParserOptions } from '@vitest/utils/source-map';
|
|
7
|
-
import {
|
|
7
|
+
import { a as SerializedConfig, F as FakeTimerInstallOpts } from './config.BCv-fVdT.js';
|
|
8
8
|
import { PrettyFormatOptions } from '@vitest/pretty-format';
|
|
9
9
|
import { SnapshotSummary, SnapshotStateOptions } from '@vitest/snapshot';
|
|
10
10
|
import { SerializedDiffOptions } from '@vitest/utils/diff';
|
|
@@ -2287,8 +2287,6 @@ interface BrowserProvider {
|
|
|
2287
2287
|
*/
|
|
2288
2288
|
supportsParallelism: boolean;
|
|
2289
2289
|
getSupportedBrowsers: () => readonly string[];
|
|
2290
|
-
beforeCommand?: (command: string, args: unknown[]) => Awaitable$1<void>;
|
|
2291
|
-
afterCommand?: (command: string, args: unknown[]) => Awaitable$1<void>;
|
|
2292
2290
|
getCommandsContext: (sessionId: string) => Record<string, unknown>;
|
|
2293
2291
|
openPage: (sessionId: string, url: string, beforeNavigate?: () => Promise<void>) => Promise<void>;
|
|
2294
2292
|
getCDPSession?: (sessionId: string) => Promise<CDPSession>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import crypto from 'node:crypto';
|
|
2
2
|
import { slash, createDefer, shuffle, toArray } from '@vitest/utils';
|
|
3
|
-
import fs, { statSync, realpathSync, promises as promises$1 } from 'node:fs';
|
|
4
|
-
import {
|
|
3
|
+
import fs, { statSync, realpathSync, promises as promises$1, mkdirSync } from 'node:fs';
|
|
4
|
+
import { writeFile } from 'node:fs/promises';
|
|
5
5
|
import { builtinModules, createRequire } from 'node:module';
|
|
6
6
|
import p, { win32, resolve as resolve$1 } from 'node:path';
|
|
7
7
|
import process$1 from 'node:process';
|
|
@@ -6640,14 +6640,14 @@ function createMethodsRPC(project, options = {}) {
|
|
|
6640
6640
|
const dir = join(project.tmpDir, transformMode);
|
|
6641
6641
|
const name = hash("sha1", id, "hex");
|
|
6642
6642
|
const tmp = join(dir, name);
|
|
6643
|
+
if (!created.has(dir)) {
|
|
6644
|
+
mkdirSync(dir, { recursive: true });
|
|
6645
|
+
created.add(dir);
|
|
6646
|
+
}
|
|
6643
6647
|
if (promises.has(tmp)) {
|
|
6644
6648
|
await promises.get(tmp);
|
|
6645
6649
|
return { id: tmp };
|
|
6646
6650
|
}
|
|
6647
|
-
if (!created.has(dir)) {
|
|
6648
|
-
await mkdir(dir, { recursive: true });
|
|
6649
|
-
created.add(dir);
|
|
6650
|
-
}
|
|
6651
6651
|
promises.set(
|
|
6652
6652
|
tmp,
|
|
6653
6653
|
writeFile(tmp, code, "utf-8").finally(() => promises.delete(tmp))
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { performance } from 'node:perf_hooks';
|
|
2
2
|
import { startTests, collectTests } from '@vitest/runner';
|
|
3
|
-
import { a as resolveSnapshotEnvironment, s as setupChaiConfig, r as resolveTestRunner } from './index.
|
|
3
|
+
import { a as resolveSnapshotEnvironment, s as setupChaiConfig, r as resolveTestRunner } from './index.BmFgJtkv.js';
|
|
4
4
|
import { s as startCoverageInsideWorker, a as stopCoverageInsideWorker } from './coverage.DnNIv-kJ.js';
|
|
5
|
-
import { a as globalExpect, v as vi } from './vi.
|
|
5
|
+
import { a as globalExpect, v as vi } from './vi.B5EKKJdE.js';
|
|
6
6
|
import { c as closeInspector } from './inspector.DKLceBVD.js';
|
|
7
7
|
import { createRequire } from 'node:module';
|
|
8
8
|
import timers from 'node:timers';
|
|
@@ -11,8 +11,8 @@ import util from 'node:util';
|
|
|
11
11
|
import { getSafeTimers } from '@vitest/utils';
|
|
12
12
|
import { KNOWN_ASSET_TYPES } from 'vite-node/constants';
|
|
13
13
|
import { installSourcemapsSupport } from 'vite-node/source-map';
|
|
14
|
-
import { V as VitestIndex } from './index.
|
|
15
|
-
import { s as setupCommonEnv } from './setup-common.
|
|
14
|
+
import { V as VitestIndex } from './index.CNRemkXW.js';
|
|
15
|
+
import { s as setupCommonEnv } from './setup-common.Uaw6Zgv9.js';
|
|
16
16
|
import { g as getWorkerState, r as resetModules } from './utils.C8RiOc4B.js';
|
|
17
17
|
import 'chai';
|
|
18
18
|
import 'node:path';
|
|
@@ -25,9 +25,9 @@ import '@vitest/runner/utils';
|
|
|
25
25
|
import './_commonjsHelpers.BFTU3MAI.js';
|
|
26
26
|
import '@vitest/snapshot';
|
|
27
27
|
import '@vitest/utils/error';
|
|
28
|
+
import '@vitest/spy';
|
|
28
29
|
import '@vitest/utils/source-map';
|
|
29
30
|
import './date.W2xKR2qe.js';
|
|
30
|
-
import '@vitest/spy';
|
|
31
31
|
import './run-once.2ogXb3JV.js';
|
|
32
32
|
import './benchmark.Cdu9hjj4.js';
|
|
33
33
|
import 'expect-type';
|
|
@@ -13,7 +13,7 @@ async function setupCommonEnv(config) {
|
|
|
13
13
|
globalSetup = true;
|
|
14
14
|
setSafeTimers();
|
|
15
15
|
if (config.globals) {
|
|
16
|
-
(await import('./globals.
|
|
16
|
+
(await import('./globals.CydvVTgC.js')).registerApiGlobally();
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
function setupDefines(defines) {
|
|
@@ -7,9 +7,9 @@ import { getSafeTimers, assertTypes, createSimpleStackTrace } from '@vitest/util
|
|
|
7
7
|
import { g as getDefaultExportFromCjs, c as commonjsGlobal } from './_commonjsHelpers.BFTU3MAI.js';
|
|
8
8
|
import { stripSnapshotIndentation, addSerializer, SnapshotClient } from '@vitest/snapshot';
|
|
9
9
|
import '@vitest/utils/error';
|
|
10
|
+
import { fn, spyOn, mocks, isMockFunction } from '@vitest/spy';
|
|
10
11
|
import { parseSingleStack } from '@vitest/utils/source-map';
|
|
11
12
|
import { R as RealDate, r as resetDate, m as mockDate } from './date.W2xKR2qe.js';
|
|
12
|
-
import { fn, spyOn, mocks, isMockFunction } from '@vitest/spy';
|
|
13
13
|
|
|
14
14
|
const unsupported = [
|
|
15
15
|
// .poll is meant to retry matchers until they succeed, and
|
|
@@ -4170,15 +4170,15 @@ function createVitest() {
|
|
|
4170
4170
|
return isMockFunction(fn2);
|
|
4171
4171
|
},
|
|
4172
4172
|
clearAllMocks() {
|
|
4173
|
-
mocks.forEach((spy) => spy.mockClear());
|
|
4173
|
+
[...mocks].reverse().forEach((spy) => spy.mockClear());
|
|
4174
4174
|
return utils;
|
|
4175
4175
|
},
|
|
4176
4176
|
resetAllMocks() {
|
|
4177
|
-
mocks.forEach((spy) => spy.mockReset());
|
|
4177
|
+
[...mocks].reverse().forEach((spy) => spy.mockReset());
|
|
4178
4178
|
return utils;
|
|
4179
4179
|
},
|
|
4180
4180
|
restoreAllMocks() {
|
|
4181
|
-
mocks.forEach((spy) => spy.mockRestore());
|
|
4181
|
+
[...mocks].reverse().forEach((spy) => spy.mockRestore());
|
|
4182
4182
|
return utils;
|
|
4183
4183
|
},
|
|
4184
4184
|
stubGlobal(name, value) {
|
|
@@ -3,7 +3,7 @@ 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
5
|
import { createCustomConsole } from './console.CN7AiMGV.js';
|
|
6
|
-
import { g as getDefaultRequestStubs, s as startVitestExecutor } from './execute.
|
|
6
|
+
import { g as getDefaultRequestStubs, s as startVitestExecutor } from './execute.eDH0aFFd.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';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { File, TaskResultPack, TaskEventPack, CancelReason, FileSpecification, Task } from '@vitest/runner';
|
|
2
2
|
import { ViteNodeResolveId, ModuleCacheMap, ModuleExecutionInfo } from 'vite-node';
|
|
3
|
-
import {
|
|
3
|
+
import { a as SerializedConfig } from './config.BCv-fVdT.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
|
|
package/dist/cli.js
CHANGED
package/dist/config.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { UserConfig as UserConfig$1, ConfigEnv } from 'vite';
|
|
2
2
|
export { ConfigEnv, Plugin, UserConfig as ViteUserConfig, mergeConfig } from 'vite';
|
|
3
|
-
import { d as CoverageV8Options, R as ResolvedCoverageOptions, 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.
|
|
6
|
-
import { F as FakeTimerInstallOpts } from './chunks/config.
|
|
3
|
+
import { d as CoverageV8Options, R as ResolvedCoverageOptions, U as UserWorkspaceConfig, e as UserProjectConfigFn, f as UserProjectConfigExport, T as TestProjectConfiguration } from './chunks/reporters.66aFHiyX.js';
|
|
4
|
+
export { W as WorkspaceProjectConfiguration } from './chunks/reporters.66aFHiyX.js';
|
|
5
|
+
import './chunks/vite.BCQa3xFG.js';
|
|
6
|
+
import { F as FakeTimerInstallOpts } from './chunks/config.BCv-fVdT.js';
|
|
7
7
|
import '@vitest/runner';
|
|
8
8
|
import './chunks/environment.d8YfPkTm.js';
|
|
9
9
|
import '@vitest/utils';
|
package/dist/coverage.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { R as ResolvedCoverageOptions, V as Vitest, C as CoverageMap, a as ReportContext } from './chunks/reporters.
|
|
1
|
+
import { R as ResolvedCoverageOptions, V as Vitest, C as CoverageMap, a as ReportContext } from './chunks/reporters.66aFHiyX.js';
|
|
2
2
|
import { TransformResult } from 'vite';
|
|
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.BCv-fVdT.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 { r as resolveCoverageReporters, c as coverageConfigDefaults, m as mm } from './chunks/resolveConfig.
|
|
2
|
+
import { r as resolveCoverageReporters, c as coverageConfigDefaults, m as mm } from './chunks/resolveConfig.L1_HR0_0.js';
|
|
3
3
|
import { resolve, relative } from 'pathe';
|
|
4
4
|
import c from 'tinyrainbow';
|
|
5
5
|
import 'node:crypto';
|
package/dist/execute.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { ViteNodeRunnerOptions } from 'vite-node';
|
|
2
2
|
import { ViteNodeRunner, ModuleExecutionInfo } 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.BmVno_ab.js';
|
|
4
4
|
import vm from 'node:vm';
|
|
5
5
|
import { MockedModule, MockedModuleType } from '@vitest/mocker';
|
|
6
6
|
import { P as PendingSuiteMock, b as MockFactory, a as MockOptions } from './chunks/mocker.cRtM890J.js';
|
|
7
7
|
import '@vitest/runner';
|
|
8
|
-
import './chunks/config.
|
|
8
|
+
import './chunks/config.BCv-fVdT.js';
|
|
9
9
|
import '@vitest/pretty-format';
|
|
10
10
|
import '@vitest/snapshot';
|
|
11
11
|
import '@vitest/snapshot/environment';
|
package/dist/execute.js
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
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, 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.
|
|
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.66aFHiyX.js';
|
|
4
|
+
import { W as WorkerContext$1 } from './chunks/worker.BT4v-DKx.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
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.
|
|
11
|
-
import {
|
|
12
|
-
export { b as RuntimeConfig,
|
|
8
|
+
import { a as BirpcReturn, b as WorkerRPC$1 } from './chunks/worker.BmVno_ab.js';
|
|
9
|
+
export { C as ContextRPC, d as ContextTestEnvironment, e as ResolveIdFunction, c as RunnerRPC, R as RuntimeRPC, W as WorkerGlobalState } from './chunks/worker.BmVno_ab.js';
|
|
10
|
+
import './chunks/vite.BCQa3xFG.js';
|
|
11
|
+
import { a as SerializedConfig, F as FakeTimerInstallOpts, R as RuntimeOptions } from './chunks/config.BCv-fVdT.js';
|
|
12
|
+
export { b as RuntimeConfig, S as SerializedCoverageConfig } from './chunks/config.BCv-fVdT.js';
|
|
13
13
|
import { ExpectStatic } from '@vitest/expect';
|
|
14
14
|
export { Assertion, AsymmetricMatchersContaining, ExpectPollOptions, ExpectStatic, JestAssertion } from '@vitest/expect';
|
|
15
15
|
import { spyOn, fn, MaybeMockedDeep, MaybeMocked, MaybePartiallyMocked, MaybePartiallyMockedDeep, MockInstance } from '@vitest/spy';
|
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.B5EKKJdE.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.CNRemkXW.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';
|
|
@@ -14,6 +14,6 @@ import '@vitest/utils';
|
|
|
14
14
|
import './chunks/_commonjsHelpers.BFTU3MAI.js';
|
|
15
15
|
import '@vitest/snapshot';
|
|
16
16
|
import '@vitest/utils/error';
|
|
17
|
+
import '@vitest/spy';
|
|
17
18
|
import '@vitest/utils/source-map';
|
|
18
19
|
import './chunks/date.W2xKR2qe.js';
|
|
19
|
-
import '@vitest/spy';
|
package/dist/node.d.ts
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
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.
|
|
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.
|
|
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.66aFHiyX.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.66aFHiyX.js';
|
|
3
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
7
|
import { IncomingMessage } from 'node:http';
|
|
8
|
-
import { R as RuntimeRPC } from './chunks/worker.
|
|
8
|
+
import { R as RuntimeRPC } from './chunks/worker.BmVno_ab.js';
|
|
9
9
|
import { Writable } from 'node:stream';
|
|
10
|
-
export { W as WorkerContext } from './chunks/worker.
|
|
10
|
+
export { W as WorkerContext } from './chunks/worker.BT4v-DKx.js';
|
|
11
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';
|
|
12
12
|
import { Debugger } from 'debug';
|
|
13
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';
|
|
14
14
|
export { f as EnvironmentOptions, H as HappyDOMOptions, J as JSDOMOptions } from './chunks/environment.d8YfPkTm.js';
|
|
15
15
|
export { SerializedError } from '@vitest/utils';
|
|
16
|
-
export { b as RuntimeConfig } from './chunks/config.
|
|
17
|
-
import './chunks/vite.
|
|
16
|
+
export { b as RuntimeConfig } from './chunks/config.BCv-fVdT.js';
|
|
17
|
+
import './chunks/vite.BCQa3xFG.js';
|
|
18
18
|
export { generateFileHash } from '@vitest/runner/utils';
|
|
19
19
|
import '@vitest/utils/source-map';
|
|
20
20
|
import '@vitest/pretty-format';
|
package/dist/node.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
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, i as isValidApiRequest, 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.Dis64jtY.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.Dis64jtY.js';
|
|
5
|
+
export { p as parseCLI } from './chunks/cac.VN5q-TPC.js';
|
|
6
|
+
import { a as resolveConfig$2 } from './chunks/resolveConfig.L1_HR0_0.js';
|
|
7
|
+
export { B as BaseSequencer, d as createMethodsRPC, g as getFilePoolName, b as resolveApiServerConfig } from './chunks/resolveConfig.L1_HR0_0.js';
|
|
8
8
|
import { slash } from '@vitest/utils';
|
|
9
9
|
import { f as findUp } from './chunks/index.DBIGubLC.js';
|
|
10
10
|
import { resolve } from 'pathe';
|
|
@@ -19,7 +19,7 @@ import '@vitest/snapshot/manager';
|
|
|
19
19
|
import 'vite-node/client';
|
|
20
20
|
import 'vite-node/server';
|
|
21
21
|
import './chunks/index.68735LiX.js';
|
|
22
|
-
import './chunks/index.
|
|
22
|
+
import './chunks/index.B7vJpkTD.js';
|
|
23
23
|
import 'tinyrainbow';
|
|
24
24
|
import './chunks/utils.bLM2atbD.js';
|
|
25
25
|
import 'node:util';
|
|
@@ -35,16 +35,16 @@ import 'node:module';
|
|
|
35
35
|
import 'fs';
|
|
36
36
|
import 'node:console';
|
|
37
37
|
import 'node:stream';
|
|
38
|
-
import 'stream';
|
|
39
|
-
import 'zlib';
|
|
40
|
-
import 'buffer';
|
|
41
|
-
import 'crypto';
|
|
42
38
|
import 'events';
|
|
43
39
|
import 'https';
|
|
44
40
|
import 'http';
|
|
45
41
|
import 'net';
|
|
46
42
|
import 'tls';
|
|
43
|
+
import 'crypto';
|
|
44
|
+
import 'stream';
|
|
47
45
|
import 'url';
|
|
46
|
+
import 'zlib';
|
|
47
|
+
import 'buffer';
|
|
48
48
|
import './chunks/_commonjsHelpers.BFTU3MAI.js';
|
|
49
49
|
import 'node:crypto';
|
|
50
50
|
import 'path';
|
package/dist/reporters.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
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.
|
|
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.66aFHiyX.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.BCv-fVdT.js';
|
|
9
9
|
import '@vitest/pretty-format';
|
|
10
10
|
import '@vitest/snapshot';
|
|
11
11
|
import '@vitest/snapshot/environment';
|
package/dist/reporters.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
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.B7vJpkTD.js';
|
|
2
2
|
import 'node:fs';
|
|
3
3
|
import '@vitest/runner/utils';
|
|
4
4
|
import 'pathe';
|
package/dist/runners.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as tinybench from 'tinybench';
|
|
2
2
|
import { VitestRunner, VitestRunnerImportSource, Suite, File, Task, CancelReason, TestContext } from '@vitest/runner';
|
|
3
3
|
export { VitestRunner } from '@vitest/runner';
|
|
4
|
-
import {
|
|
4
|
+
import { a as SerializedConfig } from './chunks/config.BCv-fVdT.js';
|
|
5
5
|
import '@vitest/pretty-format';
|
|
6
6
|
import '@vitest/snapshot';
|
|
7
7
|
import '@vitest/snapshot/environment';
|
package/dist/runners.js
CHANGED
|
@@ -4,15 +4,15 @@ 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.B5EKKJdE.js';
|
|
8
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';
|
|
12
12
|
import '@vitest/utils/error';
|
|
13
|
+
import '@vitest/spy';
|
|
13
14
|
import '@vitest/utils/source-map';
|
|
14
15
|
import './chunks/date.W2xKR2qe.js';
|
|
15
|
-
import '@vitest/spy';
|
|
16
16
|
import './chunks/index.68735LiX.js';
|
|
17
17
|
|
|
18
18
|
function createBenchmarkResult(name) {
|
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.XvKTsMeK.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.eDH0aFFd.js';
|
|
6
6
|
import 'node:fs';
|
|
7
7
|
import 'node:url';
|
|
8
8
|
import 'node:vm';
|
|
@@ -6,11 +6,11 @@ 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.
|
|
9
|
+
import { s as setupChaiConfig, r as resolveTestRunner, a as resolveSnapshotEnvironment } from '../chunks/index.BmFgJtkv.js';
|
|
10
10
|
import { s as startCoverageInsideWorker, a as stopCoverageInsideWorker } from '../chunks/coverage.DnNIv-kJ.js';
|
|
11
|
-
import { V as VitestIndex } from '../chunks/index.
|
|
11
|
+
import { V as VitestIndex } from '../chunks/index.CNRemkXW.js';
|
|
12
12
|
import { c as closeInspector } from '../chunks/inspector.DKLceBVD.js';
|
|
13
|
-
import { s as setupCommonEnv } from '../chunks/setup-common.
|
|
13
|
+
import { s as setupCommonEnv } from '../chunks/setup-common.Uaw6Zgv9.js';
|
|
14
14
|
import { g as getWorkerState } from '../chunks/utils.C8RiOc4B.js';
|
|
15
15
|
import 'chai';
|
|
16
16
|
import 'node:path';
|
|
@@ -19,15 +19,15 @@ import 'node:url';
|
|
|
19
19
|
import '../chunks/rpc.TVf73xOu.js';
|
|
20
20
|
import '@vitest/utils';
|
|
21
21
|
import '../chunks/index.68735LiX.js';
|
|
22
|
-
import '../chunks/vi.
|
|
22
|
+
import '../chunks/vi.B5EKKJdE.js';
|
|
23
23
|
import '@vitest/expect';
|
|
24
24
|
import '@vitest/runner/utils';
|
|
25
25
|
import '../chunks/_commonjsHelpers.BFTU3MAI.js';
|
|
26
26
|
import '@vitest/snapshot';
|
|
27
27
|
import '@vitest/utils/error';
|
|
28
|
+
import '@vitest/spy';
|
|
28
29
|
import '@vitest/utils/source-map';
|
|
29
30
|
import '../chunks/date.W2xKR2qe.js';
|
|
30
|
-
import '@vitest/spy';
|
|
31
31
|
import '../chunks/run-once.2ogXb3JV.js';
|
|
32
32
|
import '../chunks/benchmark.Cdu9hjj4.js';
|
|
33
33
|
import 'expect-type';
|
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.XvKTsMeK.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.eDH0aFFd.js';
|
|
5
5
|
import 'node:fs';
|
|
6
6
|
import 'node:url';
|
|
7
7
|
import 'node:vm';
|
package/dist/workers/vmForks.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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.jEFQDlX_.js';
|
|
4
4
|
import '@vitest/utils';
|
|
5
5
|
import 'node:url';
|
|
6
6
|
import 'node:vm';
|
|
@@ -13,7 +13,7 @@ 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.eDH0aFFd.js';
|
|
17
17
|
import 'node:fs';
|
|
18
18
|
import '@vitest/utils/error';
|
|
19
19
|
import 'vite-node/client';
|
|
@@ -1,5 +1,5 @@
|
|
|
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.jEFQDlX_.js';
|
|
3
3
|
import '@vitest/utils';
|
|
4
4
|
import 'node:url';
|
|
5
5
|
import 'node:vm';
|
|
@@ -12,7 +12,7 @@ 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.eDH0aFFd.js';
|
|
16
16
|
import 'node:fs';
|
|
17
17
|
import '@vitest/utils/error';
|
|
18
18
|
import 'vite-node/client';
|