Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vitest

Package Overview
Dependencies
Maintainers
4
Versions
375
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vitest - npm Package Compare versions

Comparing version 1.3.1 to 1.4.0

dist/chunks/integrations-globals.trMeEBob.js

2

dist/browser.d.ts
export { processError, startTests } from '@vitest/runner';
import { R as ResolvedConfig, C as CoverageOptions, b as CoverageProvider, c as CoverageProviderModule } from './reporters-MmQN-57K.js';
import { R as ResolvedConfig, C as CoverageOptions, b as CoverageProvider, c as CoverageProviderModule } from './reporters-P7C2ytIv.js';
import { VitestExecutor } from './execute.js';

@@ -4,0 +4,0 @@ import 'vite';

export { processError, startTests } from '@vitest/runner';
export { l as loadDiffConfig, a as loadSnapshotSerializers, s as setupCommonEnv } from './vendor/setup-common.snyQUvE3.js';
export { l as loadDiffConfig, a as loadSnapshotSerializers, s as setupCommonEnv } from './vendor/setup-common.vyF1kALR.js';
export { g as getCoverageProvider, a as startCoverageInsideWorker, s as stopCoverageInsideWorker, t as takeCoverageInsideWorker } from './vendor/coverage.E7sG1b3r.js';

@@ -4,0 +4,0 @@ import '@vitest/utils';

@@ -1,2 +0,2 @@

import { d as createCLI } from './vendor/cac.wWT9ELdg.js';
import { d as createCLI } from './vendor/cac.RvTIWZBK.js';
import 'pathe';

@@ -10,6 +10,6 @@ import 'events';

import './vendor/global.CkGT_TMy.js';
import './vendor/index.c1V_jzyZ.js';
import './vendor/index.e9RDLAeW.js';
import 'node:fs';
import 'node:perf_hooks';
import './chunks/runtime-console.Iloo9fIt.js';
import './chunks/runtime-console.tUKE_2UJ.js';
import 'node:stream';

@@ -19,3 +19,3 @@ import 'node:console';

import './vendor/date.Ns1pGd_X.js';
import './vendor/base.N3JkKp7j.js';
import './vendor/base.Xt0Omgh7.js';
import './vendor/tasks.IknbGB2n.js';

@@ -22,0 +22,0 @@ import '@vitest/utils/source-map';

export { ConfigEnv, UserConfig, mergeConfig } from 'vite';
export { ax as UserConfigExport, aw as UserConfigFn, au as UserConfigFnObject, av as UserConfigFnPromise, az as UserProjectConfigExport, ay as UserProjectConfigFn, a1 as UserWorkspaceConfig, aD as configDefaults, aG as coverageConfigDefaults, aF as defaultExclude, aE as defaultInclude, aA as defineConfig, aB as defineProject, aC as defineWorkspace, aH as extraInlineDeps } from './reporters-MmQN-57K.js';
export { ax as UserConfigExport, aw as UserConfigFn, au as UserConfigFnObject, av as UserConfigFnPromise, az as UserProjectConfigExport, ay as UserProjectConfigFn, a1 as UserWorkspaceConfig, aD as configDefaults, aG as coverageConfigDefaults, aF as defaultExclude, aE as defaultInclude, aA as defineConfig, aB as defineProject, aC as defineWorkspace, aH as extraInlineDeps } from './reporters-P7C2ytIv.js';
import '@vitest/runner';

@@ -4,0 +4,0 @@ import 'vite-node';

@@ -1,2 +0,2 @@

import { B as BaseCoverageOptions, a as ResolvedCoverageOptions } from './reporters-MmQN-57K.js';
import { B as BaseCoverageOptions, a as ResolvedCoverageOptions } from './reporters-P7C2ytIv.js';
import 'vite';

@@ -3,0 +3,0 @@ import '@vitest/runner';

@@ -1,2 +0,2 @@

import { E as Environment } from './reporters-MmQN-57K.js';
import { E as Environment } from './reporters-P7C2ytIv.js';
import 'vite';

@@ -3,0 +3,0 @@ import '@vitest/runner';

