vitest 2.1.4 → 2.1.5

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.
Files changed (44) hide show
  1. package/dist/browser.d.ts +9 -9
  2. package/dist/browser.js +1 -1
  3. package/dist/chunks/{base.C3xNdjV6.js → base.BZZh4cSm.js} +1 -1
  4. package/dist/chunks/{cac.DrfPaMvZ.js → cac.DWAW3Uh5.js} +5 -5
  5. package/dist/chunks/{cli-api.CKrRYkw8.js → cli-api.BtqJwSCh.js} +106 -77
  6. package/dist/chunks/{config.Crbj2GAb.d.ts → config.Cy0C388Z.d.ts} +0 -1
  7. package/dist/chunks/{globals.Bp645TTJ.js → globals.D8ZVAdXd.js} +2 -2
  8. package/dist/chunks/{index.Bn81VaWg.js → index.DsZFoqi9.js} +205 -303
  9. package/dist/chunks/{index.BMoXz_-n.js → index.K90BXFOx.js} +1 -1
  10. package/dist/chunks/{index.Dqe5k2Rk.js → index.ckWaX2gY.js} +1 -1
  11. package/dist/chunks/{index.D3d79vc8.js → index.nEwtF0bu.js} +1 -1
  12. package/dist/chunks/{reporters.anwo7Y6a.d.ts → reporters.D7Jzd9GS.d.ts} +26 -16
  13. package/dist/chunks/{resolveConfig.DPmbhVlP.js → resolveConfig.RxKrDli4.js} +4 -2
  14. package/dist/chunks/{runBaseTests.Dm-659zB.js → runBaseTests.3qpJUEJM.js} +4 -4
  15. package/dist/chunks/{setup-common.DDmVKp6O.js → setup-common.Dj6BZI3u.js} +1 -1
  16. package/dist/chunks/{utils.BB4zjzR8.js → utils.DNoFbBUZ.js} +6 -2
  17. package/dist/chunks/{vi.JMQoNY_Z.js → vi.DgezovHB.js} +85 -3
  18. package/dist/chunks/{vite.BdBj-UWY.d.ts → vite.C-N5BBZe.d.ts} +1 -1
  19. package/dist/chunks/{vm.jpyrB0xy.js → vm.Zr4qWzDJ.js} +3 -0
  20. package/dist/chunks/{worker.DHnGaO2M.d.ts → worker.B9FxPCaC.d.ts} +1 -1
  21. package/dist/chunks/{worker.BAlI9hII.d.ts → worker.tN5KGIih.d.ts} +2 -1
  22. package/dist/cli.js +1 -1
  23. package/dist/config.d.ts +9 -9
  24. package/dist/coverage.d.ts +7 -7
  25. package/dist/coverage.js +1 -1
  26. package/dist/environments.js +1 -1
  27. package/dist/execute.d.ts +2 -2
  28. package/dist/index.d.ts +37 -8
  29. package/dist/index.js +2 -2
  30. package/dist/node.d.ts +8 -8
  31. package/dist/node.js +7 -7
  32. package/dist/reporters.d.ts +9 -9
  33. package/dist/reporters.js +2 -2
  34. package/dist/runners.d.ts +1 -1
  35. package/dist/runners.js +1 -1
  36. package/dist/worker.js +6 -2
  37. package/dist/workers/forks.js +1 -1
  38. package/dist/workers/runVmTests.js +4 -4
  39. package/dist/workers/threads.js +1 -1
  40. package/dist/workers/vmForks.js +1 -1
  41. package/dist/workers/vmThreads.js +1 -1
  42. package/dist/workers.d.ts +3 -3
  43. package/dist/workers.js +4 -3
  44. package/package.json +15 -15
