vitest 4.1.9 → 4.1.11
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/chunks/{base.BE3cXZj3.js → base.B6Opl8PE.js} +3 -3
- package/dist/chunks/{cac.D3xHeqeL.js → cac.uFydS1Z4.js} +3 -3
- package/dist/chunks/{cli-api.24X8XwN1.js → cli-api.CnMVyzaz.js} +70 -3
- package/dist/chunks/{init-forks.B4VBaxRV.js → init-forks.H5ZuobOQ.js} +1 -1
- package/dist/chunks/{init-threads.C_ClEpAf.js → init-threads.6kl1khcL.js} +1 -1
- package/dist/chunks/{init.d4hAcNdp.js → init.k9zZ9sLh.js} +1 -1
- package/dist/chunks/{nativeModuleMocker.BLzfffNb.js → nativeModuleMocker.BkNfQMkH.js} +1 -1
- package/dist/chunks/{startVitestModuleRunner.CCBQZ9DQ.js → startVitestModuleRunner.DB-7oCpn.js} +5 -3
- package/dist/chunks/{vm.B2aHeaNw.js → vm.CXMd5FHa.js} +2 -2
- package/dist/cli.js +1 -1
- package/dist/node.js +3 -3
- package/dist/runtime.js +1 -1
- package/dist/worker.js +3 -3
- package/dist/workers/forks.js +4 -4
- package/dist/workers/threads.js +4 -4
- package/dist/workers/vmForks.js +4 -4
- package/dist/workers/vmThreads.js +4 -4
- package/package.json +14 -14
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { runInThisContext } from 'node:vm';
|
|
2
2
|
import * as spyModule from '@vitest/spy';
|
|
3
3
|
import { r as resolveTestRunner, a as resolveSnapshotEnvironment, d as detectAsyncLeaks, s as setupChaiConfig } from './index.DXx9Dtk7.js';
|
|
4
|
-
import { l as loadEnvironment, e as emitModuleRunner, a as listenForErrors } from './init.
|
|
4
|
+
import { l as loadEnvironment, e as emitModuleRunner, a as listenForErrors } from './init.k9zZ9sLh.js';
|
|
5
5
|
import { N as NativeModuleRunner } from './nativeModuleRunner.BIakptoF.js';
|
|
6
6
|
import { T as Traces } from './traces.DT5aQ62U.js';
|
|
7
7
|
import { V as VitestEvaluatedModules } from './evaluatedModules.Dg1zASAC.js';
|
|
8
|
-
import { s as startVitestModuleRunner, c as createNodeImportMeta } from './startVitestModuleRunner.
|
|
8
|
+
import { s as startVitestModuleRunner, c as createNodeImportMeta } from './startVitestModuleRunner.DB-7oCpn.js';
|
|
9
9
|
import { performance as performance$1 } from 'node:perf_hooks';
|
|
10
10
|
import { startTests, collectTests } from '@vitest/runner';
|
|
11
11
|
import { s as setupCommonEnv, b as startCoverageInsideWorker, c as stopCoverageInsideWorker } from './setup-common.DYx3LtFI.js';
|
|
@@ -115,7 +115,7 @@ async function startModuleRunner(options) {
|
|
|
115
115
|
let mocker;
|
|
116
116
|
if (options.state.config.experimental.nodeLoader !== false) {
|
|
117
117
|
// this additionally imports acorn/magic-string
|
|
118
|
-
const { NativeModuleMocker } = await import('./nativeModuleMocker.
|
|
118
|
+
const { NativeModuleMocker } = await import('./nativeModuleMocker.BkNfQMkH.js');
|
|
119
119
|
mocker = new NativeModuleMocker({
|
|
120
120
|
async resolveId(id, importer) {
|
|
121
121
|
// TODO: use import.meta.resolve instead
|
|
@@ -621,7 +621,7 @@ class CAC extends EventEmitter {
|
|
|
621
621
|
|
|
622
622
|
const cac = (name = "") => new CAC(name);
|
|
623
623
|
|
|
624
|
-
var version = "4.1.
|
|
624
|
+
var version = "4.1.11";
|
|
625
625
|
|
|
626
626
|
const apiConfig = (port) => ({
|
|
627
627
|
port: {
|
|
@@ -2336,7 +2336,7 @@ function normalizeCliOptions(cliFilters, argv) {
|
|
|
2336
2336
|
}
|
|
2337
2337
|
async function start(mode, cliFilters, options) {
|
|
2338
2338
|
try {
|
|
2339
|
-
const { startVitest } = await import('./cli-api.
|
|
2339
|
+
const { startVitest } = await import('./cli-api.CnMVyzaz.js').then(function (n) { return n.q; });
|
|
2340
2340
|
const ctx = await startVitest(mode, cliFilters.map(normalize), normalizeCliOptions(cliFilters, options));
|
|
2341
2341
|
if (!ctx.shouldKeepServer()) await ctx.exit();
|
|
2342
2342
|
} catch (e) {
|
|
@@ -2358,7 +2358,7 @@ async function init(project) {
|
|
|
2358
2358
|
}
|
|
2359
2359
|
async function collect(mode, cliFilters, options) {
|
|
2360
2360
|
try {
|
|
2361
|
-
const { prepareVitest, processCollected, outputFileList } = await import('./cli-api.
|
|
2361
|
+
const { prepareVitest, processCollected, outputFileList } = await import('./cli-api.CnMVyzaz.js').then(function (n) { return n.q; });
|
|
2362
2362
|
const ctx = await prepareVitest(mode, {
|
|
2363
2363
|
...normalizeCliOptions(cliFilters, options),
|
|
2364
2364
|
watch: false,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import fs, { promises, existsSync, mkdirSync, readFileSync, statSync, readdirSync, writeFileSync } from 'node:fs';
|
|
1
|
+
import fs, { promises, existsSync, mkdirSync, readFileSync, statfsSync, statSync, readdirSync, writeFileSync } from 'node:fs';
|
|
2
2
|
import { relative, resolve, dirname, join, extname, normalize, basename, isAbsolute } from 'pathe';
|
|
3
3
|
import { C as CoverageProviderMap } from './coverage.CTzCuANN.js';
|
|
4
4
|
import path, { resolve as resolve$1 } from 'node:path';
|
|
@@ -13,7 +13,7 @@ import nodeos__default, { tmpdir } from 'node:os';
|
|
|
13
13
|
import { generateHash as generateHash$1, createTaskName, validateTags, calculateSuiteHash, hasFailed, generateFileHash, limitConcurrency, createFileTask as createFileTask$1, createTagsFilter, someTasksAreOnly, interpretTaskModes, getTasks, isTestCase } from '@vitest/runner/utils';
|
|
14
14
|
import { SnapshotManager } from '@vitest/snapshot/manager';
|
|
15
15
|
import { serializeValue } from '@vitest/utils/serialize';
|
|
16
|
-
import { v as version$1 } from './cac.
|
|
16
|
+
import { v as version$1 } from './cac.uFydS1Z4.js';
|
|
17
17
|
import { rootDir, distDir } from '../path.js';
|
|
18
18
|
import { f as createIndexLocationsMap, g as TraceMap, o as originalPositionFor, h as ancestor, s as stringify, p as parse, i as printError, j as Typechecker, k as generateCodeFrame, l as escapeRegExp, m as createDefinesScript, a as BenchmarkReportsMap, R as ReportersMap, n as groupBy, q as BlobReporter, r as readBlobs, t as convertTasksToEvents, H as HangingProcessReporter, w as wildcardPatternToRegExp, u as stdout } from './index.UpGiHP7g.js';
|
|
19
19
|
import { N as NativeModuleRunner } from './nativeModuleRunner.BIakptoF.js';
|
|
@@ -2622,8 +2622,9 @@ class BrowserPool {
|
|
|
2622
2622
|
providedContext: this._providedContext || "[{}]",
|
|
2623
2623
|
otelCarrier: this._traces.getContextCarrier()
|
|
2624
2624
|
});
|
|
2625
|
-
}).then(() => {
|
|
2625
|
+
}).then(async () => {
|
|
2626
2626
|
debug?.("[%s] test %s finished running", sessionId, file);
|
|
2627
|
+
await maybeCollectChromiumGarbage(this.project, sessionId);
|
|
2627
2628
|
this.runNextTest(method, sessionId);
|
|
2628
2629
|
}).catch((error) => {
|
|
2629
2630
|
// if user cancels the test run manually, ignore the error and exit gracefully
|
|
@@ -2661,6 +2662,72 @@ function shouldIgnoreDebugger(provider, browser) {
|
|
|
2661
2662
|
if (provider === "webdriverio") return browser !== "chrome" && browser !== "edge";
|
|
2662
2663
|
return browser !== "chromium";
|
|
2663
2664
|
}
|
|
2665
|
+
// Best-effort workaround for chromium/playwright bug
|
|
2666
|
+
// https://issues.chromium.org/issues/530892387
|
|
2667
|
+
// Trigger gc on lower disk (default to 4GB)
|
|
2668
|
+
const chromiumGCDiskThreshold = process.env.VITEST_CHROMIUM_GC_DISK_THRESHOLD_GB ? Number(process.env.VITEST_CHROMIUM_GC_DISK_THRESHOLD_GB) * 1024 ** 3 : 4 * 1024 ** 3;
|
|
2669
|
+
const forceChromiumGC = !!process.env.VITEST_CHROMIUM_GC_FORCE;
|
|
2670
|
+
const debugGC = createDebugger("vitest:browser:gc");
|
|
2671
|
+
async function maybeCollectChromiumGarbage(project, sessionId) {
|
|
2672
|
+
// trigger only on linux/chromium/playwright
|
|
2673
|
+
const provider = project.browser.provider;
|
|
2674
|
+
if (!forceChromiumGC && process.platform !== "linux" || provider.name !== "playwright" || project.config.browser.name !== "chromium" || !project.config.browser.isolate || !provider.getCDPSession) return;
|
|
2675
|
+
const start = performance.now();
|
|
2676
|
+
const diagnostics = {
|
|
2677
|
+
statfsBeforeMs: void 0,
|
|
2678
|
+
statfsAfterMs: void 0,
|
|
2679
|
+
cdpSessionMs: void 0,
|
|
2680
|
+
cdpSendMs: void 0,
|
|
2681
|
+
cdpDetachMs: void 0,
|
|
2682
|
+
forced: forceChromiumGC
|
|
2683
|
+
};
|
|
2684
|
+
try {
|
|
2685
|
+
// Playwright enables --disable-dev-shm-usage by default, which makes
|
|
2686
|
+
// Chromium use TMPDIR or /tmp for shared memory files.
|
|
2687
|
+
// https://github.com/microsoft/playwright/blob/main/packages/playwright-core/src/server/chromium/chromiumSwitches.ts
|
|
2688
|
+
// https://source.chromium.org/chromium/chromium/src/+/main:base/files/file_util_posix.cc
|
|
2689
|
+
const tempDirectory = process.env.TMPDIR || "/tmp";
|
|
2690
|
+
let operationStart = performance.now();
|
|
2691
|
+
const fsStats = statfsSync(tempDirectory);
|
|
2692
|
+
diagnostics.statfsBeforeMs = performance.now() - operationStart;
|
|
2693
|
+
const available = fsStats.bavail * fsStats.bsize;
|
|
2694
|
+
diagnostics.availableBytesBefore = available.toString();
|
|
2695
|
+
diagnostics.thresholdBytes = chromiumGCDiskThreshold.toString();
|
|
2696
|
+
diagnostics.tempDirectory = tempDirectory;
|
|
2697
|
+
diagnostics.triggered = available < chromiumGCDiskThreshold;
|
|
2698
|
+
if (available >= chromiumGCDiskThreshold) return;
|
|
2699
|
+
operationStart = performance.now();
|
|
2700
|
+
// `detach` is available only internally and not on CDPSession type
|
|
2701
|
+
const cdp = await provider.getCDPSession(sessionId);
|
|
2702
|
+
diagnostics.cdpSessionMs = performance.now() - operationStart;
|
|
2703
|
+
try {
|
|
2704
|
+
operationStart = performance.now();
|
|
2705
|
+
await cdp.send("HeapProfiler.collectGarbage");
|
|
2706
|
+
diagnostics.cdpSendMs = performance.now() - operationStart;
|
|
2707
|
+
} finally {
|
|
2708
|
+
operationStart = performance.now();
|
|
2709
|
+
await cdp.detach().catch((error) => {
|
|
2710
|
+
debugGC?.("[%s] failed to detach Chromium CDP session: %s", sessionId, error);
|
|
2711
|
+
});
|
|
2712
|
+
diagnostics.cdpDetachMs = performance.now() - operationStart;
|
|
2713
|
+
}
|
|
2714
|
+
if (debugGC?.enabled) {
|
|
2715
|
+
operationStart = performance.now();
|
|
2716
|
+
const fsStatsAfter = statfsSync(tempDirectory);
|
|
2717
|
+
diagnostics.statfsAfterMs = performance.now() - operationStart;
|
|
2718
|
+
diagnostics.availableBytesAfter = (fsStatsAfter.bavail * fsStatsAfter.bsize).toString();
|
|
2719
|
+
}
|
|
2720
|
+
const availableGiB = available / 1024 ** 3;
|
|
2721
|
+
const thresholdGiB = chromiumGCDiskThreshold / 1024 ** 3;
|
|
2722
|
+
debugGC?.("[%s] Low disk space detected in %s (%s GiB available, %s GiB threshold). Vitest triggered Chromium garbage collection to prevent browser crashes.", sessionId, tempDirectory, availableGiB.toFixed(1), thresholdGiB.toFixed(1));
|
|
2723
|
+
} catch (error) {
|
|
2724
|
+
// don't surface if fs or cdp fails
|
|
2725
|
+
debugGC?.("[%s] failed to collect Chromium garbage: %s", sessionId, error);
|
|
2726
|
+
} finally {
|
|
2727
|
+
diagnostics.totalMs = performance.now() - start;
|
|
2728
|
+
debugGC?.("[%s] Chromium garbage collection check: %O", sessionId, diagnostics);
|
|
2729
|
+
}
|
|
2730
|
+
}
|
|
2664
2731
|
|
|
2665
2732
|
function createMethodsRPC(project, methodsOptions = {}) {
|
|
2666
2733
|
const vitest = project.vitest;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { isMainThread, parentPort } from 'node:worker_threads';
|
|
2
|
-
import { i as init } from './init.
|
|
2
|
+
import { i as init } from './init.k9zZ9sLh.js';
|
|
3
3
|
|
|
4
4
|
if (isMainThread || !parentPort) throw new Error("Expected worker to be run in node:worker_threads");
|
|
5
5
|
function workerInit(options) {
|
|
@@ -3,7 +3,7 @@ import { isBuiltin } from 'node:module';
|
|
|
3
3
|
import { pathToFileURL } from 'node:url';
|
|
4
4
|
import { resolve } from 'pathe';
|
|
5
5
|
import { ModuleRunner, EvaluatedModules } from 'vite/module-runner';
|
|
6
|
-
import { b as VitestTransport } from './startVitestModuleRunner.
|
|
6
|
+
import { b as VitestTransport } from './startVitestModuleRunner.DB-7oCpn.js';
|
|
7
7
|
import { e as environments } from './index.DC7d2Pf8.js';
|
|
8
8
|
import { serializeValue } from '@vitest/utils/serialize';
|
|
9
9
|
import { serializeError } from '@vitest/utils/error';
|
|
@@ -5,7 +5,7 @@ import { cleanUrl, createDefer } from '@vitest/utils/helpers';
|
|
|
5
5
|
import { p as parse } from './acorn.B2iPLyUM.js';
|
|
6
6
|
import { isAbsolute } from 'pathe';
|
|
7
7
|
import { t as toBuiltin } from './modules.BJuCwlRJ.js';
|
|
8
|
-
import { B as BareModuleMocker, n as normalizeModuleId } from './startVitestModuleRunner.
|
|
8
|
+
import { B as BareModuleMocker, n as normalizeModuleId } from './startVitestModuleRunner.DB-7oCpn.js';
|
|
9
9
|
import 'node:fs';
|
|
10
10
|
import './utils.BX5Fg8C4.js';
|
|
11
11
|
import '@vitest/utils/timers';
|
package/dist/chunks/{startVitestModuleRunner.CCBQZ9DQ.js → startVitestModuleRunner.DB-7oCpn.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import fs from 'node:fs';
|
|
2
|
-
import { isBareImport } from '@vitest/utils/helpers';
|
|
2
|
+
import { splitFileAndPostfix as splitFileAndPostfix$1, isBareImport } from '@vitest/utils/helpers';
|
|
3
3
|
import { i as isBuiltin, a as isBrowserExternal, t as toBuiltin } from './modules.BJuCwlRJ.js';
|
|
4
4
|
import { E as EnvironmentTeardownError, a as getSafeWorkerState } from './utils.BX5Fg8C4.js';
|
|
5
5
|
import { pathToFileURL } from 'node:url';
|
|
@@ -604,7 +604,8 @@ function getCachedVitestImport(id, state) {
|
|
|
604
604
|
const root = state().config.root;
|
|
605
605
|
const relativeRoot = relativeIds[root] ?? (relativeIds[root] = normalizedDistDir.slice(root.length));
|
|
606
606
|
if (id.includes(distDir) || id.includes(normalizedDistDir)) {
|
|
607
|
-
const
|
|
607
|
+
const { file, postfix } = splitFileAndPostfix$1(id);
|
|
608
|
+
const externalize = id.startsWith("file://") ? id : `${pathToFileURL(file)}${postfix}`;
|
|
608
609
|
externalizeMap.set(id, externalize);
|
|
609
610
|
return {
|
|
610
611
|
externalize,
|
|
@@ -612,7 +613,8 @@ function getCachedVitestImport(id, state) {
|
|
|
612
613
|
};
|
|
613
614
|
}
|
|
614
615
|
if (relativeRoot && relativeRoot !== "/" && id.startsWith(relativeRoot)) {
|
|
615
|
-
const
|
|
616
|
+
const { file, postfix } = splitFileAndPostfix$1(id);
|
|
617
|
+
const externalize = `${pathToFileURL(join(root, file))}${postfix}`;
|
|
616
618
|
externalizeMap.set(id, externalize);
|
|
617
619
|
return {
|
|
618
620
|
externalize,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { fileURLToPath, pathToFileURL } from 'node:url';
|
|
2
2
|
import vm, { isContext, runInContext } from 'node:vm';
|
|
3
3
|
import { dirname, basename, extname, normalize, resolve } from 'pathe';
|
|
4
|
-
import { l as loadEnvironment, a as listenForErrors, e as emitModuleRunner } from './init.
|
|
4
|
+
import { l as loadEnvironment, a as listenForErrors, e as emitModuleRunner } from './init.k9zZ9sLh.js';
|
|
5
5
|
import { distDir } from '../path.js';
|
|
6
6
|
import { createCustomConsole } from './console.3WNpx0tS.js';
|
|
7
7
|
import fs from 'node:fs';
|
|
@@ -11,7 +11,7 @@ import { findNearestPackageData } from '@vitest/utils/resolver';
|
|
|
11
11
|
import { dirname as dirname$1 } from 'node:path';
|
|
12
12
|
import { CSS_LANGS_RE, KNOWN_ASSET_RE } from '@vitest/utils/constants';
|
|
13
13
|
import { getDefaultRequestStubs } from '../module-evaluator.js';
|
|
14
|
-
import { s as startVitestModuleRunner, V as VITEST_VM_CONTEXT_SYMBOL, c as createNodeImportMeta } from './startVitestModuleRunner.
|
|
14
|
+
import { s as startVitestModuleRunner, V as VITEST_VM_CONTEXT_SYMBOL, c as createNodeImportMeta } from './startVitestModuleRunner.DB-7oCpn.js';
|
|
15
15
|
import { p as provideWorkerState } from './utils.BX5Fg8C4.js';
|
|
16
16
|
|
|
17
17
|
function interopCommonJsModule(interopDefault, mod) {
|
package/dist/cli.js
CHANGED
package/dist/node.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as vite from 'vite';
|
|
2
2
|
import { resolveConfig as resolveConfig$1, mergeConfig } from 'vite';
|
|
3
3
|
export { esbuildVersion, isCSSRequest, isFileLoadingAllowed, parseAst, parseAstAsync, rollupVersion, version as viteVersion } from 'vite';
|
|
4
|
-
import { V as Vitest, a as VitestPlugin } from './chunks/cli-api.
|
|
5
|
-
export { F as ForksPoolWorker, G as GitNotFoundError, b as TestsNotFoundError, T as ThreadsPoolWorker, c as TypecheckPoolWorker, d as VitestPackageInstaller, e as VmForksPoolWorker, f as VmThreadsPoolWorker, g as createDebugger, h as createMethodsRPC, i as createViteLogger, j as createVitest, k as escapeTestName, l as experimental_getRunnerTask, m as getFilePoolName, n as isFileServingAllowed, o as isValidApiRequest, r as registerConsoleShortcuts, p as resolveFsAllow, s as startVitest } from './chunks/cli-api.
|
|
6
|
-
export { p as parseCLI } from './chunks/cac.
|
|
4
|
+
import { V as Vitest, a as VitestPlugin } from './chunks/cli-api.CnMVyzaz.js';
|
|
5
|
+
export { F as ForksPoolWorker, G as GitNotFoundError, b as TestsNotFoundError, T as ThreadsPoolWorker, c as TypecheckPoolWorker, d as VitestPackageInstaller, e as VmForksPoolWorker, f as VmThreadsPoolWorker, g as createDebugger, h as createMethodsRPC, i as createViteLogger, j as createVitest, k as escapeTestName, l as experimental_getRunnerTask, m as getFilePoolName, n as isFileServingAllowed, o as isValidApiRequest, r as registerConsoleShortcuts, p as resolveFsAllow, s as startVitest } from './chunks/cli-api.CnMVyzaz.js';
|
|
6
|
+
export { p as parseCLI } from './chunks/cac.uFydS1Z4.js';
|
|
7
7
|
import { r as resolveConfig$2 } from './chunks/coverage.DM_a_rWm.js';
|
|
8
8
|
export { B as BaseCoverageProvider, a as BaseSequencer, b as resolveApiServerConfig } from './chunks/coverage.DM_a_rWm.js';
|
|
9
9
|
import { slash, deepClone } from '@vitest/utils/helpers';
|
package/dist/runtime.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { VitestModuleEvaluator } from './module-evaluator.js';
|
|
2
|
-
import { V as VITEST_VM_CONTEXT_SYMBOL, s as startVitestModuleRunner, a as VitestModuleRunner } from './chunks/startVitestModuleRunner.
|
|
2
|
+
import { V as VITEST_VM_CONTEXT_SYMBOL, s as startVitestModuleRunner, a as VitestModuleRunner } from './chunks/startVitestModuleRunner.DB-7oCpn.js';
|
|
3
3
|
import { g as getWorkerState } from './chunks/utils.BX5Fg8C4.js';
|
|
4
4
|
export { e as builtinEnvironments, p as populateGlobal } from './chunks/index.DC7d2Pf8.js';
|
|
5
5
|
export { VitestNodeSnapshotEnvironment as VitestSnapshotEnvironment } from './chunks/node.COQbm6gK.js';
|
package/dist/worker.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { r as runBaseTests, s as setupEnvironment } from './chunks/base.
|
|
2
|
-
export { i as init } from './chunks/init.
|
|
1
|
+
export { r as runBaseTests, s as setupEnvironment } from './chunks/base.B6Opl8PE.js';
|
|
2
|
+
export { i as init } from './chunks/init.k9zZ9sLh.js';
|
|
3
3
|
import 'node:vm';
|
|
4
4
|
import '@vitest/spy';
|
|
5
5
|
import './chunks/index.DXx9Dtk7.js';
|
|
@@ -36,7 +36,7 @@ import 'node:util';
|
|
|
36
36
|
import 'vite/module-runner';
|
|
37
37
|
import './chunks/traces.DT5aQ62U.js';
|
|
38
38
|
import './chunks/evaluatedModules.Dg1zASAC.js';
|
|
39
|
-
import './chunks/startVitestModuleRunner.
|
|
39
|
+
import './chunks/startVitestModuleRunner.DB-7oCpn.js';
|
|
40
40
|
import './chunks/modules.BJuCwlRJ.js';
|
|
41
41
|
import './path.js';
|
|
42
42
|
import './module-evaluator.js';
|
package/dist/workers/forks.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as runBaseTests, s as setupBaseEnvironment } from '../chunks/base.
|
|
2
|
-
import { w as workerInit } from '../chunks/init-forks.
|
|
1
|
+
import { r as runBaseTests, s as setupBaseEnvironment } from '../chunks/base.B6Opl8PE.js';
|
|
2
|
+
import { w as workerInit } from '../chunks/init-forks.H5ZuobOQ.js';
|
|
3
3
|
import 'node:vm';
|
|
4
4
|
import '@vitest/spy';
|
|
5
5
|
import '../chunks/index.DXx9Dtk7.js';
|
|
@@ -22,12 +22,12 @@ import 'pathe';
|
|
|
22
22
|
import '@vitest/utils/offset';
|
|
23
23
|
import '@vitest/utils/source-map';
|
|
24
24
|
import '../chunks/_commonjsHelpers.D26ty3Ew.js';
|
|
25
|
-
import '../chunks/init.
|
|
25
|
+
import '../chunks/init.k9zZ9sLh.js';
|
|
26
26
|
import 'node:fs';
|
|
27
27
|
import 'node:module';
|
|
28
28
|
import 'node:url';
|
|
29
29
|
import 'vite/module-runner';
|
|
30
|
-
import '../chunks/startVitestModuleRunner.
|
|
30
|
+
import '../chunks/startVitestModuleRunner.DB-7oCpn.js';
|
|
31
31
|
import '../chunks/modules.BJuCwlRJ.js';
|
|
32
32
|
import '../path.js';
|
|
33
33
|
import 'node:path';
|
package/dist/workers/threads.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { s as setupBaseEnvironment, r as runBaseTests } from '../chunks/base.
|
|
2
|
-
import { w as workerInit } from '../chunks/init-threads.
|
|
1
|
+
import { s as setupBaseEnvironment, r as runBaseTests } from '../chunks/base.B6Opl8PE.js';
|
|
2
|
+
import { w as workerInit } from '../chunks/init-threads.6kl1khcL.js';
|
|
3
3
|
import 'node:vm';
|
|
4
4
|
import '@vitest/spy';
|
|
5
5
|
import '../chunks/index.DXx9Dtk7.js';
|
|
@@ -22,12 +22,12 @@ import 'pathe';
|
|
|
22
22
|
import '@vitest/utils/offset';
|
|
23
23
|
import '@vitest/utils/source-map';
|
|
24
24
|
import '../chunks/_commonjsHelpers.D26ty3Ew.js';
|
|
25
|
-
import '../chunks/init.
|
|
25
|
+
import '../chunks/init.k9zZ9sLh.js';
|
|
26
26
|
import 'node:fs';
|
|
27
27
|
import 'node:module';
|
|
28
28
|
import 'node:url';
|
|
29
29
|
import 'vite/module-runner';
|
|
30
|
-
import '../chunks/startVitestModuleRunner.
|
|
30
|
+
import '../chunks/startVitestModuleRunner.DB-7oCpn.js';
|
|
31
31
|
import '../chunks/modules.BJuCwlRJ.js';
|
|
32
32
|
import '../path.js';
|
|
33
33
|
import 'node:path';
|
package/dist/workers/vmForks.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { w as workerInit } from '../chunks/init-forks.
|
|
2
|
-
import { r as runVmTests, s as setupVmWorker } from '../chunks/vm.
|
|
3
|
-
import '../chunks/init.
|
|
1
|
+
import { w as workerInit } from '../chunks/init-forks.H5ZuobOQ.js';
|
|
2
|
+
import { r as runVmTests, s as setupVmWorker } from '../chunks/vm.CXMd5FHa.js';
|
|
3
|
+
import '../chunks/init.k9zZ9sLh.js';
|
|
4
4
|
import 'node:fs';
|
|
5
5
|
import 'node:module';
|
|
6
6
|
import 'node:url';
|
|
7
7
|
import 'pathe';
|
|
8
8
|
import 'vite/module-runner';
|
|
9
|
-
import '../chunks/startVitestModuleRunner.
|
|
9
|
+
import '../chunks/startVitestModuleRunner.DB-7oCpn.js';
|
|
10
10
|
import '@vitest/utils/helpers';
|
|
11
11
|
import '../chunks/modules.BJuCwlRJ.js';
|
|
12
12
|
import '../chunks/utils.BX5Fg8C4.js';
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { w as workerInit } from '../chunks/init-threads.
|
|
2
|
-
import { s as setupVmWorker, r as runVmTests } from '../chunks/vm.
|
|
1
|
+
import { w as workerInit } from '../chunks/init-threads.6kl1khcL.js';
|
|
2
|
+
import { s as setupVmWorker, r as runVmTests } from '../chunks/vm.CXMd5FHa.js';
|
|
3
3
|
import 'node:worker_threads';
|
|
4
|
-
import '../chunks/init.
|
|
4
|
+
import '../chunks/init.k9zZ9sLh.js';
|
|
5
5
|
import 'node:fs';
|
|
6
6
|
import 'node:module';
|
|
7
7
|
import 'node:url';
|
|
8
8
|
import 'pathe';
|
|
9
9
|
import 'vite/module-runner';
|
|
10
|
-
import '../chunks/startVitestModuleRunner.
|
|
10
|
+
import '../chunks/startVitestModuleRunner.DB-7oCpn.js';
|
|
11
11
|
import '@vitest/utils/helpers';
|
|
12
12
|
import '../chunks/modules.BJuCwlRJ.js';
|
|
13
13
|
import '../chunks/utils.BX5Fg8C4.js';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vitest",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "4.1.
|
|
4
|
+
"version": "4.1.11",
|
|
5
5
|
"description": "Next generation testing framework powered by Vite",
|
|
6
6
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -135,12 +135,12 @@
|
|
|
135
135
|
"happy-dom": "*",
|
|
136
136
|
"jsdom": "*",
|
|
137
137
|
"vite": "^6.0.0 || ^7.0.0 || ^8.0.0",
|
|
138
|
-
"@vitest/browser-playwright": "4.1.
|
|
139
|
-
"@vitest/browser-preview": "4.1.
|
|
140
|
-
"@vitest/browser-webdriverio": "4.1.
|
|
141
|
-
"@vitest/coverage-
|
|
142
|
-
"@vitest/coverage-
|
|
143
|
-
"@vitest/ui": "4.1.
|
|
138
|
+
"@vitest/browser-playwright": "4.1.11",
|
|
139
|
+
"@vitest/browser-preview": "4.1.11",
|
|
140
|
+
"@vitest/browser-webdriverio": "4.1.11",
|
|
141
|
+
"@vitest/coverage-v8": "4.1.11",
|
|
142
|
+
"@vitest/coverage-istanbul": "4.1.11",
|
|
143
|
+
"@vitest/ui": "4.1.11"
|
|
144
144
|
},
|
|
145
145
|
"peerDependenciesMeta": {
|
|
146
146
|
"@edge-runtime/vm": {
|
|
@@ -194,13 +194,13 @@
|
|
|
194
194
|
"tinyrainbow": "^3.1.0",
|
|
195
195
|
"vite": "^6.0.0 || ^7.0.0 || ^8.0.0",
|
|
196
196
|
"why-is-node-running": "^2.3.0",
|
|
197
|
-
"@vitest/
|
|
198
|
-
"@vitest/
|
|
199
|
-
"@vitest/pretty-format": "4.1.
|
|
200
|
-
"@vitest/runner": "4.1.
|
|
201
|
-
"@vitest/spy": "4.1.
|
|
202
|
-
"@vitest/
|
|
203
|
-
"@vitest/
|
|
197
|
+
"@vitest/expect": "4.1.11",
|
|
198
|
+
"@vitest/mocker": "4.1.11",
|
|
199
|
+
"@vitest/pretty-format": "4.1.11",
|
|
200
|
+
"@vitest/runner": "4.1.11",
|
|
201
|
+
"@vitest/spy": "4.1.11",
|
|
202
|
+
"@vitest/utils": "4.1.11",
|
|
203
|
+
"@vitest/snapshot": "4.1.11"
|
|
204
204
|
},
|
|
205
205
|
"devDependencies": {
|
|
206
206
|
"@antfu/install-pkg": "^1.1.0",
|