import vm from 'node:vm';
import { ViteNodeRunner } from 'vite-node/client';
import { ViteNodeRunnerOptions } from 'vite-node';
import { ar as PendingSuiteMock, as as MockFactory, e as RuntimeRPC, W as WorkerGlobalState, at as MockMap } from './reporters-MmQN-57K.js';
import { ar as PendingSuiteMock, as as MockFactory, e as RuntimeRPC, W as WorkerGlobalState, at as MockMap } from './reporters-P7C2ytIv.js';
import 'vite';

@@ -6,0 +6,0 @@ import '@vitest/runner';

@@ -1,2 +0,2 @@

export { V as VitestExecutor } from './vendor/execute.27Kk4lQF.js';
export { V as VitestExecutor } from './vendor/execute.2_yoIC01.js';
import 'node:vm';

@@ -11,2 +11,2 @@ import 'node:url';

import '@vitest/utils';
import './vendor/base.N3JkKp7j.js';
import './vendor/base.Xt0Omgh7.js';
import { TaskPopulated, File, TaskResultPack, CancelReason } from '@vitest/runner';
export { Custom, DoneCallback, ExtendedContext, File, HookCleanupCallback, HookListener, OnTestFailedHandler, RunMode, RuntimeContext, SequenceHooks, SequenceSetupFiles, Suite, SuiteAPI, SuiteCollector, SuiteFactory, SuiteHooks, Task, TaskBase, TaskContext, TaskCustomOptions, TaskMeta, TaskResult, TaskResultPack, TaskState, Test, TestAPI, TestContext, TestFunction, TestOptions, afterAll, afterEach, beforeAll, beforeEach, describe, it, onTestFailed, onTestFinished, suite, test } from '@vitest/runner';
export { b as bench } from './suite-UrZdHRff.js';
export { b as bench } from './suite-a18diDsI.js';
import { ExpectStatic } from '@vitest/expect';
export { Assertion, AsymmetricMatchersContaining, ExpectStatic, JestAssertion } from '@vitest/expect';
import { F as FakeTimerInstallOpts, M as MockFactoryWithHelper, t as RuntimeConfig, P as ProvidedContext, A as AfterSuiteRunMeta, u as UserConsoleLog, R as ResolvedConfig, v as ModuleGraphData, w as Reporter } from './reporters-MmQN-57K.js';
export { S as ApiConfig, aa as ArgumentsType, a9 as Arrayable, a7 as Awaitable, B as BaseCoverageOptions, ap as BenchFunction, an as Benchmark, aq as BenchmarkAPI, ao as BenchmarkResult, am as BenchmarkUserOptions, N as BuiltinEnvironment, Q as CSSModuleScopeStrategy, z as CollectLineNumbers, D as CollectLines, ac as Constructable, H as Context, f as ContextRPC, a3 as ContextTestEnvironment, aj as CoverageIstanbulOptions, C as CoverageOptions, b as CoverageProvider, c as CoverageProviderModule, ai as CoverageReporter, ak as CoverageV8Options, al as CustomProviderOptions, Y as DepsOptimizationOptions, E as Environment, X as EnvironmentOptions, ae as EnvironmentReturn, L as HappyDOMOptions, _ as InlineConfig, K as JSDOMOptions, ad as ModuleCache, ab as MutableArray, a8 as Nullable, ag as OnServerRestartHandler, I as Pool, J as PoolOptions, a0 as ProjectConfig, x as RawErrsMap, ah as ReportContext, a5 as ResolveIdFunction, a as ResolvedCoverageOptions, a4 as ResolvedTestEnvironment, G as RootAndTarget, a2 as RunnerRPC, e as RuntimeRPC, Z as TransformModePatterns, y as TscErrorInfo, $ as TypecheckConfig, U as UserConfig, a1 as UserWorkspaceConfig, i as Vitest, O as VitestEnvironment, V as VitestRunMode, af as VmEnvironmentReturn, g as WorkerContext, W as WorkerGlobalState, a6 as WorkerRPC } from './reporters-MmQN-57K.js';
import { F as FakeTimerInstallOpts, M as MockFactoryWithHelper, t as RuntimeConfig, P as ProvidedContext, A as AfterSuiteRunMeta, u as UserConsoleLog, R as ResolvedConfig, v as ModuleGraphData, w as Reporter } from './reporters-P7C2ytIv.js';
export { S as ApiConfig, aa as ArgumentsType, a9 as Arrayable, a7 as Awaitable, B as BaseCoverageOptions, ap as BenchFunction, an as Benchmark, aq as BenchmarkAPI, ao as BenchmarkResult, am as BenchmarkUserOptions, N as BuiltinEnvironment, Q as CSSModuleScopeStrategy, z as CollectLineNumbers, D as CollectLines, ac as Constructable, H as Context, f as ContextRPC, a3 as ContextTestEnvironment, aj as CoverageIstanbulOptions, C as CoverageOptions, b as CoverageProvider, c as CoverageProviderModule, ai as CoverageReporter, ak as CoverageV8Options, al as CustomProviderOptions, Y as DepsOptimizationOptions, E as Environment, X as EnvironmentOptions, ae as EnvironmentReturn, L as HappyDOMOptions, _ as InlineConfig, K as JSDOMOptions, ad as ModuleCache, ab as MutableArray, a8 as Nullable, ag as OnServerRestartHandler, I as Pool, J as PoolOptions, a0 as ProjectConfig, x as RawErrsMap, ah as ReportContext, a5 as ResolveIdFunction, a as ResolvedCoverageOptions, a4 as ResolvedTestEnvironment, G as RootAndTarget, a2 as RunnerRPC, e as RuntimeRPC, Z as TransformModePatterns, y as TscErrorInfo, $ as TypecheckConfig, U as UserConfig, a1 as UserWorkspaceConfig, i as Vitest, O as VitestEnvironment, V as VitestRunMode, af as VmEnvironmentReturn, g as WorkerContext, W as WorkerGlobalState, a6 as WorkerRPC } from './reporters-P7C2ytIv.js';
import { spyOn, fn, MaybeMockedDeep, MaybeMocked, MaybePartiallyMocked, MaybePartiallyMockedDeep, MockInstance } from '@vitest/spy';