package/dist/node.d.ts CHANGED
@@ -1,30 +1,30 @@
1
- import { w as VitestRunMode, H as VitestOptions, V as Vitest, z as UserConfig$1, A as ApiConfig, L as Logger, E as ResolvedConfig$1, J as WorkspaceProject, K as TestSequencer, M as WorkspaceSpec, N as TestModule, O as ModuleDiagnostic } from './chunks/reporters.anwo7Y6a.js';
2
- export { B as BaseCoverageOptions, G as BenchmarkUserOptions, ad as BrowserBuiltinProvider, ae as BrowserCommand, af as BrowserCommandContext, s as BrowserConfigOptions, ag as BrowserOrchestrator, ah as BrowserProvider, ai as BrowserProviderInitializationOptions, aj as BrowserProviderModule, ak as BrowserProviderOptions, r as BrowserScript, al as BrowserServer, am as BrowserServerState, an as BrowserServerStateContext, t as BuiltinEnvironment, ao as CDPSession, v as CSSModuleScopeStrategy, o as CoverageIstanbulOptions, n as CoverageOptions, C as CoverageProvider, b as CoverageProviderModule, l as CoverageReporter, c as CoverageV8Options, p as CustomProviderOptions, D as DepsOptimizationOptions, $ as HTMLOptions, I as InlineConfig, a1 as JUnitOptions, a0 as JsonOptions, P as Pool, u as PoolOptions, X as ProcessPool, F as ProjectConfig, a as ReportContext, ap as ResolvedBrowserOptions, R as ResolvedCoverageOptions, aq as ResolvedProjectConfig, _ as SerializedTestProject, a4 as TaskOptions, a2 as TestCase, a5 as TestCollection, a6 as TestDiagnostic, Z as TestProject, a7 as TestResult, a8 as TestResultFailed, a9 as TestResultPassed, aa as TestResultSkipped, ab as TestSequencerConstructor, ac as TestSpecification, a3 as TestSuite, x as TransformModePatterns, h as TypeCheckCollectLineNumbers, i as TypeCheckCollectLines, k as TypeCheckContext, T as TypeCheckErrorInfo, g as TypeCheckRawErrorsMap, j as TypeCheckRootAndTarget, y as TypecheckConfig, U as UserWorkspaceConfig, f as VitestEnvironment, Q as VitestPackageInstaller, Y as getFilePoolName } from './chunks/reporters.anwo7Y6a.js';
1
+ import { w as VitestRunMode, H as VitestOptions, V as Vitest, z as UserConfig$1, A as ApiConfig, L as Logger, E as ResolvedConfig$1, J as WorkspaceProject, K as TestSequencer, M as WorkspaceSpec, N as TestModule, O as ModuleDiagnostic } from './chunks/reporters.D7Jzd9GS.js';
2
+ export { B as BaseCoverageOptions, G as BenchmarkUserOptions, ad as BrowserBuiltinProvider, ae as BrowserCommand, af as BrowserCommandContext, s as BrowserConfigOptions, ag as BrowserOrchestrator, ah as BrowserProvider, ai as BrowserProviderInitializationOptions, aj as BrowserProviderModule, ak as BrowserProviderOptions, r as BrowserScript, al as BrowserServer, am as BrowserServerState, an as BrowserServerStateContext, t as BuiltinEnvironment, ao as CDPSession, v as CSSModuleScopeStrategy, o as CoverageIstanbulOptions, n as CoverageOptions, C as CoverageProvider, b as CoverageProviderModule, l as CoverageReporter, c as CoverageV8Options, p as CustomProviderOptions, D as DepsOptimizationOptions, $ as HTMLOptions, I as InlineConfig, a1 as JUnitOptions, a0 as JsonOptions, P as Pool, u as PoolOptions, X as ProcessPool, F as ProjectConfig, a as ReportContext, ap as ResolvedBrowserOptions, R as ResolvedCoverageOptions, aq as ResolvedProjectConfig, _ as SerializedTestProject, a4 as TaskOptions, a2 as TestCase, a5 as TestCollection, a6 as TestDiagnostic, Z as TestProject, a7 as TestResult, a8 as TestResultFailed, a9 as TestResultPassed, aa as TestResultSkipped, ab as TestSequencerConstructor, ac as TestSpecification, a3 as TestSuite, x as TransformModePatterns, h as TypeCheckCollectLineNumbers, i as TypeCheckCollectLines, k as TypeCheckContext, T as TypeCheckErrorInfo, g as TypeCheckRawErrorsMap, j as TypeCheckRootAndTarget, y as TypecheckConfig, U as UserWorkspaceConfig, f as VitestEnvironment, Q as VitestPackageInstaller, Y as getFilePoolName } from './chunks/reporters.D7Jzd9GS.js';
3
3
  import { UserConfig, ResolvedConfig, Plugin, 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 { isFileServingAllowed, parseAst, parseAstAsync } from 'vite';
7
7
  import { P as ProvidedContext } from './chunks/environment.LoooBwUu.js';
8
8
  export { f as EnvironmentOptions, H as HappyDOMOptions, J as JSDOMOptions, O as OnServerRestartHandler } from './chunks/environment.LoooBwUu.js';
9
- import { R as RuntimeRPC } from './chunks/worker.BAlI9hII.js';
9
+ import { R as RuntimeRPC } from './chunks/worker.tN5KGIih.js';
10
10
  import { Writable } from 'node:stream';
11
- export { W as WorkerContext } from './chunks/worker.DHnGaO2M.js';
11
+ export { W as WorkerContext } from './chunks/worker.B9FxPCaC.js';
12
12
  import createDebug from 'debug';
13
- export { b as RuntimeConfig } from './chunks/config.Crbj2GAb.js';
13
+ export { b as RuntimeConfig } from './chunks/config.Cy0C388Z.js';
14
14
  export { SequenceHooks, SequenceSetupFiles } from '@vitest/runner';
15
+ import '@vitest/utils';
15
16
  import '@vitest/pretty-format';
16
17
  import '@vitest/snapshot';
17
18
  import 'vite-node';
18
19
  import 'chai';
19
- import '@vitest/utils';
20
20
  import '@vitest/utils/source-map';
21
21
  import 'vite-node/client';
22
22
  import 'vite-node/server';
23
- import '@vitest/snapshot/manager';
24
- import 'node:fs';
25
23
  import './chunks/benchmark.geERunq4.js';
26
24
  import '@vitest/runner/utils';
27
25
  import 'tinybench';
26
+ import '@vitest/snapshot/manager';
27
+ import 'node:fs';
28
28
  import 'node:worker_threads';
29
29
  import '@vitest/snapshot/environment';
30
30
 
package/dist/node.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import { createServer as createServer$1 } from 'vite';
2
2
  export { isFileServingAllowed, parseAst, parseAstAsync } from 'vite';
3
- import { f as TestModule } from './chunks/index.Bn81VaWg.js';
4
- export { e as TestCase, i as TestProject, g as TestSuite } from './chunks/index.Bn81VaWg.js';
5
- export { p as parseCLI } from './chunks/cac.DrfPaMvZ.js';
6
- export { G as GitNotFoundError, T as TestSpecification, F as TestsNotFoundError, V as VitestPackageInstaller, a as VitestPlugin, d as createViteLogger, c as createVitest, b as registerConsoleShortcuts, r as resolveFsAllow, s as startVitest } from './chunks/cli-api.CKrRYkw8.js';
7
- export { d as createMethodsRPC, g as getFilePoolName, a as resolveApiServerConfig, b as resolveConfig } from './chunks/resolveConfig.DPmbhVlP.js';
3
+ import { f as TestModule } from './chunks/index.DsZFoqi9.js';
4
+ export { e as TestCase, i as TestProject, g as TestSuite } from './chunks/index.DsZFoqi9.js';
5
+ export { p as parseCLI } from './chunks/cac.DWAW3Uh5.js';
6
+ export { G as GitNotFoundError, T as TestSpecification, F as TestsNotFoundError, V as VitestPackageInstaller, a as VitestPlugin, d as createViteLogger, c as createVitest, b as registerConsoleShortcuts, r as resolveFsAllow, s as startVitest } from './chunks/cli-api.BtqJwSCh.js';
7
+ export { d as createMethodsRPC, g as getFilePoolName, a as resolveApiServerConfig, b as resolveConfig } from './chunks/resolveConfig.RxKrDli4.js';
8
8
  export { B as BaseSequencer } from './chunks/RandomSequencer.CMRlh2v4.js';
9
9
  export { distDir, rootDir } from './path.js';
10
10
  import createDebug from 'debug';
@@ -12,7 +12,7 @@ import 'node:fs';
12
12
  import '@vitest/runner/utils';
13
13
  import 'pathe';
14
14
  import 'tinyrainbow';
15
- import './chunks/utils.BB4zjzR8.js';
15
+ import './chunks/utils.DNoFbBUZ.js';
16
16
  import 'node:util';
17
17
  import '@vitest/utils';
18
18
  import 'node:perf_hooks';
@@ -52,13 +52,13 @@ import 'fs';
52
52
  import 'vite-node/utils';
53
53
  import '@vitest/mocker/node';
54
54
  import 'magic-string';
55
- import 'node:worker_threads';
56
55
  import 'node:readline';
57
56
  import 'node:assert';
58
57
  import 'node:v8';
59
58
  import 'util';
60
59
  import 'node:events';
61
60
  import 'tinypool';
61
+ import 'node:worker_threads';
62
62
  import 'tinyexec';
63
63
  import 'node:crypto';
64
64
 
@@ -1,20 +1,20 @@
1
- export { aB as BaseReporter, ar as BasicReporter, aL as BenchmarkBuiltinReporters, aK as BenchmarkReportsMap, aG as BuiltinReporterOptions, aF as BuiltinReporters, as as DefaultReporter, at as DotReporter, aD as FileDiagnostic, au as GithubActionsReporter, av as HangingProcessReporter, ax as JUnitReporter, aH as JsonAssertionResult, aw as JsonReporter, aI as JsonTestResult, aJ as JsonTestResults, q as Reporter, aE as ReportersMap, ay as TapFlatReporter, az as TapReporter, a4 as TaskOptions, a2 as TestCase, a5 as TestCollection, a6 as TestDiagnostic, aC as TestFile, N as TestModule, Z as TestProject, a7 as TestResult, a8 as TestResultFailed, a9 as TestResultPassed, aa as TestResultSkipped, a3 as TestSuite, aA as VerboseReporter } from './chunks/reporters.anwo7Y6a.js';
2
- import './chunks/config.Crbj2GAb.js';
3
- import '@vitest/pretty-format';
1
+ export { aB as BaseReporter, ar as BasicReporter, aL as BenchmarkBuiltinReporters, aK as BenchmarkReportsMap, aG as BuiltinReporterOptions, aF as BuiltinReporters, as as DefaultReporter, at as DotReporter, aD as FileDiagnostic, au as GithubActionsReporter, av as HangingProcessReporter, ax as JUnitReporter, aH as JsonAssertionResult, aw as JsonReporter, aI as JsonTestResult, aJ as JsonTestResults, q as Reporter, aE as ReportersMap, ay as TapFlatReporter, az as TapReporter, a4 as TaskOptions, a2 as TestCase, a5 as TestCollection, a6 as TestDiagnostic, aC as TestFile, N as TestModule, Z as TestProject, a7 as TestResult, a8 as TestResultFailed, a9 as TestResultPassed, aa as TestResultSkipped, a3 as TestSuite, aA as VerboseReporter } from './chunks/reporters.D7Jzd9GS.js';
4
2
  import '@vitest/runner';
3
+ import './chunks/environment.LoooBwUu.js';
4
+ import 'node:stream';
5
+ import 'vite';
6
+ import '@vitest/utils';
7
+ import './chunks/config.Cy0C388Z.js';
8
+ import '@vitest/pretty-format';
5
9
  import '@vitest/snapshot';
6
10
  import '@vitest/snapshot/environment';
7
- import 'vite';
8
11
  import 'vite-node';
9
12
  import 'chai';
10
- import './chunks/environment.LoooBwUu.js';
11
- import 'node:stream';
12
- import '@vitest/utils';
13
13
  import '@vitest/utils/source-map';
14
14
  import 'vite-node/client';
15
15
  import 'vite-node/server';
16
- import '@vitest/snapshot/manager';
17
- import 'node:fs';
18
16
  import './chunks/benchmark.geERunq4.js';
19
17
  import '@vitest/runner/utils';
20
18
  import 'tinybench';
19
+ import '@vitest/snapshot/manager';
20
+ import 'node:fs';
package/dist/reporters.js CHANGED
@@ -1,9 +1,9 @@
1
- export { B as BasicReporter, h as BenchmarkReportsMap, D as DefaultReporter, a as DotReporter, G as GithubActionsReporter, H as HangingProcessReporter, b as JUnitReporter, J as JsonReporter, R as ReportersMap, T as TapFlatReporter, c as TapReporter, e as TestCase, d as TestFile, f as TestModule, g as TestSuite, V as VerboseReporter } from './chunks/index.Bn81VaWg.js';
1
+ export { B as BasicReporter, h as BenchmarkReportsMap, D as DefaultReporter, a as DotReporter, G as GithubActionsReporter, H as HangingProcessReporter, b as JUnitReporter, J as JsonReporter, R as ReportersMap, T as TapFlatReporter, c as TapReporter, e as TestCase, d as TestFile, f as TestModule, g as TestSuite, V as VerboseReporter } from './chunks/index.DsZFoqi9.js';
2
2
  import 'node:fs';
3
3
  import '@vitest/runner/utils';
4
4
  import 'pathe';
5
5
  import 'tinyrainbow';
6
- import './chunks/utils.BB4zjzR8.js';
6
+ import './chunks/utils.DNoFbBUZ.js';
7
7
  import 'node:util';
8
8
  import '@vitest/utils';
9
9
  import 'node:perf_hooks';
package/dist/runners.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as tinybench from 'tinybench';
2
2
  import { VitestRunner, VitestRunnerImportSource, Suite, File, Task, CancelReason, Test, Custom, TaskContext, ExtendedContext } from '@vitest/runner';
3
- import { S as SerializedConfig } from './chunks/config.Crbj2GAb.js';
3
+ import { S as SerializedConfig } from './chunks/config.Cy0C388Z.js';
4
4
  import '@vitest/pretty-format';
5
5
  import '@vitest/snapshot';
6
6
  import '@vitest/snapshot/environment';
package/dist/runners.js CHANGED
@@ -4,7 +4,7 @@ import { a as getBenchOptions, g as getBenchFn } from './chunks/benchmark.Cdu9hj
4
4
  import { g as getWorkerState } from './chunks/utils.C8RiOc4B.js';
5
5
  import { setState, GLOBAL_EXPECT, getState } from '@vitest/expect';
6
6
  import { getTests, getNames, getTestName } from '@vitest/runner/utils';
7
- import { g as getSnapshotClient, c as createExpect, v as vi } from './chunks/vi.JMQoNY_Z.js';
7
+ import { g as getSnapshotClient, c as createExpect, v as vi } from './chunks/vi.DgezovHB.js';
8
8
  import { r as rpc } from './chunks/rpc.C3q9uwRX.js';
9
9
  import 'chai';
10
10
  import './chunks/_commonjsHelpers.BFTU3MAI.js';
package/dist/worker.js CHANGED
@@ -1,9 +1,10 @@
1
1
  import { pathToFileURL } from 'node:url';
2
+ import { createStackString, parseStacktrace } from '@vitest/utils/source-map';
2
3
  import { workerId } from 'tinypool';
3
4
  import { ViteNodeRunner, ModuleCacheMap } from 'vite-node/client';
4
5
  import { readFileSync } from 'node:fs';
5
6
  import { resolve, normalize } from 'pathe';
6
- import { e as environments } from './chunks/index.BMoXz_-n.js';
7
+ import { e as environments } from './chunks/index.K90BXFOx.js';
7
8
  import { s as setupInspect } from './chunks/inspector.70d6emsh.js';
8
9
  import { c as createRuntimeRpc, a as rpcDone } from './chunks/rpc.C3q9uwRX.js';
9
10
  import { i as isChildProcess, s as setProcessTitle } from './chunks/utils.C8RiOc4B.js';
@@ -112,7 +113,10 @@ async function execute(method, ctx) {
112
113
  prepare: prepareStart
113
114
  },
114
115
  rpc,
115
- providedContext: ctx.providedContext
116
+ providedContext: ctx.providedContext,
117
+ onFilterStackTrace(stack) {
118
+ return createStackString(parseStacktrace(stack));
119
+ }
116
120
  };
