Comparing version 1.5.3 to 1.6.0
export { processError, startTests } from '@vitest/runner'; | ||
import { R as ResolvedConfig, C as CoverageOptions, b as CoverageProvider, c as CoverageProviderModule } from './reporters-BXNXFKfg.js'; | ||
import { R as ResolvedConfig, C as CoverageOptions, b as CoverageProvider, c as CoverageProviderModule } from './reporters-yx5ZTtEV.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.5nUd4r76.js'; | ||
export { l as loadDiffConfig, a as loadSnapshotSerializers, s as setupCommonEnv } from './vendor/setup-common.8nJLd4ay.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,6 +0,6 @@ | ||
import { c as createCLI } from './vendor/cac.RDd_SGOd.js'; | ||
import { c as createCLI } from './vendor/cac.EdDItJD-.js'; | ||
import 'pathe'; | ||
import 'events'; | ||
import 'picocolors'; | ||
import './vendor/base.Xt0Omgh7.js'; | ||
import './vendor/base.5NT-gWu5.js'; | ||
import '@vitest/utils'; | ||
@@ -7,0 +7,0 @@ import './vendor/constants.5J7I254_.js'; |
export { ConfigEnv, UserConfig, mergeConfig } from 'vite'; | ||
export { av as UserConfigExport, au as UserConfigFn, as as UserConfigFnObject, at as UserConfigFnPromise, ax as UserProjectConfigExport, aw as UserProjectConfigFn, $ as UserWorkspaceConfig, aB as configDefaults, aE as coverageConfigDefaults, aD as defaultExclude, aC as defaultInclude, ay as defineConfig, az as defineProject, aA as defineWorkspace, aF as extraInlineDeps } from './reporters-BXNXFKfg.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-yx5ZTtEV.js'; | ||
import '@vitest/runner'; | ||
@@ -4,0 +4,0 @@ import 'vite-node'; |
@@ -24,3 +24,3 @@ import os from 'node:os'; | ||
"test?(-*).?(c|m)[jt]s?(x)", | ||
"**/*{.,-}{test,spec}.?(c|m)[jt]s?(x)", | ||
"**/*{.,-}{test,spec}?(-d).?(c|m)[jt]s?(x)", | ||
"**/__tests__/**", | ||
@@ -27,0 +27,0 @@ "**/{karma,rollup,webpack,vite,vitest,jest,ava,babel,nyc,cypress,tsup,build}.config.*", |
@@ -1,2 +0,2 @@ | ||
import { B as BaseCoverageOptions, a as ResolvedCoverageOptions } from './reporters-BXNXFKfg.js'; | ||
import { B as BaseCoverageOptions, a as ResolvedCoverageOptions } from './reporters-yx5ZTtEV.js'; | ||
import 'vite'; | ||
@@ -3,0 +3,0 @@ import '@vitest/runner'; |
@@ -1,2 +0,2 @@ | ||
import { E as Environment } from './reporters-BXNXFKfg.js'; | ||
import { E as Environment } from './reporters-yx5ZTtEV.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 { ap as PendingSuiteMock, aq as MockFactory, e as RuntimeRPC, W as WorkerGlobalState, ar as MockMap } from './reporters-BXNXFKfg.js'; | ||
import { ar as PendingSuiteMock, as as MockFactory, e as RuntimeRPC, W as WorkerGlobalState, at as MockMap } from './reporters-yx5ZTtEV.js'; | ||
import 'vite'; | ||
@@ -100,2 +100,3 @@ import '@vitest/runner'; | ||
declare class ExternalModulesExecutor { | ||
#private; | ||
private options; | ||
@@ -109,2 +110,5 @@ private cjs; | ||
constructor(options: ExternalModulesExecutorOptions); | ||
import(identifier: string): Promise<Object>; | ||
require(identifier: string): any; | ||
createRequire(identifier: string): NodeRequire; | ||
importModuleDynamically: (specifier: string, referencer: VMModule) => Promise<VMModule>; | ||
@@ -118,5 +122,3 @@ resolveModule: (specifier: string, referencer: string) => Promise<VMModule>; | ||
private createModule; | ||
import(identifier: string): Promise<Object>; | ||
require(identifier: string): any; | ||
createRequire(identifier: string): NodeRequire; | ||
private get isNetworkSupported(); | ||
} | ||
@@ -123,0 +125,0 @@ |
@@ -1,4 +0,5 @@ | ||
export { V as VitestExecutor } from './vendor/execute.2_yoIC01.js'; | ||
export { V as VitestExecutor } from './vendor/execute.fL3szUAI.js'; | ||
import 'node:vm'; | ||
import 'node:url'; | ||
import 'node:fs'; | ||
import 'vite-node/client'; | ||
@@ -9,4 +10,3 @@ import 'vite-node/utils'; | ||
import './path.js'; | ||
import 'node:fs'; | ||
import '@vitest/utils'; | ||
import './vendor/base.Xt0Omgh7.js'; | ||
import './vendor/base.5NT-gWu5.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-KPWE530F.js'; | ||
export { b as bench } from './suite-IbNSsUWN.js'; | ||
import { ExpectStatic } from '@vitest/expect'; | ||
export { Assertion, AsymmetricMatchersContaining, ExpectStatic, JestAssertion } from '@vitest/expect'; | ||
import { F as FakeTimerInstallOpts, M as MockFactoryWithHelper, r as RuntimeConfig, P as ProvidedContext, A as AfterSuiteRunMeta, s as UserConsoleLog, R as ResolvedConfig, t as ModuleGraphData, u as Reporter } from './reporters-BXNXFKfg.js'; | ||
export { O as ApiConfig, a8 as ArgumentsType, a7 as Arrayable, a5 as Awaitable, B as BaseCoverageOptions, an as BenchFunction, al as Benchmark, ao as BenchmarkAPI, am as BenchmarkResult, ak as BenchmarkUserOptions, K as BuiltinEnvironment, N as CSSModuleScopeStrategy, x as CollectLineNumbers, y as CollectLines, aa as Constructable, D as Context, f as ContextRPC, a1 as ContextTestEnvironment, ah as CoverageIstanbulOptions, C as CoverageOptions, b as CoverageProvider, c as CoverageProviderModule, ag as CoverageReporter, ai as CoverageV8Options, aj as CustomProviderOptions, S as DepsOptimizationOptions, E as Environment, Q as EnvironmentOptions, ac as EnvironmentReturn, I as HappyDOMOptions, Y as InlineConfig, J as JSDOMOptions, ab as ModuleCache, a9 as MutableArray, a6 as Nullable, ae as OnServerRestartHandler, G as Pool, H as PoolOptions, _ as ProjectConfig, v as RawErrsMap, af as ReportContext, a3 as ResolveIdFunction, a as ResolvedCoverageOptions, a2 as ResolvedTestEnvironment, z as RootAndTarget, a0 as RunnerRPC, e as RuntimeRPC, X as TransformModePatterns, w as TscErrorInfo, Z as TypecheckConfig, U as UserConfig, $ as UserWorkspaceConfig, i as Vitest, L as VitestEnvironment, V as VitestRunMode, ad as VmEnvironmentReturn, g as WorkerContext, W as WorkerGlobalState, a4 as WorkerRPC } from './reporters-BXNXFKfg.js'; | ||
import { F as FakeTimerInstallOpts, M as MockFactoryWithHelper, s as RuntimeConfig, P as ProvidedContext, A as AfterSuiteRunMeta, t as UserConsoleLog, R as ResolvedConfig, u as ModuleGraphData, v as Reporter } from './reporters-yx5ZTtEV.js'; | ||
export { Q 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, a0 as BrowserConfigOptions, r as BrowserScript, L as BuiltinEnvironment, O as CSSModuleScopeStrategy, y as CollectLineNumbers, z as CollectLines, ac as Constructable, G 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, X as DepsOptimizationOptions, E as Environment, S as EnvironmentOptions, ae as EnvironmentReturn, K as HappyDOMOptions, Z as InlineConfig, J as JSDOMOptions, ad as ModuleCache, ab as MutableArray, a8 as Nullable, ag as OnServerRestartHandler, H as Pool, I as PoolOptions, $ as ProjectConfig, w as RawErrsMap, ah as ReportContext, a5 as ResolveIdFunction, a as ResolvedCoverageOptions, a4 as ResolvedTestEnvironment, D as RootAndTarget, a2 as RunnerRPC, e as RuntimeRPC, Y as TransformModePatterns, x as TscErrorInfo, _ as TypecheckConfig, U as UserConfig, a1 as UserWorkspaceConfig, i as Vitest, N as VitestEnvironment, V as VitestRunMode, af as VmEnvironmentReturn, g as WorkerContext, W as WorkerGlobalState, a6 as WorkerRPC } from './reporters-yx5ZTtEV.js'; | ||
import { spyOn, fn, MaybeMockedDeep, MaybeMocked, MaybePartiallyMocked, MaybePartiallyMockedDeep, MockInstance } from '@vitest/spy'; | ||
@@ -686,2 +686,3 @@ export { Mock, MockContext, MockInstance, Mocked, MockedClass, MockedFunction, MockedObject, SpyInstance } from '@vitest/spy'; | ||
getFiles: () => File[]; | ||
getTestFiles: () => Promise<[name: string, file: string][]>; | ||
getPaths: () => string[]; | ||
@@ -688,0 +689,0 @@ getConfig: () => ResolvedConfig; |
export { afterAll, afterEach, beforeAll, beforeEach, describe, it, onTestFailed, onTestFinished, suite, test } from '@vitest/runner'; | ||
export { b as bench } from './vendor/benchmark.yGkUTKnC.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.Y_w82WR8.js'; | ||
import { d as dist } from './vendor/index.QVcwRDVW.js'; | ||
export { b as assertType, g as getRunningMode, i as inject, a as isWatchMode } from './vendor/index.QVcwRDVW.js'; | ||
export { c as createExpect, a as expect, v as vi, b as vitest } from './vendor/vi.YFlodzP_.js'; | ||
import { d as dist } from './vendor/index.dI9lHwVn.js'; | ||
export { b as assertType, g as getRunningMode, i as inject, a as isWatchMode } from './vendor/index.dI9lHwVn.js'; | ||
import * as chai from 'chai'; | ||
@@ -23,3 +23,3 @@ export { chai }; | ||
import '@vitest/utils/source-map'; | ||
import './vendor/base.Xt0Omgh7.js'; | ||
import './vendor/base.5NT-gWu5.js'; | ||
import './vendor/date.Ns1pGd_X.js'; | ||
@@ -26,0 +26,0 @@ import '@vitest/spy'; |
@@ -1,3 +0,3 @@ | ||
import { V as VitestRunMode, U as UserConfig, h as VitestOptions, i as Vitest, R as ResolvedConfig, P as ProvidedContext, j as WorkspaceProject, e as RuntimeRPC, T as TestSequencer, k as WorkspaceSpec } from './reporters-BXNXFKfg.js'; | ||
export { p as BrowserProvider, o as BrowserProviderInitializationOptions, q as BrowserProviderOptions, l as ProcessPool, n as TestSequencerConstructor, m as VitestPackageInstaller } from './reporters-BXNXFKfg.js'; | ||
import { V as VitestRunMode, U as UserConfig, h as VitestOptions, i as Vitest, R as ResolvedConfig, P as ProvidedContext, j as WorkspaceProject, e as RuntimeRPC, T as TestSequencer, k as WorkspaceSpec } from './reporters-yx5ZTtEV.js'; | ||
export { p as BrowserProvider, o as BrowserProviderInitializationOptions, q as BrowserProviderOptions, r as BrowserScript, l as ProcessPool, n as TestSequencerConstructor, m as VitestPackageInstaller } from './reporters-yx5ZTtEV.js'; | ||
import { UserConfig as UserConfig$1, Plugin } from 'vite'; | ||
@@ -4,0 +4,0 @@ import { Writable } from 'node:stream'; |
@@ -1,4 +0,4 @@ | ||
export { b as VitestPackageInstaller, V as VitestPlugin, a as createMethodsRPC, c as createVitest, r as registerConsoleShortcuts, s as startVitest } from './vendor/cli-api.AmIc1Dmz.js'; | ||
export { p as parseCLI } from './vendor/cac.RDd_SGOd.js'; | ||
export { B as BaseSequencer } from './vendor/index.X7lgIMc_.js'; | ||
export { b as VitestPackageInstaller, V as VitestPlugin, a as createMethodsRPC, c as createVitest, r as registerConsoleShortcuts, s as startVitest } from './vendor/cli-api.E07AF1Yq.js'; | ||
export { p as parseCLI } from './vendor/cac.EdDItJD-.js'; | ||
export { B as BaseSequencer } from './vendor/index.Q04MCqDO.js'; | ||
import 'pathe'; | ||
@@ -28,3 +28,3 @@ import './vendor/constants.5J7I254_.js'; | ||
import '@vitest/runner/utils'; | ||
import './vendor/base.Xt0Omgh7.js'; | ||
import './vendor/base.5NT-gWu5.js'; | ||
import '@vitest/utils'; | ||
@@ -48,4 +48,5 @@ import './vendor/env.AtSIuHFg.js'; | ||
import 'tinypool'; | ||
import 'node:crypto'; | ||
import 'node:fs/promises'; | ||
import 'local-pkg'; | ||
import 'node:crypto'; | ||
import 'vite-node/utils'; | ||
@@ -56,3 +57,3 @@ import 'magic-string'; | ||
import 'strip-literal'; | ||
import './vendor/utils.VYmeMh-u.js'; | ||
import './vendor/utils.dEtNIEgr.js'; | ||
import 'node:module'; | ||
@@ -68,5 +69,4 @@ import './vendor/index.SMVOaj7F.js'; | ||
import './vendor/date.Ns1pGd_X.js'; | ||
import 'node:fs/promises'; | ||
import 'execa'; | ||
import 'module'; | ||
import 'assert'; |
@@ -1,2 +0,2 @@ | ||
export { aQ as BaseReporter, aH as BasicReporter, aY as BenchmarkBuiltinReporters, aX as BenchmarkReportsMap, aT as BuiltinReporterOptions, aS as BuiltinReporters, aG as DefaultReporter, aI as DotReporter, aP as GithubActionsReporter, aO as HangingProcessReporter, aM as JUnitReporter, aU as JsonAssertionResult, aJ as JsonReporter, aV as JsonTestResult, aW as JsonTestResults, u as Reporter, aR as ReportersMap, aN as TapFlatReporter, aL as TapReporter, aK as VerboseReporter } from './reporters-BXNXFKfg.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, v as Reporter, aT as ReportersMap, aP as TapFlatReporter, aN as TapReporter, aM as VerboseReporter } from './reporters-yx5ZTtEV.js'; | ||
import 'vite'; | ||
@@ -3,0 +3,0 @@ import '@vitest/runner'; |
@@ -1,4 +0,6 @@ | ||
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.X7lgIMc_.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.Q04MCqDO.js'; | ||
import 'node:fs'; | ||
import 'picocolors'; | ||
import 'pathe'; | ||
import './vendor/tasks.IknbGB2n.js'; | ||
import '@vitest/runner/utils'; | ||
@@ -8,6 +10,4 @@ import '@vitest/utils'; | ||
import 'std-env'; | ||
import 'picocolors'; | ||
import './vendor/tasks.IknbGB2n.js'; | ||
import './vendor/utils.VYmeMh-u.js'; | ||
import './vendor/base.Xt0Omgh7.js'; | ||
import './vendor/utils.dEtNIEgr.js'; | ||
import './vendor/base.5NT-gWu5.js'; | ||
import 'node:perf_hooks'; | ||
@@ -14,0 +14,0 @@ import './vendor/index.SMVOaj7F.js'; |
import { VitestRunner, VitestRunnerImportSource, Suite, Task, CancelReason, Test, Custom, TaskContext, ExtendedContext } from '@vitest/runner'; | ||
import { R as ResolvedConfig } from './reporters-BXNXFKfg.js'; | ||
import { R as ResolvedConfig } from './reporters-yx5ZTtEV.js'; | ||
import * as tinybench from 'tinybench'; | ||
@@ -4,0 +4,0 @@ import 'vite'; |
import { setState, GLOBAL_EXPECT, getState } from '@vitest/expect'; | ||
import { g as getSnapshotClient, c as createExpect, v as vi } from './vendor/vi.Y_w82WR8.js'; | ||
import { g as getSnapshotClient, c as createExpect, v as vi } from './vendor/vi.YFlodzP_.js'; | ||
import 'pathe'; | ||
@@ -17,3 +17,3 @@ import { g as getFullName } from './vendor/tasks.IknbGB2n.js'; | ||
import '@vitest/utils/source-map'; | ||
import './vendor/base.Xt0Omgh7.js'; | ||
import './vendor/base.5NT-gWu5.js'; | ||
import './vendor/date.Ns1pGd_X.js'; | ||
@@ -20,0 +20,0 @@ import '@vitest/spy'; |
export { createTaskCollector, getCurrentSuite, getCurrentTest, getFn, getHooks, setFn, setHooks } from '@vitest/runner'; | ||
export { createChainable } from '@vitest/runner/utils'; | ||
export { g as getBenchFn, a as getBenchOptions } from './suite-KPWE530F.js'; | ||
import './reporters-BXNXFKfg.js'; | ||
export { g as getBenchFn, a as getBenchOptions } from './suite-IbNSsUWN.js'; | ||
import './reporters-yx5ZTtEV.js'; | ||
import 'vite'; | ||
@@ -6,0 +6,0 @@ import 'vite-node'; |
import { pathToFileURL } from 'node:url'; | ||
import { workerId } from 'tinypool'; | ||
import { ViteNodeRunner, ModuleCacheMap } from 'vite-node/client'; | ||
import { readFileSync } from 'node:fs'; | ||
import { resolve, normalize } from 'pathe'; | ||
import { e as environments } from './vendor/index.GVFv9dZ0.js'; | ||
import { i as isChildProcess, s as setProcessTitle } from './vendor/base.Xt0Omgh7.js'; | ||
import { i as isChildProcess, s as setProcessTitle } from './vendor/base.5NT-gWu5.js'; | ||
import { s as setupInspect } from './vendor/inspector.IgLX3ur5.js'; | ||
@@ -34,3 +35,8 @@ import { c as createRuntimeRpc, a as rpcDone } from './vendor/rpc.joBhAkyK.js'; | ||
root: ctx.config.root, | ||
fetchModule: (id) => rpc.fetch(id, "ssr"), | ||
fetchModule: async (id) => { | ||
const result = await rpc.fetch(id, "ssr"); | ||
if (result.id) | ||
return { code: readFileSync(result.id, "utf-8") }; | ||
return result; | ||
}, | ||
resolveId: (id, importer) => rpc.resolveId(id, importer, "ssr") | ||
@@ -37,0 +43,0 @@ }); |
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-BXNXFKfg.js'; | ||
import { d as BirpcOptions, e as RuntimeRPC, f as ContextRPC, W as WorkerGlobalState, g as WorkerContext, R as ResolvedConfig } from './reporters-yx5ZTtEV.js'; | ||
import { Awaitable } from '@vitest/utils'; | ||
@@ -4,0 +4,0 @@ import 'vite'; |
export { c as createForksRpcOptions, a as createThreadsRpcOptions, u as unwrapSerializableConfig } from './vendor/utils.0uYuCbzo.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.i4FO5N37.js'; | ||
export { r as runBaseTests } from './vendor/base.oIzAvGLe.js'; | ||
export { r as runVmTests } from './vendor/vm.QEE48c0T.js'; | ||
export { r as runBaseTests } from './vendor/base.Ybri3C14.js'; | ||
import '@vitest/utils'; | ||
@@ -10,6 +10,7 @@ import 'node:url'; | ||
import 'vite-node/client'; | ||
import 'node:fs'; | ||
import 'pathe'; | ||
import './vendor/index.GVFv9dZ0.js'; | ||
import 'node:console'; | ||
import './vendor/base.Xt0Omgh7.js'; | ||
import './vendor/base.5NT-gWu5.js'; | ||
import './vendor/inspector.IgLX3ur5.js'; | ||
@@ -27,7 +28,6 @@ import 'node:module'; | ||
import 'std-env'; | ||
import './vendor/execute.2_yoIC01.js'; | ||
import './vendor/execute.fL3szUAI.js'; | ||
import 'vite-node/utils'; | ||
import '@vitest/utils/error'; | ||
import './path.js'; | ||
import 'node:fs'; | ||
import 'vite-node/constants'; |
import v8 from 'node:v8'; | ||
import { c as createForksRpcOptions, u as unwrapSerializableConfig } from '../vendor/utils.0uYuCbzo.js'; | ||
import { r as runBaseTests } from '../vendor/base.oIzAvGLe.js'; | ||
import { r as runBaseTests } from '../vendor/base.Ybri3C14.js'; | ||
import '@vitest/utils'; | ||
import 'vite-node/client'; | ||
import '../vendor/global.CkGT_TMy.js'; | ||
import '../vendor/execute.2_yoIC01.js'; | ||
import '../vendor/execute.fL3szUAI.js'; | ||
import 'node:vm'; | ||
import 'node:url'; | ||
import 'node:fs'; | ||
import 'vite-node/utils'; | ||
@@ -14,4 +15,3 @@ import 'pathe'; | ||
import '../path.js'; | ||
import 'node:fs'; | ||
import '../vendor/base.Xt0Omgh7.js'; | ||
import '../vendor/base.5NT-gWu5.js'; | ||
@@ -18,0 +18,0 @@ class ForksBaseWorker { |
@@ -9,10 +9,9 @@ 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.Fm6OikHU.js'; | ||
import { s as setupChaiConfig, r as resolveTestRunner, a as resolveSnapshotEnvironment } from '../vendor/index.DpVgvm2P.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.QVcwRDVW.js'; | ||
import { s as setupCommonEnv } from '../vendor/setup-common.5nUd4r76.js'; | ||
import { V as VitestIndex } from '../vendor/index.dI9lHwVn.js'; | ||
import { s as setupCommonEnv } from '../vendor/setup-common.8nJLd4ay.js'; | ||
import { c as closeInspector } from '../vendor/inspector.IgLX3ur5.js'; | ||
import 'chai'; | ||
import '@vitest/snapshot/environment'; | ||
import 'pathe'; | ||
@@ -29,3 +28,3 @@ import '../path.js'; | ||
import '../vendor/run-once.Olz_Zkd8.js'; | ||
import '../vendor/vi.Y_w82WR8.js'; | ||
import '../vendor/vi.YFlodzP_.js'; | ||
import '../vendor/_commonjsHelpers.jjO7Zipk.js'; | ||
@@ -37,3 +36,3 @@ import '@vitest/expect'; | ||
import '@vitest/utils/source-map'; | ||
import '../vendor/base.Xt0Omgh7.js'; | ||
import '../vendor/base.5NT-gWu5.js'; | ||
import '../vendor/date.Ns1pGd_X.js'; | ||
@@ -49,3 +48,2 @@ import '@vitest/spy'; | ||
}); | ||
config.snapshotOptions.snapshotEnvironment = new VitestSnapshotEnvironment(workerState.rpc); | ||
setupColors(createColors(isatty(1))); | ||
@@ -69,3 +67,7 @@ if (workerState.environment.transformMode === "web") { | ||
setupChaiConfig(config.chaiConfig); | ||
const runner = await resolveTestRunner(config, executor); | ||
const [runner, snapshotEnvironment] = await Promise.all([ | ||
resolveTestRunner(config, executor), | ||
resolveSnapshotEnvironment(config, executor) | ||
]); | ||
config.snapshotOptions.snapshotEnvironment = snapshotEnvironment; | ||
workerState.onCancel.then((reason) => { | ||
@@ -72,0 +74,0 @@ var _a; |
@@ -1,8 +0,9 @@ | ||
import { r as runBaseTests } from '../vendor/base.oIzAvGLe.js'; | ||
import { r as runBaseTests } from '../vendor/base.Ybri3C14.js'; | ||
import { a as createThreadsRpcOptions } from '../vendor/utils.0uYuCbzo.js'; | ||
import 'vite-node/client'; | ||
import '../vendor/global.CkGT_TMy.js'; | ||
import '../vendor/execute.2_yoIC01.js'; | ||
import '../vendor/execute.fL3szUAI.js'; | ||
import 'node:vm'; | ||
import 'node:url'; | ||
import 'node:fs'; | ||
import 'vite-node/utils'; | ||
@@ -12,5 +13,4 @@ import 'pathe'; | ||
import '../path.js'; | ||
import 'node:fs'; | ||
import '@vitest/utils'; | ||
import '../vendor/base.Xt0Omgh7.js'; | ||
import '../vendor/base.5NT-gWu5.js'; | ||
@@ -17,0 +17,0 @@ class ThreadsBaseWorker { |
import v8 from 'node:v8'; | ||
import { c as createForksRpcOptions, u as unwrapSerializableConfig } from '../vendor/utils.0uYuCbzo.js'; | ||
import { r as runVmTests } from '../vendor/vm.i4FO5N37.js'; | ||
import { r as runVmTests } from '../vendor/vm.QEE48c0T.js'; | ||
import '@vitest/utils'; | ||
@@ -17,3 +17,4 @@ import 'node:vm'; | ||
import 'std-env'; | ||
import '../vendor/execute.2_yoIC01.js'; | ||
import '../vendor/execute.fL3szUAI.js'; | ||
import 'node:fs'; | ||
import 'vite-node/client'; | ||
@@ -23,4 +24,3 @@ import 'vite-node/utils'; | ||
import '../path.js'; | ||
import 'node:fs'; | ||
import '../vendor/base.Xt0Omgh7.js'; | ||
import '../vendor/base.5NT-gWu5.js'; | ||
import 'node:module'; | ||
@@ -27,0 +27,0 @@ import 'vite-node/constants'; |
import { a as createThreadsRpcOptions } from '../vendor/utils.0uYuCbzo.js'; | ||
import { r as runVmTests } from '../vendor/vm.i4FO5N37.js'; | ||
import { r as runVmTests } from '../vendor/vm.QEE48c0T.js'; | ||
import '@vitest/utils'; | ||
@@ -16,3 +16,4 @@ import 'node:vm'; | ||
import 'std-env'; | ||
import '../vendor/execute.2_yoIC01.js'; | ||
import '../vendor/execute.fL3szUAI.js'; | ||
import 'node:fs'; | ||
import 'vite-node/client'; | ||
@@ -22,4 +23,3 @@ import 'vite-node/utils'; | ||
import '../path.js'; | ||
import 'node:fs'; | ||
import '../vendor/base.Xt0Omgh7.js'; | ||
import '../vendor/base.5NT-gWu5.js'; | ||
import 'node:module'; | ||
@@ -26,0 +26,0 @@ import 'vite-node/constants'; |
{ | ||
"name": "vitest", | ||
"type": "module", | ||
"version": "1.5.3", | ||
"version": "1.6.0", | ||
"description": "Next generation testing framework powered by Vite", | ||
@@ -94,2 +94,6 @@ "author": "Anthony Fu <anthonyfu117@hotmail.com>", | ||
"default": "./dist/reporters.js" | ||
}, | ||
"./snapshot": { | ||
"types": "./dist/snapshot.d.ts", | ||
"default": "./dist/snapshot.js" | ||
} | ||
@@ -119,4 +123,4 @@ }, | ||
"jsdom": "*", | ||
"@vitest/browser": "1.5.3", | ||
"@vitest/ui": "1.5.3" | ||
"@vitest/browser": "1.6.0", | ||
"@vitest/ui": "1.6.0" | ||
}, | ||
@@ -158,8 +162,8 @@ "peerDependenciesMeta": { | ||
"why-is-node-running": "^2.2.2", | ||
"@vitest/expect": "1.5.3", | ||
"@vitest/snapshot": "1.5.3", | ||
"vite-node": "1.5.3", | ||
"@vitest/runner": "1.5.3", | ||
"@vitest/spy": "1.5.3", | ||
"@vitest/utils": "1.5.3" | ||
"@vitest/expect": "1.6.0", | ||
"@vitest/runner": "1.6.0", | ||
"@vitest/snapshot": "1.6.0", | ||
"@vitest/spy": "1.6.0", | ||
"vite-node": "1.6.0", | ||
"@vitest/utils": "1.6.0" | ||
}, | ||
@@ -166,0 +170,0 @@ "devDependencies": { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
1436140
96
38422
65
11
+ Added@vitest/browser@1.6.0(transitive)
+ Added@vitest/expect@1.6.0(transitive)
+ Added@vitest/runner@1.6.0(transitive)
+ Added@vitest/snapshot@1.6.0(transitive)
+ Added@vitest/spy@1.6.0(transitive)
+ Added@vitest/ui@1.6.0(transitive)
+ Added@vitest/utils@1.6.0(transitive)
+ Addedvite-node@1.6.0(transitive)
- Removed@vitest/browser@1.5.3(transitive)
- Removed@vitest/expect@1.5.3(transitive)
- Removed@vitest/runner@1.5.3(transitive)
- Removed@vitest/snapshot@1.5.3(transitive)
- Removed@vitest/spy@1.5.3(transitive)
- Removed@vitest/ui@1.5.3(transitive)
- Removed@vitest/utils@1.5.3(transitive)
- Removedvite-node@1.5.3(transitive)
Updated@vitest/expect@1.6.0
Updated@vitest/runner@1.6.0
Updated@vitest/snapshot@1.6.0
Updated@vitest/spy@1.6.0
Updated@vitest/utils@1.6.0
Updatedvite-node@1.6.0