@@ -690,2 +690,3 @@ export { Mock, MockContext, MockInstance, Mocked, MockedClass, MockedFunction, MockedObject, SpyInstance } from '@vitest/spy';

getModuleGraph: (id: string) => Promise<ModuleGraphData>;
getBrowserFileSourceMap: (id: string) => Promise<TransformResult['map'] | undefined>;
getTransformResult: (id: string) => Promise<TransformResultWithSource | undefined>;

@@ -692,0 +693,0 @@ readSnapshotFile: (id: string) => Promise<string | null>;

export { afterAll, afterEach, beforeAll, beforeEach, describe, it, onTestFailed, onTestFinished, suite, test } from '@vitest/runner';
export { b as bench } from './vendor/benchmark.eeqk2rd8.js';
export { i as isFirstRun, a as runOnce } from './vendor/run-once.Olz_Zkd8.js';
export { c as createExpect, a as expect, v as vi, b as vitest } from './vendor/vi.C5mroSoP.js';
import { d as dist } from './vendor/index.JZMafwT-.js';
export { b as assertType, g as getRunningMode, i as inject, a as isWatchMode } from './vendor/index.JZMafwT-.js';
export { c as createExpect, a as expect, v as vi, b as vitest } from './vendor/vi.JYQecGiw.js';
import { d as dist } from './vendor/index.BeX1oZht.js';
export { b as assertType, g as getRunningMode, i as inject, a as isWatchMode } from './vendor/index.BeX1oZht.js';
import * as chai from 'chai';

@@ -22,3 +22,3 @@ export { chai };

import '@vitest/utils/source-map';
import './vendor/base.N3JkKp7j.js';
import './vendor/base.Xt0Omgh7.js';
import './vendor/date.Ns1pGd_X.js';

@@ -25,0 +25,0 @@ import '@vitest/spy';

@@ -1,3 +0,3 @@