117
121
  const methodName = method === "collect" ? "collectTests" : "runTests";
118
122
  if (!worker[methodName] || typeof worker[methodName] !== "function") {
@@ -1,5 +1,5 @@
1
1
  import v8 from 'node:v8';
2
- import { r as runBaseTests } from '../chunks/base.C3xNdjV6.js';
2
+ import { r as runBaseTests } from '../chunks/base.BZZh4cSm.js';
3
3
  import { c as createForksRpcOptions, u as unwrapSerializableConfig } from '../chunks/utils.Cn0zI1t3.js';
4
4
  import 'vite-node/client';
5
5
  import '../chunks/execute.2pr0rHgK.js';
@@ -5,11 +5,11 @@ import util from 'node:util';
5
5
  import { startTests, collectTests } from '@vitest/runner';
6
6
  import { KNOWN_ASSET_TYPES } from 'vite-node/constants';
7
7
  import { installSourcemapsSupport } from 'vite-node/source-map';
8
- import { s as setupChaiConfig, r as resolveTestRunner, a as resolveSnapshotEnvironment } from '../chunks/index.D3d79vc8.js';
8
+ import { s as setupChaiConfig, r as resolveTestRunner, a as resolveSnapshotEnvironment } from '../chunks/index.nEwtF0bu.js';
9
9
  import { s as startCoverageInsideWorker, a as stopCoverageInsideWorker } from '../chunks/coverage.BoMDb1ip.js';
10
- import { V as VitestIndex } from '../chunks/index.Dqe5k2Rk.js';
10
+ import { V as VitestIndex } from '../chunks/index.ckWaX2gY.js';
11
11
  import { c as closeInspector } from '../chunks/inspector.70d6emsh.js';
12
- import { s as setupCommonEnv } from '../chunks/setup-common.DDmVKp6O.js';
12
+ import { s as setupCommonEnv } from '../chunks/setup-common.Dj6BZI3u.js';
13
13
  import { g as getWorkerState } from '../chunks/utils.C8RiOc4B.js';
14
14
  import 'chai';
15
15
  import 'node:path';
@@ -18,7 +18,7 @@ import 'node:url';
18
18
  import '../chunks/rpc.C3q9uwRX.js';
19
19
  import '@vitest/utils';
20
20
  import '../chunks/index.68735LiX.js';
21
- import '../chunks/vi.JMQoNY_Z.js';
21
+ import '../chunks/vi.DgezovHB.js';
22
22
  import '@vitest/expect';
23
23
  import '@vitest/runner/utils';
24
24
  import '../chunks/_commonjsHelpers.BFTU3MAI.js';
@@ -1,4 +1,4 @@
1
- import { r as runBaseTests } from '../chunks/base.C3xNdjV6.js';
1
+ import { r as runBaseTests } from '../chunks/base.BZZh4cSm.js';
2
2
  import { a as createThreadsRpcOptions } from '../chunks/utils.Cn0zI1t3.js';
3
3
  import 'vite-node/client';
4
4
  import '../chunks/execute.2pr0rHgK.js';
@@ -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.jpyrB0xy.js';
3
+ import { r as runVmTests } from '../chunks/vm.Zr4qWzDJ.js';
4
4
  import '@vitest/utils';
5
5
  import 'node:url';
6
6
  import 'node:vm';
@@ -1,5 +1,5 @@
1
1
  import { a as createThreadsRpcOptions } from '../chunks/utils.Cn0zI1t3.js';
2
- import { r as runVmTests } from '../chunks/vm.jpyrB0xy.js';
2
+ import { r as runVmTests } from '../chunks/vm.Zr4qWzDJ.js';
3
3
  import '@vitest/utils';
4
4
  import 'node:url';
5
5
  import 'node:vm';
package/dist/workers.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- import { W as WorkerGlobalState, C as ContextRPC, B as BirpcOptions, R as RuntimeRPC } from './chunks/worker.BAlI9hII.js';
1
+ import { W as WorkerGlobalState, C as ContextRPC, B as BirpcOptions, R as RuntimeRPC } from './chunks/worker.tN5KGIih.js';
2
2
  import { Awaitable } from '@vitest/utils';
3
3
  import * as v8 from 'v8';
4
- import { S as SerializedConfig } from './chunks/config.Crbj2GAb.js';
5
- import { W as WorkerContext } from './chunks/worker.DHnGaO2M.js';
4
+ import { S as SerializedConfig } from './chunks/config.Cy0C388Z.js';
5
+ import { W as WorkerContext } from './chunks/worker.B9FxPCaC.js';
6
6
  import '@vitest/runner';
7
7
  import 'vite-node';
8
8
  import './chunks/environment.LoooBwUu.js';
package/dist/workers.js CHANGED
@@ -1,15 +1,16 @@
1
1
  export { p as provideWorkerState } from './chunks/utils.C8RiOc4B.js';
2
2
  export { collect as collectVitestWorkerTests, run as runVitestWorker } from './worker.js';
3
- export { r as runBaseTests } from './chunks/base.C3xNdjV6.js';
3
+ export { r as runBaseTests } from './chunks/base.BZZh4cSm.js';
4
4
  export { c as createForksRpcOptions, a as createThreadsRpcOptions, u as unwrapSerializableConfig } from './chunks/utils.Cn0zI1t3.js';
5
- export { r as runVmTests } from './chunks/vm.jpyrB0xy.js';
5
+ export { r as runVmTests } from './chunks/vm.Zr4qWzDJ.js';
6
6
  import '@vitest/utils';
7
7
  import 'node:url';
8
+ import '@vitest/utils/source-map';
8
9
  import 'tinypool';
9
10
  import 'vite-node/client';
10
11
  import 'node:fs';
11
12
  import 'pathe';
12
- import './chunks/index.BMoXz_-n.js';
13
+ import './chunks/index.K90BXFOx.js';
13
14
  import 'node:console';
14
15
  import './chunks/inspector.70d6emsh.js';
15
16
  import 'node:module';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "vitest",
3
3
  "type": "module",
4
- "version": "2.1.4",
4
+ "version": "2.1.5",
5
5
  "description": "Next generation testing framework powered by Vite",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",
@@ -122,8 +122,8 @@
122
122
  "@types/node": "^18.0.0 || >=20.0.0",
123
123
  "happy-dom": "*",
124
124
  "jsdom": "*",
125
- "@vitest/browser": "2.1.4",
126
- "@vitest/ui": "2.1.4"
125
+ "@vitest/browser": "2.1.5",
126
+ "@vitest/ui": "2.1.5"
127
127
  },