import { V as VitestRunMode, U as UserConfig, h as VitestOptions, i as Vitest, j as CliOptions, R as ResolvedConfig, P as ProvidedContext, k as WorkspaceProject, e as RuntimeRPC, T as TestSequencer, l as WorkspaceSpec } from './reporters-MmQN-57K.js';
export { q as BrowserProvider, p as BrowserProviderInitializationOptions, r as BrowserProviderOptions, m as ProcessPool, o as TestSequencerConstructor, n as VitestPackageInstaller, s as startVitest } from './reporters-MmQN-57K.js';
import { V as VitestRunMode, U as UserConfig, h as VitestOptions, i as Vitest, j as CliOptions, R as ResolvedConfig, P as ProvidedContext, k as WorkspaceProject, e as RuntimeRPC, T as TestSequencer, l as WorkspaceSpec } from './reporters-P7C2ytIv.js';
export { q as BrowserProvider, p as BrowserProviderInitializationOptions, r as BrowserProviderOptions, m as ProcessPool, o as TestSequencerConstructor, n as VitestPackageInstaller, s as startVitest } from './reporters-P7C2ytIv.js';
import { UserConfig as UserConfig$1, Plugin } from 'vite';

@@ -4,0 +4,0 @@ import '@vitest/runner';

@@ -1,3 +0,3 @@

export { b as VitestPackageInstaller, V as VitestPlugin, a as createMethodsRPC, c as createVitest, p as parseCLI, r as registerConsoleShortcuts, s as startVitest } from './vendor/cac.wWT9ELdg.js';
export { B as BaseSequencer } from './vendor/index.c1V_jzyZ.js';
export { b as VitestPackageInstaller, V as VitestPlugin, a as createMethodsRPC, c as createVitest, p as parseCLI, r as registerConsoleShortcuts, s as startVitest } from './vendor/cac.RvTIWZBK.js';
export { B as BaseSequencer } from './vendor/index.e9RDLAeW.js';
import 'pathe';

@@ -41,3 +41,3 @@ import 'events';

import '@vitest/utils/source-map';
import './vendor/base.N3JkKp7j.js';
import './vendor/base.Xt0Omgh7.js';
import 'node:v8';

@@ -59,3 +59,3 @@ import 'node:os';

import 'node:perf_hooks';
import './chunks/runtime-console.Iloo9fIt.js';
import './chunks/runtime-console.tUKE_2UJ.js';
import 'node:stream';

@@ -62,0 +62,0 @@ import './vendor/date.Ns1pGd_X.js';

@@ -1,2 +0,2 @@

export { aS as BaseReporter, aJ as BasicReporter, a_ as BenchmarkBuiltinReporters, aZ as BenchmarkReportsMap, aV as BuiltinReporterOptions, aU as BuiltinReporters, aI as DefaultReporter, aK as DotReporter, aR as GithubActionsReporter, aQ as HangingProcessReporter, aO as JUnitReporter, aW as JsonAssertionResult, aL as JsonReporter, aX as JsonTestResult, aY as JsonTestResults, w as Reporter, aT as ReportersMap, aP as TapFlatReporter, aN as TapReporter, aM as VerboseReporter } from './reporters-MmQN-57K.js';
export { aS as BaseReporter, aJ as BasicReporter, a_ as BenchmarkBuiltinReporters, aZ as BenchmarkReportsMap, aV as BuiltinReporterOptions, aU as BuiltinReporters, aI as DefaultReporter, aK as DotReporter, aR as GithubActionsReporter, aQ as HangingProcessReporter, aO as JUnitReporter, aW as JsonAssertionResult, aL as JsonReporter, aX as JsonTestResult, aY as JsonTestResults, w as Reporter, aT as ReportersMap, aP as TapFlatReporter, aN as TapReporter, aM as VerboseReporter } from './reporters-P7C2ytIv.js';
import 'vite';

@@ -3,0 +3,0 @@ import '@vitest/runner';

@@ -1,2 +0,2 @@

export { a as BasicReporter, e as BenchmarkReportsMap, D as DefaultReporter, b as DotReporter, G as GithubActionsReporter, H as HangingProcessReporter, c as JUnitReporter, J as JsonReporter, R as ReportersMap, d as TapFlatReporter, T as TapReporter, V as VerboseReporter } from './vendor/index.c1V_jzyZ.js';
export { a as BasicReporter, e as BenchmarkReportsMap, D as DefaultReporter, b as DotReporter, G as GithubActionsReporter, H as HangingProcessReporter, c as JUnitReporter, J as JsonReporter, R as ReportersMap, d as TapFlatReporter, T as TapReporter, V as VerboseReporter } from './vendor/index.e9RDLAeW.js';
import 'node:fs';

@@ -11,3 +11,3 @@ import 'pathe';

import 'node:perf_hooks';
import './chunks/runtime-console.Iloo9fIt.js';
import './chunks/runtime-console.tUKE_2UJ.js';
import 'node:stream';

@@ -17,3 +17,3 @@ import 'node:console';

import './vendor/date.Ns1pGd_X.js';
import './vendor/base.N3JkKp7j.js';
import './vendor/base.Xt0Omgh7.js';
import './vendor/tasks.IknbGB2n.js';

@@ -20,0 +20,0 @@ import '@vitest/utils/source-map';

import { VitestRunner, VitestRunnerImportSource, Suite, Task, CancelReason, Test, Custom, TaskContext, ExtendedContext } from '@vitest/runner';
import { R as ResolvedConfig } from './reporters-MmQN-57K.js';
import { R as ResolvedConfig } from './reporters-P7C2ytIv.js';
import * as tinybench from 'tinybench';

@@ -26,2 +26,3 @@ import 'vite';

onBeforeRunFiles(): void;
onAfterRunFiles(): void;
onAfterRunSuite(suite: Suite): Promise<void>;

@@ -28,0 +29,0 @@ onAfterRunTask(test: Task): void;

import { setState, GLOBAL_EXPECT, getState } from '@vitest/expect';
import { g as getSnapshotClient, c as createExpect, v as vi } from './vendor/vi.C5mroSoP.js';
import { g as getSnapshotClient, c as createExpect, v as vi } from './vendor/vi.JYQecGiw.js';
import './vendor/index.ir9i0ywP.js';

@@ -16,3 +16,3 @@ import { r as rpc } from './vendor/rpc.joBhAkyK.js';

import '@vitest/utils/source-map';
import './vendor/base.N3JkKp7j.js';
import './vendor/base.Xt0Omgh7.js';
import './vendor/date.Ns1pGd_X.js';

@@ -40,2 +40,5 @@ import '@vitest/spy';

}
onAfterRunFiles() {
this.workerState.current = void 0;
}
async onAfterRunSuite(suite) {

@@ -55,2 +58,3 @@ if (this.config.logHeapUsage && typeof process !== "undefined")

}
this.workerState.current = suite.suite;
}

@@ -61,3 +65,3 @@ onAfterRunTask(test) {

test.result.heap = process.memoryUsage().heapUsed;
this.workerState.current = void 0;
this.workerState.current = test.suite;
}

@@ -81,2 +85,3 @@ onCancel(_reason) {

}
this.workerState.current = suite;
}