128
128
  "peerDependenciesMeta": {
129
129
  "@edge-runtime/vm": {
@@ -151,26 +151,26 @@
151
151
  "expect-type": "^1.1.0",
152
152
  "magic-string": "^0.30.12",
153
153
  "pathe": "^1.1.2",
154
- "std-env": "^3.7.0",
154
+ "std-env": "^3.8.0",
155
155
  "tinybench": "^2.9.0",
156
156
  "tinyexec": "^0.3.1",
157
157
  "tinypool": "^1.0.1",
158
158
  "tinyrainbow": "^1.2.0",
159
159
  "vite": "^5.0.0",
160
160
  "why-is-node-running": "^2.3.0",
161
- "@vitest/expect": "2.1.4",
162
- "@vitest/mocker": "2.1.4",
163
- "@vitest/spy": "2.1.4",
164
- "@vitest/pretty-format": "^2.1.4",
165
- "@vitest/utils": "2.1.4",
166
- "@vitest/snapshot": "2.1.4",
167
- "@vitest/runner": "2.1.4",
168
- "vite-node": "2.1.4"
161
+ "@vitest/expect": "2.1.5",
162
+ "@vitest/mocker": "2.1.5",
163
+ "@vitest/pretty-format": "^2.1.5",
164
+ "@vitest/snapshot": "2.1.5",
165
+ "@vitest/runner": "2.1.5",
166
+ "vite-node": "2.1.5",
167
+ "@vitest/spy": "2.1.5",
168
+ "@vitest/utils": "2.1.5"
169
169
  },
170
170
  "devDependencies": {
171
171
  "@ampproject/remapping": "^2.3.0",
172
172
  "@antfu/install-pkg": "^0.4.1",
173
- "@edge-runtime/vm": "^4.0.3",
173
+ "@edge-runtime/vm": "^4.0.4",
174
174
  "@sinonjs/fake-timers": "11.1.0",
175
175
  "@types/debug": "^4.1.12",
176
176
  "@types/estree": "^1.0.6",
@@ -178,7 +178,7 @@
178
178
  "@types/istanbul-reports": "^3.0.4",
179
179
  "@types/jsdom": "^21.1.7",
180
180
  "@types/micromatch": "^4.0.9",
181
- "@types/node": "^22.7.9",
181
+ "@types/node": "^22.9.0",
182
182
  "@types/prompts": "^2.4.9",
183
183
  "@types/sinonjs__fake-timers": "^8.1.5",
184
184
  "acorn-walk": "^8.3.4",
@@ -190,7 +190,7 @@
190
190
  "find-up": "^6.3.0",
191
191
  "flatted": "^3.3.1",
192
192
  "get-tsconfig": "^4.8.1",
193
- "happy-dom": "^15.7.4",
193
+ "happy-dom": "^15.11.4",
194
194
  "jsdom": "^25.0.1",
195
195
  "local-pkg": "^0.5.0",
196
196
  "log-update": "^5.0.1",