@@ -83,0 +88,0 @@ onBeforeTryTask(test) {

export { createTaskCollector, getCurrentSuite, getFn, getHooks, setFn, setHooks } from '@vitest/runner';
export { createChainable } from '@vitest/runner/utils';
export { g as getBenchFn, a as getBenchOptions } from './suite-UrZdHRff.js';
import './reporters-MmQN-57K.js';
export { g as getBenchFn, a as getBenchOptions } from './suite-a18diDsI.js';
import './reporters-P7C2ytIv.js';
import 'vite';

@@ -6,0 +6,0 @@ import 'vite-node';

@@ -0,1 +1,6 @@

import * as _vitest_utils_source_map from '@vitest/utils/source-map';
export * from '@vitest/utils';
declare function loadSourceMapUtils(): Promise<typeof _vitest_utils_source_map>;
export { loadSourceMapUtils };
export * from '@vitest/utils';
function loadSourceMapUtils() {
return import('@vitest/utils/source-map');
}
export { loadSourceMapUtils };

@@ -6,3 +6,3 @@ import { pathToFileURL } from 'node:url';

import { e as environments } from './vendor/index.GVFv9dZ0.js';
import { i as isChildProcess, s as setProcessTitle } from './vendor/base.N3JkKp7j.js';
import { i as isChildProcess, s as setProcessTitle } from './vendor/base.Xt0Omgh7.js';
import { createRequire } from 'node:module';

@@ -56,4 +56,6 @@ import { c as createRuntimeRpc, a as rpcDone } from './vendor/rpc.joBhAkyK.js';

let inspector;
function setupInspect(config) {
let session;
function setupInspect(ctx) {
var _a, _b, _c, _d, _e, _f, _g, _h;
const config = ctx.config;
const isEnabled = config.inspect || config.inspectBrk;

@@ -65,4 +67,15 @@ if (isEnabled) {

inspector.open();
if (config.inspectBrk)
if (config.inspectBrk) {
inspector.waitForDebugger();
const firstTestFile = ctx.files[0];
if (firstTestFile) {
session = new inspector.Session();
session.connect();
session.post("Debugger.enable");
session.post("Debugger.setBreakpointByUrl", {
lineNumber: 0,
url: new URL(firstTestFile, import.meta.url).href
});
}
}
}

@@ -74,4 +87,6 @@ }

return function cleanup() {
if (isEnabled && !keepOpen && inspector)
if (isEnabled && !keepOpen && inspector) {
inspector.close();
session == null ? void 0 : session.disconnect();
}
};

@@ -84,3 +99,3 @@ }

const prepareStart = performance.now();
const inspectorCleanup = setupInspect(ctx.config);
const inspectorCleanup = setupInspect(ctx);
process.env.VITEST_WORKER_ID = String(ctx.workerId);

@@ -87,0 +102,0 @@ process.env.VITEST_POOL_ID = String(workerId);

import * as v8 from 'v8';
import { d as BirpcOptions, e as RuntimeRPC, f as ContextRPC, W as WorkerGlobalState, g as WorkerContext, R as ResolvedConfig } from './reporters-MmQN-57K.js';
import { d as BirpcOptions, e as RuntimeRPC, f as ContextRPC, W as WorkerGlobalState, g as WorkerContext, R as ResolvedConfig } from './reporters-P7C2ytIv.js';
import { Awaitable } from '@vitest/utils';

@@ -26,3 +26,6 @@ import 'vite';

declare function createForksRpcOptions(nodeV8: typeof v8): WorkerRpcOptions;
declare function unwrapForksConfig(config: ResolvedConfig): ResolvedConfig;
/**
* Reverts the wrapping done by `utils/config-helpers.ts`'s `wrapSerializableConfig`
*/
declare function unwrapSerializableConfig(config: ResolvedConfig): ResolvedConfig;

@@ -37,2 +40,2 @@ declare function provideWorkerState(context: any, state: WorkerGlobalState): WorkerGlobalState;

export { type VitestWorker, type WorkerRpcOptions, createForksRpcOptions, createThreadsRpcOptions, provideWorkerState, runBaseTests, run as runVitestWorker, runVmTests, unwrapForksConfig };
export { type VitestWorker, type WorkerRpcOptions, createForksRpcOptions, createThreadsRpcOptions, provideWorkerState, runBaseTests, run as runVitestWorker, runVmTests, unwrapSerializableConfig };

@@ -1,6 +0,6 @@

export { c as createForksRpcOptions, a as createThreadsRpcOptions, u as unwrapForksConfig } from './vendor/utils.GbToHGHI.js';
export { c as createForksRpcOptions, a as createThreadsRpcOptions, u as unwrapSerializableConfig } from './vendor/utils.w0xgzP1h.js';
export { p as provideWorkerState } from './vendor/global.CkGT_TMy.js';
export { run as runVitestWorker } from './worker.js';
export { r as runVmTests } from './vendor/vm.o1IruPAo.js';
export { r as runBaseTests } from './vendor/base.Z38YsPLm.js';
export { r as runVmTests } from './vendor/vm.cAHVDF92.js';
export { r as runBaseTests } from './vendor/base.nhvUBzQY.js';
import '@vitest/utils';

@@ -13,3 +13,3 @@ import 'node:url';

import 'node:console';
import './vendor/base.N3JkKp7j.js';
import './vendor/base.Xt0Omgh7.js';
import 'node:module';

@@ -19,7 +19,7 @@ import './vendor/rpc.joBhAkyK.js';

import 'node:vm';
import './chunks/runtime-console.Iloo9fIt.js';
import './chunks/runtime-console.tUKE_2UJ.js';
import 'node:stream';
import 'node:path';
import './vendor/date.Ns1pGd_X.js';
import './vendor/execute.27Kk4lQF.js';
import './vendor/execute.2_yoIC01.js';
import 'vite-node/utils';

@@ -26,0 +26,0 @@ import '@vitest/utils/error';

import v8 from 'node:v8';
import { c as createForksRpcOptions, u as unwrapForksConfig } from '../vendor/utils.GbToHGHI.js';
import { r as runBaseTests } from '../vendor/base.Z38YsPLm.js';
import { c as createForksRpcOptions, u as unwrapSerializableConfig } from '../vendor/utils.w0xgzP1h.js';
import { r as runBaseTests } from '../vendor/base.nhvUBzQY.js';
import '@vitest/utils';
import 'vite-node/client';
import '../vendor/global.CkGT_TMy.js';
import '../vendor/execute.27Kk4lQF.js';
import '../vendor/execute.2_yoIC01.js';
import 'node:vm';

@@ -15,3 +15,3 @@ import 'node:url';

import 'node:fs';
import '../vendor/base.N3JkKp7j.js';
import '../vendor/base.Xt0Omgh7.js';

@@ -24,3 +24,3 @@ class ForksBaseWorker {

const exit = process.exit;
state.ctx.config = unwrapForksConfig(state.ctx.config);
state.ctx.config = unwrapSerializableConfig(state.ctx.config);
try {

@@ -27,0 +27,0 @@ await runBaseTests(state);

@@ -9,7 +9,7 @@ import { isatty } from 'node:tty';

import { installSourcemapsSupport } from 'vite-node/source-map';
import { V as VitestSnapshotEnvironment, s as setupChaiConfig, r as resolveTestRunner } from '../vendor/index.9hqYxJUw.js';
import { V as VitestSnapshotEnvironment, s as setupChaiConfig, r as resolveTestRunner } from '../vendor/index.LNWuEnUT.js';
import { a as startCoverageInsideWorker, s as stopCoverageInsideWorker } from '../vendor/coverage.E7sG1b3r.js';
import { g as getWorkerState } from '../vendor/global.CkGT_TMy.js';
import { V as VitestIndex } from '../vendor/index.JZMafwT-.js';
import { s as setupCommonEnv } from '../vendor/setup-common.snyQUvE3.js';
import { V as VitestIndex } from '../vendor/index.BeX1oZht.js';
import { s as setupCommonEnv } from '../vendor/setup-common.vyF1kALR.js';
import 'chai';

@@ -27,3 +27,3 @@ import '@vitest/snapshot/environment';

import '../vendor/run-once.Olz_Zkd8.js';
import '../vendor/vi.C5mroSoP.js';
import '../vendor/vi.JYQecGiw.js';
import '../vendor/_commonjsHelpers.jjO7Zipk.js';

@@ -35,3 +35,3 @@ import '@vitest/expect';

import '@vitest/utils/source-map';
import '../vendor/base.N3JkKp7j.js';
import '../vendor/base.Xt0Omgh7.js';
import '../vendor/date.Ns1pGd_X.js';

@@ -38,0 +38,0 @@ import '@vitest/spy';

@@ -1,6 +0,6 @@

import { r as runBaseTests } from '../vendor/base.Z38YsPLm.js';
import { a as createThreadsRpcOptions } from '../vendor/utils.GbToHGHI.js';
import { r as runBaseTests } from '../vendor/base.nhvUBzQY.js';
import { a as createThreadsRpcOptions } from '../vendor/utils.w0xgzP1h.js';
import 'vite-node/client';
import '../vendor/global.CkGT_TMy.js';
import '../vendor/execute.27Kk4lQF.js';
import '../vendor/execute.2_yoIC01.js';
import 'node:vm';

@@ -14,3 +14,3 @@ import 'node:url';

import '@vitest/utils';
import '../vendor/base.N3JkKp7j.js';
import '../vendor/base.Xt0Omgh7.js';

@@ -17,0 +17,0 @@ class ThreadsBaseWorker {

import v8 from 'node:v8';
import { c as createForksRpcOptions, u as unwrapForksConfig } from '../vendor/utils.GbToHGHI.js';
import { r as runVmTests } from '../vendor/vm.o1IruPAo.js';
import { c as createForksRpcOptions, u as unwrapSerializableConfig } from '../vendor/utils.w0xgzP1h.js';
import { r as runVmTests } from '../vendor/vm.cAHVDF92.js';
import '@vitest/utils';

@@ -8,3 +8,3 @@ import 'node:vm';

import 'pathe';
import '../chunks/runtime-console.Iloo9fIt.js';
import '../chunks/runtime-console.tUKE_2UJ.js';
import 'node:stream';

@@ -14,3 +14,3 @@ import 'node:console';

import '../vendor/date.Ns1pGd_X.js';
import '../vendor/execute.27Kk4lQF.js';
import '../vendor/execute.2_yoIC01.js';
import 'vite-node/client';

@@ -21,3 +21,3 @@ import 'vite-node/utils';

import 'node:fs';
import '../vendor/base.N3JkKp7j.js';
import '../vendor/base.Xt0Omgh7.js';
import 'node:module';

@@ -36,3 +36,3 @@ import 'vite-node/constants';

const exit = process.exit;
state.ctx.config = unwrapForksConfig(state.ctx.config);
state.ctx.config = unwrapSerializableConfig(state.ctx.config);
try {

@@ -39,0 +39,0 @@ await runVmTests(state);

@@ -1,3 +0,3 @@

import { a as createThreadsRpcOptions } from '../vendor/utils.GbToHGHI.js';
import { r as runVmTests } from '../vendor/vm.o1IruPAo.js';
import { a as createThreadsRpcOptions } from '../vendor/utils.w0xgzP1h.js';
import { r as runVmTests } from '../vendor/vm.cAHVDF92.js';
import '@vitest/utils';

@@ -7,3 +7,3 @@ import 'node:vm';

import 'pathe';
import '../chunks/runtime-console.Iloo9fIt.js';
import '../chunks/runtime-console.tUKE_2UJ.js';
import 'node:stream';

@@ -13,3 +13,3 @@ import 'node:console';

import '../vendor/date.Ns1pGd_X.js';
import '../vendor/execute.27Kk4lQF.js';
import '../vendor/execute.2_yoIC01.js';
import 'vite-node/client';

@@ -20,3 +20,3 @@ import 'vite-node/utils';

import 'node:fs';
import '../vendor/base.N3JkKp7j.js';
import '../vendor/base.Xt0Omgh7.js';
import 'node:module';

@@ -23,0 +23,0 @@ import 'vite-node/constants';

{
"name": "vitest",
"type": "module",
"version": "1.3.1",
"version": "1.4.0",
"description": "Next generation testing framework powered by Vite",

@@ -118,4 +118,4 @@ "author": "Anthony Fu <anthonyfu117@hotmail.com>",

"jsdom": "*",
"@vitest/browser": "1.3.1",
"@vitest/ui": "1.3.1"
"@vitest/browser": "1.4.0",
"@vitest/ui": "1.4.0"
},

@@ -157,8 +157,8 @@ "peerDependenciesMeta": {

"why-is-node-running": "^2.2.2",
"@vitest/expect": "1.3.1",
"@vitest/runner": "1.3.1",
"@vitest/snapshot": "1.3.1",
"@vitest/spy": "1.3.1",
"@vitest/utils": "1.3.1",
"vite-node": "1.3.1"
"@vitest/expect": "1.4.0",
"@vitest/runner": "1.4.0",
"@vitest/spy": "1.4.0",
"@vitest/snapshot": "1.4.0",
"@vitest/utils": "1.4.0",
"vite-node": "1.4.0"
},

@@ -186,3 +186,3 @@ "devDependencies": {

"flatted": "^3.2.9",
"get-tsconfig": "^4.7.2",
"get-tsconfig": "^4.7.3",
"happy-dom": "^13.3.8",

@@ -189,0 +189,0 @@ "jsdom": "^24.0.0",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc