vitest 3.0.0-beta.4 → 3.0.1

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 (57) hide show
  1. package/dist/browser.d.ts +2 -2
  2. package/dist/browser.js +1 -1
  3. package/dist/chunks/{base.BJ8KO-VX.js → base.gZAre3Yy.js} +3 -3
  4. package/dist/chunks/{cac.BAYqQ2aM.js → cac.Davy6Tyx.js} +24 -24
  5. package/dist/chunks/{cli-api.Dhl34Trr.js → cli-api.DO-hp2Kx.js} +1031 -162
  6. package/dist/chunks/{console.CN7AiMGV.js → console.BxE0RUCr.js} +3 -3
  7. package/dist/chunks/{creator.Ot9GlSGw.js → creator.B8v1wNyQ.js} +3 -3
  8. package/dist/chunks/{execute.BMOaRArH.js → execute.4vt3NSmG.js} +3 -4
  9. package/dist/chunks/global.CnI8_G5V.d.ts +133 -0
  10. package/dist/chunks/{globals.C5RQxaV3.js → globals.BSNBk3vE.js} +2 -2
  11. package/dist/chunks/{index.BQbxGbG9.js → index.Bf4FgyZN.js} +1 -1
  12. package/dist/chunks/{index.BJDntFik.js → index.Bh7wTRhh.js} +8 -8
  13. package/dist/chunks/{index.B2M9nD1V.js → index.C2XSkjNu.js} +5 -5
  14. package/dist/chunks/{index.DQboAxJm.js → index.DfqWks-F.js} +2 -1
  15. package/dist/chunks/{index.CAueP3cK.js → index.DyQPL4DO.js} +200 -945
  16. package/dist/chunks/{index.68735LiX.js → index.TH3f4LSA.js} +2 -2
  17. package/dist/chunks/{index.K90BXFOx.js → index.cYxyd29h.js} +12 -12
  18. package/dist/chunks/{inspector.DKLceBVD.js → inspector.CU9GlB9I.js} +1 -1
  19. package/dist/chunks/{reporters.Dcdq51WE.d.ts → reporters.Y8BYiXBN.d.ts} +340 -239
  20. package/dist/chunks/{resolveConfig.kZFMjKCQ.js → resolveConfig.DATSOo7x.js} +150 -65
  21. package/dist/chunks/{rpc.C3q9uwRX.js → rpc.Bf456uf4.js} +1 -2
  22. package/dist/chunks/{runBaseTests.URiUrnWK.js → runBaseTests.Ba8jtu6O.js} +8 -8
  23. package/dist/chunks/{setup-common.D0zLenuv.js → setup-common.jLbIuaww.js} +1 -1
  24. package/dist/chunks/{RandomSequencer.DB__To1b.js → typechecker.ChNaIV36.js} +62 -115
  25. package/dist/chunks/{utils.yHKcm4dz.js → utils.DJWL04yX.js} +1 -1
  26. package/dist/chunks/{vi.Da_PT3Vw.js → vi.CjhMlMwf.js} +6 -6
  27. package/dist/chunks/{vite.DzluO1Kj.d.ts → vite.CQ0dHgkN.d.ts} +1 -1
  28. package/dist/chunks/{vm.DrFVeTXo.js → vm.CUw7ChSp.js} +5 -5
  29. package/dist/chunks/{worker.BIVMnzXw.d.ts → worker.B1y96qmv.d.ts} +1 -1
  30. package/dist/chunks/{worker.Hz_LAzfd.d.ts → worker.CIpff8Eg.d.ts} +2 -4
  31. package/dist/cli.js +1 -1
  32. package/dist/config.cjs +1 -1
  33. package/dist/config.d.ts +3 -3
  34. package/dist/config.js +1 -1
  35. package/dist/coverage.d.ts +1 -1
  36. package/dist/coverage.js +12 -11
  37. package/dist/environments.js +1 -1
  38. package/dist/execute.d.ts +1 -1
  39. package/dist/execute.js +1 -1
  40. package/dist/index.d.ts +17 -118
  41. package/dist/index.js +2 -2
  42. package/dist/node.d.ts +11 -8
  43. package/dist/node.js +27 -25
  44. package/dist/reporters.d.ts +1 -1
  45. package/dist/reporters.js +4 -6
  46. package/dist/runners.d.ts +1 -0
  47. package/dist/runners.js +10 -10
  48. package/dist/worker.js +5 -5
  49. package/dist/workers/forks.js +2 -2
  50. package/dist/workers/runVmTests.js +7 -7
  51. package/dist/workers/threads.js +2 -2
  52. package/dist/workers/vmForks.js +3 -3
  53. package/dist/workers/vmThreads.js +3 -3
  54. package/dist/workers.d.ts +2 -2
  55. package/dist/workers.js +8 -8
  56. package/package.json +17 -17
  57. package/dist/chunks/types.BOjykUpq.d.ts +0 -27
package/dist/execute.js CHANGED
@@ -1,4 +1,4 @@
1
- export { V as VitestExecutor } from './chunks/execute.BMOaRArH.js';
1
+ export { V as VitestExecutor } from './chunks/execute.4vt3NSmG.js';
2
2
  import 'node:fs';
3
3
  import 'node:url';
4
4
  import 'node:vm';
package/dist/index.d.ts CHANGED
@@ -1,27 +1,24 @@
1
- import { TaskResultPack as TaskResultPack$1, File as File$1, TaskPopulated, Suite as Suite$1, Test as Test$1, Custom as Custom$1, Task as Task$1, TaskBase as TaskBase$1, TaskResult as TaskResult$1, DoneCallback as DoneCallback$1, RuntimeContext as RuntimeContext$1, SuiteHooks as SuiteHooks$1, SequenceHooks as SequenceHooks$1, SequenceSetupFiles as SequenceSetupFiles$1 } from '@vitest/runner';
1
+ import { TaskResultPack as TaskResultPack$1, TaskEventPack, File as File$1, TaskPopulated, Suite as Suite$1, Test as Test$1, Custom as Custom$1, Task as Task$1, TaskBase as TaskBase$1, TaskResult as TaskResult$1, DoneCallback as DoneCallback$1, RuntimeContext as RuntimeContext$1, SuiteHooks as SuiteHooks$1, SequenceHooks as SequenceHooks$1, SequenceSetupFiles as SequenceSetupFiles$1 } from '@vitest/runner';
2
2
  export { CancelReason, ExtendedContext, HookCleanupCallback, HookListener, OnTestFailedHandler, OnTestFinishedHandler, RunMode, Custom as RunnerCustomCase, Task as RunnerTask, TaskBase as RunnerTaskBase, TaskResult as RunnerTaskResult, TaskResultPack as RunnerTaskResultPack, Test as RunnerTestCase, File as RunnerTestFile, Suite as RunnerTestSuite, SuiteAPI, SuiteCollector, SuiteFactory, TaskContext, TaskCustomOptions, TaskMeta, TaskState, TestAPI, TestContext, TestFunction, TestOptions, afterAll, afterEach, beforeAll, beforeEach, describe, it, onTestFailed, onTestFinished, suite, test } from '@vitest/runner';
3
- import { S as SerializedTestSpecification, b as CoverageProvider$1, a as ReportContext$1, c as CoverageProviderModule$1, g as CoverageReporter$1, h as CoverageProviderName, i as CoverageOptions$1, R as ResolvedCoverageOptions$1, B as BaseCoverageOptions$1, j as CoverageIstanbulOptions$1, d as CoverageV8Options$1, k as CustomProviderOptions$1, l as Reporter$1, V as Vitest$1, m as BrowserScript$1, n as BrowserConfigOptions$1, o as BuiltinEnvironment$1, p as VitestEnvironment$1, P as Pool$1, q as PoolOptions$1, r as CSSModuleScopeStrategy$1, A as ApiConfig$1, s as VitestRunMode$1, D as DepsOptimizationOptions$1, t as TransformModePatterns$1, I as InlineConfig$1, u as TypecheckConfig$1, v as UserConfig$1, w as ResolvedConfig$1, x as ProjectConfig$1, U as UserWorkspaceConfig$1, y as BenchmarkUserOptions$1 } from './chunks/reporters.Dcdq51WE.js';
4
- import { W as WorkerContext$1 } from './chunks/worker.BIVMnzXw.js';
5
- import { R as RawErrsMap$1, T as TscErrorInfo$1, C as CollectLineNumbers$1, a as CollectLines$1, b as RootAndTarget$1, c as Context$1 } from './chunks/types.BOjykUpq.js';
6
- import { U as UserConsoleLog, M as ModuleGraphData, b as Awaitable$1, P as ProvidedContext, N as Nullable$1, c as Arrayable$1, d as ArgumentsType$1, e as MutableArray$1, C as Constructable$1, a as EnvironmentReturn$1, V as VmEnvironmentReturn$1, E as Environment$1, R as ResolvedTestEnvironment$1, J as JSDOMOptions$1, H as HappyDOMOptions$1, f as EnvironmentOptions$1 } from './chunks/environment.d8YfPkTm.js';
3
+ import { S as SerializedTestSpecification, b as CoverageProvider$1, a as ReportContext$1, c as CoverageProviderModule$1, g as CoverageReporter$1, h as CoverageProviderName, i as CoverageOptions$1, R as ResolvedCoverageOptions$1, B as BaseCoverageOptions$1, j as CoverageIstanbulOptions$1, d as CoverageV8Options$1, k as CustomProviderOptions$1, l as Reporter$1, V as Vitest$1, m as BrowserScript$1, n as BrowserConfigOptions$1, o as BuiltinEnvironment$1, p as VitestEnvironment$1, P as Pool$1, q as PoolOptions$1, r as CSSModuleScopeStrategy$1, A as ApiConfig$1, s as VitestRunMode$1, D as DepsOptimizationOptions$1, t as TransformModePatterns$1, I as InlineConfig$1, u as TypecheckConfig$1, v as UserConfig$1, w as ResolvedConfig$1, x as ProjectConfig$1, U as UserWorkspaceConfig$1, y as BenchmarkUserOptions$1 } from './chunks/reporters.Y8BYiXBN.js';
4
+ import { W as WorkerContext$1 } from './chunks/worker.B1y96qmv.js';
5
+ import { R as RawErrsMap$1, T as TscErrorInfo$1, C as CollectLineNumbers$1, a as CollectLines$1, b as RootAndTarget$1, c as Context$1 } from './chunks/global.CnI8_G5V.js';
6
+ import { M as ModuleGraphData, b as Awaitable$1, U as UserConsoleLog, P as ProvidedContext, N as Nullable$1, c as Arrayable$1, d as ArgumentsType$1, e as MutableArray$1, C as Constructable$1, a as EnvironmentReturn$1, V as VmEnvironmentReturn$1, E as Environment$1, R as ResolvedTestEnvironment$1, J as JSDOMOptions$1, H as HappyDOMOptions$1, f as EnvironmentOptions$1 } from './chunks/environment.d8YfPkTm.js';
7
7
  export { A as AfterSuiteRunMeta, g as ModuleCache } from './chunks/environment.d8YfPkTm.js';
8
- import { a as BirpcReturn, b as WorkerRPC$1 } from './chunks/worker.Hz_LAzfd.js';
9
- export { C as ContextRPC, d as ContextTestEnvironment, e as ResolveIdFunction, c as RunnerRPC, R as RuntimeRPC, W as WorkerGlobalState } from './chunks/worker.Hz_LAzfd.js';
10
- import './chunks/vite.DzluO1Kj.js';
11
- import { PromisifyAssertion, Tester, ExpectStatic } from '@vitest/expect';
12
- export { Assertion, AsymmetricMatchersContaining, ExpectPollOptions, ExpectStatic, JestAssertion } from '@vitest/expect';
13
- import { Plugin } from '@vitest/pretty-format';
14
- import { SnapshotState } from '@vitest/snapshot';
15
- export { SnapshotData, SnapshotMatchOptions, SnapshotResult, SnapshotSerializer, SnapshotStateOptions, SnapshotSummary, SnapshotUpdateState, UncheckedSnapshot } from '@vitest/snapshot';
16
- import { B as BenchmarkResult } from './chunks/benchmark.CFFwLv-O.js';
17
- export { a as BenchFunction, b as Benchmark, c as BenchmarkAPI } from './chunks/benchmark.CFFwLv-O.js';
8
+ import { a as BirpcReturn, b as WorkerRPC$1 } from './chunks/worker.CIpff8Eg.js';
9
+ export { C as ContextRPC, d as ContextTestEnvironment, e as ResolveIdFunction, c as RunnerRPC, R as RuntimeRPC, W as WorkerGlobalState } from './chunks/worker.CIpff8Eg.js';
10
+ import './chunks/vite.CQ0dHgkN.js';
18
11
  import { S as SerializedConfig, F as FakeTimerInstallOpts, R as RuntimeOptions } from './chunks/config.BRtC-JeT.js';
19
12
  export { b as RuntimeConfig, a as SerializedCoverageConfig } from './chunks/config.BRtC-JeT.js';
13
+ import { ExpectStatic } from '@vitest/expect';
14
+ export { Assertion, AsymmetricMatchersContaining, ExpectPollOptions, ExpectStatic, JestAssertion } from '@vitest/expect';
20
15
  import { spyOn, fn, MaybeMockedDeep, MaybeMocked, MaybePartiallyMocked, MaybePartiallyMockedDeep, MockInstance } from '@vitest/spy';
21
16
  export { Mock, MockContext, MockInstance, Mocked, MockedClass, MockedFunction, MockedObject } from '@vitest/spy';
22
17
  import { M as MockFactoryWithHelper, a as MockOptions } from './chunks/mocker.cRtM890J.js';
23
18
  export { b as bench } from './chunks/suite.BJU7kdY9.js';
19
+ export { a as BenchFunction, b as Benchmark, c as BenchmarkAPI, B as BenchmarkResult } from './chunks/benchmark.CFFwLv-O.js';
24
20
  export { ExpectTypeOf, expectTypeOf } from 'expect-type';
21
+ export { SnapshotData, SnapshotMatchOptions, SnapshotResult, SnapshotSerializer, SnapshotStateOptions, SnapshotSummary, SnapshotUpdateState, UncheckedSnapshot } from '@vitest/snapshot';
25
22
  export { ErrorWithDiff, ParsedStack, SerializedError, TestError } from '@vitest/utils';
26
23
  export { DiffOptions } from '@vitest/utils/diff';
27
24
  import * as chai from 'chai';
@@ -31,113 +28,14 @@ export { Bench as BenchFactory, Options as BenchOptions, Task as BenchTask, Task
31
28
  import 'node:stream';
32
29
  import 'vite';
33
30
  import '@vitest/utils/source-map';
31
+ import '@vitest/pretty-format';
34
32
  import 'vite-node';
35
33
  import '@vitest/snapshot/manager';
36
34
  import 'node:fs';
37
35
  import 'node:worker_threads';
38
- import '@vitest/runner/utils';
39
36
  import '@vitest/snapshot/environment';
40
37
  import '@vitest/mocker';
41
-
42
- declare global {
43
- namespace Chai {
44
- interface Assertion {
45
- containSubset: (expected: any) => Assertion;
46
- }
47
- interface Assert {
48
- containSubset: (val: any, exp: any, msg?: string) => void;
49
- }
50
- }
51
- }
52
- interface SnapshotMatcher<T> {
53
- <U extends {
54
- [P in keyof T]: any;
55
- }>(snapshot: Partial<U>, message?: string): void;
56
- (message?: string): void;
57
- }
58
- interface InlineSnapshotMatcher<T> {
59
- <U extends {
60
- [P in keyof T]: any;
61
- }>(properties: Partial<U>, snapshot?: string, message?: string): void;
62
- (message?: string): void;
63
- }
64
- declare module '@vitest/expect' {
65
- interface MatcherState {
66
- environment: string;
67
- snapshotState: SnapshotState;
68
- }
69
- interface ExpectPollOptions {
70
- interval?: number;
71
- timeout?: number;
72
- message?: string;
73
- }
74
- interface ExpectStatic {
75
- unreachable: (message?: string) => never;
76
- soft: <T>(actual: T, message?: string) => Assertion<T>;
77
- poll: <T>(actual: () => T, options?: ExpectPollOptions) => PromisifyAssertion<Awaited<T>>;
78
- addEqualityTesters: (testers: Array<Tester>) => void;
79
- assertions: (expected: number) => void;
80
- hasAssertions: () => void;
81
- addSnapshotSerializer: (plugin: Plugin) => void;
82
- }
83
- interface Assertion<T> {
84
- matchSnapshot: SnapshotMatcher<T>;
85
- toMatchSnapshot: SnapshotMatcher<T>;
86
- toMatchInlineSnapshot: InlineSnapshotMatcher<T>;
87
- /**
88
- * Checks that an error thrown by a function matches a previously recorded snapshot.
89
- *
90
- * @param message - Optional custom error message.
91
- *
92
- * @example
93
- * expect(functionWithError).toThrowErrorMatchingSnapshot();
94
- */
95
- toThrowErrorMatchingSnapshot: (message?: string) => void;
96
- /**
97
- * Checks that an error thrown by a function matches an inline snapshot within the test file.
98
- * Useful for keeping snapshots close to the test code.
99
- *
100
- * @param snapshot - Optional inline snapshot string to match.
101
- * @param message - Optional custom error message.
102
- *
103
- * @example
104
- * const throwError = () => { throw new Error('Error occurred') };
105
- * expect(throwError).toThrowErrorMatchingInlineSnapshot(`"Error occurred"`);
106
- */
107
- toThrowErrorMatchingInlineSnapshot: (snapshot?: string, message?: string) => void;
108
- /**
109
- * Compares the received value to a snapshot saved in a specified file.
110
- * Useful for cases where snapshot content is large or needs to be shared across tests.
111
- *
112
- * @param filepath - Path to the snapshot file.
113
- * @param message - Optional custom error message.
114
- *
115
- * @example
116
- * await expect(largeData).toMatchFileSnapshot('path/to/snapshot.json');
117
- */
118
- toMatchFileSnapshot: (filepath: string, message?: string) => Promise<void>;
119
- }
120
- }
121
- declare module '@vitest/runner' {
122
- interface TestContext {
123
- expect: ExpectStatic;
124
- }
125
- interface TaskMeta {
126
- typecheck?: boolean;
127
- benchmark?: boolean;
128
- failScreenshotPath?: string;
129
- }
130
- interface File {
131
- prepareDuration?: number;
132
- environmentLoad?: number;
133
- }
134
- interface TaskBase {
135
- logs?: UserConsoleLog[];
136
- }
137
- interface TaskResult {
138
- benchmark?: BenchmarkResult;
139
- }
140
- }
38
+ import '@vitest/runner/utils';
141
39
 
142
40
  interface SourceMap {
143
41
  file: string;
@@ -160,11 +58,12 @@ interface TransformResultWithSource {
160
58
  source?: string;
161
59
  }
162
60
  interface WebSocketHandlers {
163
- onTaskUpdate: (packs: TaskResultPack$1[]) => void;
61
+ onTaskUpdate: (packs: TaskResultPack$1[], events: TaskEventPack[]) => void;
164
62
  getFiles: () => File$1[];
165
63
  getTestFiles: () => Promise<SerializedTestSpecification[]>;
166
64
  getPaths: () => string[];
167
65
  getConfig: () => SerializedConfig;
66
+ getResolvedProjectNames: () => string[];
168
67
  getModuleGraph: (projectName: string, id: string, browser?: boolean) => Promise<ModuleGraphData>;
169
68
  getTransformResult: (projectName: string, id: string, browser?: boolean) => Promise<TransformResultWithSource | undefined>;
170
69
  readTestFile: (id: string) => Promise<string | null>;
@@ -718,4 +617,4 @@ type SerializableSpec = SerializedTestSpecification;
718
617
  /** @deprecated import from `vitest/node` instead */
719
618
  type BenchmarkUserOptions = BenchmarkUserOptions$1;
720
619
 
721
- export { type ApiConfig, type ArgumentsType, type Arrayable, type AssertType, type Awaitable, type BaseCoverageOptions, BenchmarkResult, type BenchmarkUserOptions, type BrowserConfigOptions, type BrowserScript, type BrowserUI, type BuiltinEnvironment, type CSSModuleScopeStrategy, type CollectLineNumbers, type CollectLines, type Constructable, type Context, type CoverageIstanbulOptions, type CoverageOptions, type CoverageProvider, type CoverageProviderModule, type CoverageReporter, type CoverageV8Options, type Custom, type CustomProviderOptions, type DepsOptimizationOptions, type DoneCallback, type Environment, type EnvironmentOptions, type EnvironmentReturn, type File, type HappyDOMOptions, type InlineConfig, type JSDOMOptions, ModuleGraphData, type MutableArray, type Nullable, type Pool, type PoolOptions, type ProjectConfig, ProvidedContext, type RawErrsMap, type ReportContext, type Reporter, type ResolvedConfig, type ResolvedCoverageOptions, type ResolvedTestEnvironment, type RootAndTarget, type RuntimeContext, type SequenceHooks, type SequenceSetupFiles, type SerializableSpec, SerializedConfig, SerializedTestSpecification, type Suite, type SuiteHooks, type Task, type TaskBase, type TaskResult, type TaskResultPack, type Test, type TransformModePatterns, type TransformResultWithSource, type TscErrorInfo, type TypecheckConfig, type UserConfig, UserConsoleLog, type UserWorkspaceConfig, type Vitest, type VitestEnvironment, type VitestRunMode, type VitestUtils, type VmEnvironmentReturn, type WebSocketEvents, type WebSocketHandlers, type WebSocketRPC, type WorkerContext, type WorkerRPC, assertType, createExpect, globalExpect as expect, getRunningMode, inject, isFirstRun, isWatchMode, runOnce, vi, vitest };
620
+ export { type ApiConfig, type ArgumentsType, type Arrayable, type AssertType, type Awaitable, type BaseCoverageOptions, type BenchmarkUserOptions, type BrowserConfigOptions, type BrowserScript, type BrowserUI, type BuiltinEnvironment, type CSSModuleScopeStrategy, type CollectLineNumbers, type CollectLines, type Constructable, type Context, type CoverageIstanbulOptions, type CoverageOptions, type CoverageProvider, type CoverageProviderModule, type CoverageReporter, type CoverageV8Options, type Custom, type CustomProviderOptions, type DepsOptimizationOptions, type DoneCallback, type Environment, type EnvironmentOptions, type EnvironmentReturn, type File, type HappyDOMOptions, type InlineConfig, type JSDOMOptions, ModuleGraphData, type MutableArray, type Nullable, type Pool, type PoolOptions, type ProjectConfig, ProvidedContext, type RawErrsMap, type ReportContext, type Reporter, type ResolvedConfig, type ResolvedCoverageOptions, type ResolvedTestEnvironment, type RootAndTarget, type RuntimeContext, type SequenceHooks, type SequenceSetupFiles, type SerializableSpec, SerializedConfig, SerializedTestSpecification, type Suite, type SuiteHooks, type Task, type TaskBase, type TaskResult, type TaskResultPack, type Test, type TransformModePatterns, type TransformResultWithSource, type TscErrorInfo, type TypecheckConfig, type UserConfig, UserConsoleLog, type UserWorkspaceConfig, type Vitest, type VitestEnvironment, type VitestRunMode, type VitestUtils, type VmEnvironmentReturn, type WebSocketEvents, type WebSocketHandlers, type WebSocketRPC, type WorkerContext, type WorkerRPC, assertType, createExpect, globalExpect as expect, getRunningMode, inject, isFirstRun, isWatchMode, runOnce, vi, vitest };
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
- export { c as createExpect, a as expect, i as inject, v as vi, b as vitest } from './chunks/vi.Da_PT3Vw.js';
1
+ export { c as createExpect, a as expect, i as inject, v as vi, b as vitest } from './chunks/vi.CjhMlMwf.js';
2
2
  export { i as isFirstRun, a as runOnce } from './chunks/run-once.2ogXb3JV.js';
3
- export { a as assertType, g as getRunningMode, i as isWatchMode } from './chunks/index.BQbxGbG9.js';
3
+ export { a as assertType, g as getRunningMode, i as isWatchMode } from './chunks/index.Bf4FgyZN.js';
4
4
  export { b as bench } from './chunks/benchmark.Cdu9hjj4.js';
5
5
  export { expectTypeOf } from 'expect-type';
6
6
  export { afterAll, afterEach, beforeAll, beforeEach, describe, it, onTestFailed, onTestFinished, suite, test } from '@vitest/runner';
package/dist/node.d.ts CHANGED
@@ -1,19 +1,20 @@
1
- import { s as VitestRunMode, z as VitestOptions, V as Vitest, v as UserConfig$1, A as ApiConfig, E as TestProject, w as ResolvedConfig, F as TestSequencer, G as TestSpecification, L as Logger, H as TestModule, M as ModuleDiagnostic } from './chunks/reporters.Dcdq51WE.js';
2
- export { B as BaseCoverageOptions, y as BenchmarkUserOptions, aa as BrowserBuiltinProvider, ab as BrowserCommand, ac as BrowserCommandContext, n as BrowserConfigOptions, ad as BrowserInstanceOption, ae as BrowserOrchestrator, af as BrowserProvider, ag as BrowserProviderInitializationOptions, ah as BrowserProviderModule, ai as BrowserProviderOptions, m as BrowserScript, aj as BrowserServerState, ak as BrowserServerStateSession, o as BuiltinEnvironment, al as CDPSession, r as CSSModuleScopeStrategy, j as CoverageIstanbulOptions, i as CoverageOptions, b as CoverageProvider, c as CoverageProviderModule, g as CoverageReporter, d as CoverageV8Options, k as CustomProviderOptions, D as DepsOptimizationOptions, Z as HTMLOptions, I as InlineConfig, $ as JUnitOptions, _ as JsonOptions, O as OnServerRestartHandler, J as OnTestsRerunHandler, am as ParentProjectBrowser, P as Pool, q as PoolOptions, N as ProcessPool, an as ProjectBrowser, x as ProjectConfig, a as ReportContext, aq as ResolveSnapshotPathHandler, ar as ResolveSnapshotPathHandlerContext, ao as ResolvedBrowserOptions, R as ResolvedCoverageOptions, ap as ResolvedProjectConfig, Y as SerializedTestProject, a0 as TaskOptions, a1 as TestCase, a2 as TestCollection, a3 as TestDiagnostic, a4 as TestResult, a5 as TestResultFailed, a6 as TestResultPassed, a7 as TestResultSkipped, as as TestRunResult, a9 as TestSequencerConstructor, a8 as TestSuite, t as TransformModePatterns, u as TypecheckConfig, U as UserWorkspaceConfig, p as VitestEnvironment, K as VitestPackageInstaller, Q as WorkspaceSpec, X as getFilePoolName } from './chunks/reporters.Dcdq51WE.js';
1
+ import { s as VitestRunMode, z as VitestOptions, V as Vitest, v as UserConfig$1, A as ApiConfig, E as TestProject, w as ResolvedConfig, F as TestSequencer, G as TestSpecification, L as Logger, H as TestModule, M as ModuleDiagnostic } from './chunks/reporters.Y8BYiXBN.js';
2
+ export { B as BaseCoverageOptions, y as BenchmarkUserOptions, ad as BrowserBuiltinProvider, ae as BrowserCommand, af as BrowserCommandContext, n as BrowserConfigOptions, ag as BrowserInstanceOption, ah as BrowserOrchestrator, ai as BrowserProvider, aj as BrowserProviderInitializationOptions, ak as BrowserProviderModule, al as BrowserProviderOptions, m as BrowserScript, am as BrowserServerState, an as BrowserServerStateSession, o as BuiltinEnvironment, ao as CDPSession, r as CSSModuleScopeStrategy, j as CoverageIstanbulOptions, i as CoverageOptions, b as CoverageProvider, c as CoverageProviderModule, g as CoverageReporter, d as CoverageV8Options, k as CustomProviderOptions, D as DepsOptimizationOptions, Z as HTMLOptions, I as InlineConfig, $ as JUnitOptions, _ as JsonOptions, O as OnServerRestartHandler, J as OnTestsRerunHandler, ap as ParentProjectBrowser, P as Pool, q as PoolOptions, N as ProcessPool, aq as ProjectBrowser, x as ProjectConfig, a as ReportContext, aw as ReportedHookContext, l as Reporter, at as ResolveSnapshotPathHandler, au as ResolveSnapshotPathHandlerContext, ar as ResolvedBrowserOptions, R as ResolvedCoverageOptions, as as ResolvedProjectConfig, Y as SerializedTestProject, a0 as TaskOptions, a1 as TestCase, a2 as TestCollection, a3 as TestDiagnostic, a4 as TestModuleState, a5 as TestResult, a6 as TestResultFailed, a7 as TestResultPassed, a8 as TestResultSkipped, ax as TestRunEndReason, av as TestRunResult, ac as TestSequencerConstructor, a9 as TestState, aa as TestSuite, ab as TestSuiteState, t as TransformModePatterns, u as TypecheckConfig, U as UserWorkspaceConfig, p as VitestEnvironment, K as VitestPackageInstaller, Q as WorkspaceSpec, X as getFilePoolName } from './chunks/reporters.Y8BYiXBN.js';
3
3
  import { UserConfig, Plugin, ResolvedConfig as ResolvedConfig$1, LogLevel, LoggerOptions, Logger as Logger$1, createServer as createServer$1 } from 'vite';
4
4
  import * as vite from 'vite';
5
5
  export { vite as Vite };
6
6
  export { esbuildVersion, isFileServingAllowed, parseAst, parseAstAsync, rollupVersion, version as viteVersion } from 'vite';
7
- import { R as RuntimeRPC } from './chunks/worker.Hz_LAzfd.js';
7
+ import { R as RuntimeRPC } from './chunks/worker.CIpff8Eg.js';
8
8
  import { Writable } from 'node:stream';
9
- export { W as WorkerContext } from './chunks/worker.BIVMnzXw.js';
10
- export { C as TypeCheckCollectLineNumbers, a as TypeCheckCollectLines, c as TypeCheckContext, T as TypeCheckErrorInfo, R as TypeCheckRawErrorsMap, b as TypeCheckRootAndTarget } from './chunks/types.BOjykUpq.js';
9
+ export { W as WorkerContext } from './chunks/worker.B1y96qmv.js';
10
+ export { C as TypeCheckCollectLineNumbers, a as TypeCheckCollectLines, c as TypeCheckContext, T as TypeCheckErrorInfo, R as TypeCheckRawErrorsMap, b as TypeCheckRootAndTarget } from './chunks/global.CnI8_G5V.js';
11
11
  import createDebug from 'debug';
12
- export { generateFileHash } from '@vitest/runner/utils';
12
+ export { Task as RunnerTask, TaskResult as RunnerTaskResult, TaskResultPack as RunnerTaskResultPack, Test as RunnerTestCase, File as RunnerTestFile, Suite as RunnerTestSuite, SequenceHooks, SequenceSetupFiles } from '@vitest/runner';
13
13
  export { f as EnvironmentOptions, H as HappyDOMOptions, J as JSDOMOptions } from './chunks/environment.d8YfPkTm.js';
14
+ export { SerializedError } from '@vitest/utils';
14
15
  export { b as RuntimeConfig } from './chunks/config.BRtC-JeT.js';
15
- export { SequenceHooks, SequenceSetupFiles } from '@vitest/runner';
16
- import '@vitest/utils';
16
+ import './chunks/vite.CQ0dHgkN.js';
17
+ export { generateFileHash } from '@vitest/runner/utils';
17
18
  import '@vitest/utils/source-map';
18
19
  import '@vitest/pretty-format';
19
20
  import '@vitest/snapshot';
@@ -25,6 +26,7 @@ import 'tinybench';
25
26
  import '@vitest/snapshot/manager';
26
27
  import 'node:fs';
27
28
  import 'node:worker_threads';
29
+ import '@vitest/expect';
28
30
  import '@vitest/snapshot/environment';
29
31
 
30
32
  interface CliOptions extends UserConfig$1 {
@@ -87,6 +89,7 @@ declare function resolveFsAllow(projectRoot: string, rootConfigFile: string | fa
87
89
 
88
90
  interface MethodsOptions {
89
91
  cacheFs?: boolean;
92
+ collect?: boolean;
90
93
  }
91
94
  declare function createMethodsRPC(project: TestProject, options?: MethodsOptions): RuntimeRPC;
92
95
 
package/dist/node.js CHANGED
@@ -1,16 +1,14 @@
1
1
  import { resolveConfig as resolveConfig$1, mergeConfig, createServer as createServer$1 } from 'vite';
2
2
  export { esbuildVersion, isFileServingAllowed, parseAst, parseAstAsync, rollupVersion, version as viteVersion } from 'vite';
3
- import { V as Vitest, a as VitestPlugin } from './chunks/cli-api.Dhl34Trr.js';
4
- export { G as GitNotFoundError, F as TestsNotFoundError, b as VitestPackageInstaller, e as createViteLogger, c as createVitest, d as registerConsoleShortcuts, r as resolveFsAllow, s as startVitest } from './chunks/cli-api.Dhl34Trr.js';
5
- import { f as TestModule } from './chunks/index.CAueP3cK.js';
6
- export { p as parseCLI } from './chunks/cac.BAYqQ2aM.js';
7
- import { a as resolveConfig$2 } from './chunks/resolveConfig.kZFMjKCQ.js';
8
- export { d as createMethodsRPC, g as getFilePoolName, b as resolveApiServerConfig } from './chunks/resolveConfig.kZFMjKCQ.js';
3
+ import { V as Vitest, a as VitestPlugin, T as TestModule } from './chunks/cli-api.DO-hp2Kx.js';
4
+ export { G as GitNotFoundError, F as TestsNotFoundError, b as VitestPackageInstaller, e as createViteLogger, c as createVitest, d as registerConsoleShortcuts, r as resolveFsAllow, s as startVitest } from './chunks/cli-api.DO-hp2Kx.js';
5
+ export { p as parseCLI } from './chunks/cac.Davy6Tyx.js';
6
+ import { a as resolveConfig$2 } from './chunks/resolveConfig.DATSOo7x.js';
7
+ export { B as BaseSequencer, d as createMethodsRPC, g as getFilePoolName, b as resolveApiServerConfig } from './chunks/resolveConfig.DATSOo7x.js';
9
8
  import { slash } from '@vitest/utils';
10
- import { f as findUp } from './chunks/index.BJDntFik.js';
9
+ import { f as findUp } from './chunks/index.Bh7wTRhh.js';
11
10
  import { resolve } from 'pathe';
12
11
  import { c as configFiles } from './chunks/constants.fzPh7AOq.js';
13
- export { B as BaseSequencer } from './chunks/RandomSequencer.DB__To1b.js';
14
12
  export { distDir, rootDir } from './path.js';
15
13
  import createDebug from 'debug';
16
14
  export { generateFileHash } from '@vitest/runner/utils';
@@ -20,7 +18,23 @@ import 'node:path';
20
18
  import '@vitest/snapshot/manager';
21
19
  import 'vite-node/client';
22
20
  import 'vite-node/server';
23
- import './chunks/index.68735LiX.js';
21
+ import './chunks/index.TH3f4LSA.js';
22
+ import './chunks/index.DyQPL4DO.js';
23
+ import 'tinyrainbow';
24
+ import './chunks/utils.DJWL04yX.js';
25
+ import 'node:util';
26
+ import 'node:perf_hooks';
27
+ import '@vitest/utils/source-map';
28
+ import './chunks/typechecker.ChNaIV36.js';
29
+ import 'std-env';
30
+ import 'node:fs/promises';
31
+ import 'tinyexec';
32
+ import 'node:os';
33
+ import 'node:url';
34
+ import 'node:module';
35
+ import 'fs';
36
+ import 'node:console';
37
+ import 'node:stream';
24
38
  import 'stream';
25
39
  import 'zlib';
26
40
  import 'buffer';
@@ -32,35 +46,23 @@ import 'net';
32
46
  import 'tls';
33
47
  import 'url';
34
48
  import './chunks/_commonjsHelpers.BFTU3MAI.js';
35
- import '@vitest/utils/source-map';
36
- import 'node:module';
37
- import 'node:url';
38
- import 'tinyrainbow';
39
- import 'node:fs/promises';
40
- import 'node:os';
41
49
  import 'os';
42
50
  import 'path';
43
- import 'fs';
44
51
  import 'vite-node/utils';
45
52
  import '@vitest/mocker/node';
46
53
  import 'magic-string';
47
- import './chunks/utils.yHKcm4dz.js';
48
- import 'node:util';
54
+ import 'node:assert';
55
+ import '@vitest/utils/error';
49
56
  import 'node:readline';
50
- import 'node:perf_hooks';
51
- import 'node:stream';
52
- import 'node:console';
53
57
  import 'node:process';
54
- import 'node:assert';
55
58
  import 'node:v8';
56
- import 'std-env';
59
+ import 'node:crypto';
60
+ import 'node:tty';
57
61
  import 'util';
58
62
  import 'node:events';
59
63
  import 'tinypool';
60
64
  import 'node:worker_threads';
61
65
  import 'readline';
62
- import 'tinyexec';
63
- import 'node:crypto';
64
66
 
65
67
  async function resolveConfig(options = {}, viteOverrides = {}) {
66
68
  const root = slash(resolve(options.root || process.cwd()));
@@ -1,4 +1,4 @@
1
- export { aD as BaseReporter, at as BasicReporter, aN as BenchmarkBuiltinReporters, aM as BenchmarkReportsMap, aI as BuiltinReporterOptions, aH as BuiltinReporters, au as DefaultReporter, av as DotReporter, aF as FileDiagnostic, aw as GithubActionsReporter, ax as HangingProcessReporter, az as JUnitReporter, aJ as JsonAssertionResult, ay as JsonReporter, aK as JsonTestResult, aL as JsonTestResults, l as Reporter, aG as ReportersMap, aA as TapFlatReporter, aB as TapReporter, a0 as TaskOptions, a1 as TestCase, a2 as TestCollection, a3 as TestDiagnostic, aE as TestFile, H as TestModule, E as TestProject, a4 as TestResult, a5 as TestResultFailed, a6 as TestResultPassed, a7 as TestResultSkipped, a8 as TestSuite, aC as VerboseReporter } from './chunks/reporters.Dcdq51WE.js';
1
+ export { aM as BaseReporter, ay as BasicReporter, aN as BenchmarkBuiltinReporters, az as BenchmarkReporter, aA as BenchmarkReportsMap, aO as BuiltinReporterOptions, aP as BuiltinReporters, aB as DefaultReporter, aC as DotReporter, aD as GithubActionsReporter, aE as HangingProcessReporter, aG as JUnitReporter, aQ as JsonAssertionResult, aF as JsonReporter, aR as JsonTestResult, aS as JsonTestResults, aw as ReportedHookContext, l as Reporter, aH as ReportersMap, aI as TapFlatReporter, aJ as TapReporter, ax as TestRunEndReason, aK as VerboseBenchmarkReporter, aL as VerboseReporter } from './chunks/reporters.Y8BYiXBN.js';
2
2
  import '@vitest/runner';
3
3
  import './chunks/environment.d8YfPkTm.js';
4
4
  import '@vitest/utils';
package/dist/reporters.js CHANGED
@@ -1,14 +1,14 @@
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.CAueP3cK.js';
1
+ export { B as BasicReporter, a as BenchmarkReporter, b as BenchmarkReportsMap, D as DefaultReporter, c as DotReporter, G as GithubActionsReporter, H as HangingProcessReporter, d as JUnitReporter, J as JsonReporter, R as ReportersMap, T as TapFlatReporter, e as TapReporter, V as VerboseBenchmarkReporter, f as VerboseReporter } from './chunks/index.DyQPL4DO.js';
2
2
  import 'node:fs';
3
3
  import '@vitest/runner/utils';
4
4
  import 'pathe';
5
5
  import 'tinyrainbow';
6
- import './chunks/utils.yHKcm4dz.js';
6
+ import './chunks/utils.DJWL04yX.js';
7
7
  import 'node:util';
8
8
  import '@vitest/utils';
9
9
  import 'node:perf_hooks';
10
10
  import '@vitest/utils/source-map';
11
- import './chunks/RandomSequencer.DB__To1b.js';
11
+ import './chunks/typechecker.ChNaIV36.js';
12
12
  import 'std-env';
13
13
  import 'node:fs/promises';
14
14
  import 'tinyexec';
@@ -18,7 +18,5 @@ import 'node:url';
18
18
  import 'node:path';
19
19
  import 'node:module';
20
20
  import 'fs';
21
- import 'vite-node/utils';
22
- import 'node:crypto';
23
- import 'node:stream';
24
21
  import 'node:console';
22
+ import 'node:stream';
package/dist/runners.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import * as tinybench from 'tinybench';
2
2
  import { VitestRunner, VitestRunnerImportSource, Suite, File, Task, CancelReason, TestContext } from '@vitest/runner';
3
+ export { VitestRunner } from '@vitest/runner';
3
4
  import { S as SerializedConfig } from './chunks/config.BRtC-JeT.js';
4
5
  import '@vitest/pretty-format';
5
6
  import '@vitest/snapshot';
package/dist/runners.js CHANGED
@@ -4,8 +4,8 @@ import { a as getBenchOptions, g as getBenchFn } from './chunks/benchmark.Cdu9hj
4
4
  import { g as getWorkerState } from './chunks/utils.C8RiOc4B.js';
5
5
  import { setState, GLOBAL_EXPECT, getState } from '@vitest/expect';
6
6
  import { getTests, getNames, getTestName } from '@vitest/runner/utils';
7
- import { g as getSnapshotClient, i as inject, c as createExpect, v as vi } from './chunks/vi.Da_PT3Vw.js';
8
- import { r as rpc } from './chunks/rpc.C3q9uwRX.js';
7
+ import { g as getSnapshotClient, i as inject, c as createExpect, v as vi } from './chunks/vi.CjhMlMwf.js';
8
+ import { r as rpc } from './chunks/rpc.Bf456uf4.js';
9
9
  import 'chai';
10
10
  import './chunks/_commonjsHelpers.BFTU3MAI.js';
11
11
  import '@vitest/snapshot';
@@ -13,7 +13,7 @@ import '@vitest/utils/error';
13
13
  import '@vitest/utils/source-map';
14
14
  import './chunks/date.W2xKR2qe.js';
15
15
  import '@vitest/spy';
16
- import './chunks/index.68735LiX.js';
16
+ import './chunks/index.TH3f4LSA.js';
17
17
 
18
18
  function createBenchmarkResult(name) {
19
19
  return {
@@ -49,7 +49,7 @@ async function runBenchmarkSuite(suite, runner) {
49
49
  startTime: start,
50
50
  benchmark: createBenchmarkResult(suite.name)
51
51
  };
52
- updateTask$1(suite);
52
+ updateTask$1("suite-prepare", suite);
53
53
  const addBenchTaskListener = (task, benchmark) => {
54
54
  task.addEventListener(
55
55
  "complete",
@@ -65,7 +65,7 @@ async function runBenchmarkSuite(suite, runner) {
65
65
  if (!runner.config.benchmark?.includeSamples) {
66
66
  result.samples.length = 0;
67
67
  }
68
- updateTask$1(benchmark);
68
+ updateTask$1("test-finished", benchmark);
69
69
  },
70
70
  {
71
71
  once: true
@@ -99,7 +99,7 @@ async function runBenchmarkSuite(suite, runner) {
99
99
  const tasks = [];
100
100
  for (const benchmark of benchmarkGroup) {
101
101
  const task = benchmarkTasks.get(benchmark);
102
- updateTask$1(benchmark);
102
+ updateTask$1("test-prepare", benchmark);
103
103
  await task.warmup();
104
104
  tasks.push([
105
105
  await new Promise(
@@ -112,12 +112,12 @@ async function runBenchmarkSuite(suite, runner) {
112
112
  }
113
113
  suite.result.duration = performance.now() - start;
114
114
  suite.result.state = "pass";
115
- updateTask$1(suite);
115
+ updateTask$1("suite-finished", suite);
116
116
  defer.resolve(null);
117
117
  await defer;
118
118
  }
119
- function updateTask$1(task) {
120
- updateTask(task, runner);
119
+ function updateTask$1(event, task) {
120
+ updateTask(event, task, runner);
121
121
  }
122
122
  }
123
123
  class NodeBenchmarkRunner {
@@ -163,7 +163,7 @@ class VitestTestRunner {
163
163
  }
164
164
  onAfterRunFiles() {
165
165
  this.snapshotClient.clear();
166
- this.workerState.current = void 0;
166
+ this.workerState.current = undefined;
167
167
  }
168
168
  async onAfterRunSuite(suite) {
169
169
  if (this.config.logHeapUsage && typeof process !== "undefined") {
package/dist/worker.js CHANGED
@@ -4,15 +4,15 @@ import { workerId } from 'tinypool';
4
4
  import { ViteNodeRunner, ModuleCacheMap } from 'vite-node/client';
5
5
  import { readFileSync } from 'node:fs';
6
6
  import { resolve, normalize } from 'pathe';
7
- import { e as environments } from './chunks/index.K90BXFOx.js';
8
- import { s as setupInspect } from './chunks/inspector.DKLceBVD.js';
9
- import { c as createRuntimeRpc, a as rpcDone } from './chunks/rpc.C3q9uwRX.js';
7
+ import { e as environments } from './chunks/index.cYxyd29h.js';
8
+ import { s as setupInspect } from './chunks/inspector.CU9GlB9I.js';
9
+ import { c as createRuntimeRpc, a as rpcDone } from './chunks/rpc.Bf456uf4.js';
10
10
  import { i as isChildProcess, s as setProcessTitle } from './chunks/utils.C8RiOc4B.js';
11
11
  import { d as disposeInternalListeners } from './chunks/utils.Cn0zI1t3.js';
12
12
  import 'node:console';
13
13
  import 'node:module';
14
14
  import '@vitest/utils';
15
- import './chunks/index.68735LiX.js';
15
+ import './chunks/index.TH3f4LSA.js';
16
16
 
17
17
  function isBuiltinEnvironment(env) {
18
18
  return env in environments;
@@ -43,7 +43,7 @@ async function loadEnvironment(ctx, rpc) {
43
43
  resolveId: (id, importer) => rpc.resolveId(id, importer, "ssr")
44
44
  });
45
45
  const root = loader.root;
46
- const packageId = name[0] === "." || name[0] === "/" ? resolve(root, name) : (await rpc.resolveId(`vitest-environment-${name}`, void 0, "ssr"))?.id ?? resolve(root, name);
46
+ const packageId = name[0] === "." || name[0] === "/" ? resolve(root, name) : (await rpc.resolveId(`vitest-environment-${name}`, undefined, "ssr"))?.id ?? resolve(root, name);
47
47
  const pkg = await loader.executeId(normalize(packageId));
48
48
  if (!pkg || !pkg.default || typeof pkg.default !== "object") {
49
49
  throw new TypeError(
@@ -1,8 +1,8 @@
1
1
  import v8 from 'node:v8';
2
- import { r as runBaseTests } from '../chunks/base.BJ8KO-VX.js';
2
+ import { r as runBaseTests } from '../chunks/base.gZAre3Yy.js';
3
3
  import { c as createForksRpcOptions, u as unwrapSerializableConfig } from '../chunks/utils.Cn0zI1t3.js';
4
4
  import 'vite-node/client';
5
- import '../chunks/execute.BMOaRArH.js';
5
+ import '../chunks/execute.4vt3NSmG.js';
6
6
  import 'node:fs';
7
7
  import 'node:url';
8
8
  import 'node:vm';
@@ -6,20 +6,20 @@ import util from 'node:util';
6
6
  import { startTests, collectTests } from '@vitest/runner';
7
7
  import { KNOWN_ASSET_TYPES } from 'vite-node/constants';
8
8
  import { installSourcemapsSupport } from 'vite-node/source-map';
9
- import { s as setupChaiConfig, r as resolveTestRunner, a as resolveSnapshotEnvironment } from '../chunks/index.B2M9nD1V.js';
9
+ import { s as setupChaiConfig, r as resolveTestRunner, a as resolveSnapshotEnvironment } from '../chunks/index.C2XSkjNu.js';
10
10
  import { s as startCoverageInsideWorker, a as stopCoverageInsideWorker } from '../chunks/coverage.BWeNbfBa.js';
11
- import { V as VitestIndex } from '../chunks/index.BQbxGbG9.js';
12
- import { c as closeInspector } from '../chunks/inspector.DKLceBVD.js';
13
- import { s as setupCommonEnv } from '../chunks/setup-common.D0zLenuv.js';
11
+ import { V as VitestIndex } from '../chunks/index.Bf4FgyZN.js';
12
+ import { c as closeInspector } from '../chunks/inspector.CU9GlB9I.js';
13
+ import { s as setupCommonEnv } from '../chunks/setup-common.jLbIuaww.js';
14
14
  import { g as getWorkerState } from '../chunks/utils.C8RiOc4B.js';
15
15
  import 'chai';
16
16
  import 'node:path';
17
17
  import '../path.js';
18
18
  import 'node:url';
19
- import '../chunks/rpc.C3q9uwRX.js';
19
+ import '../chunks/rpc.Bf456uf4.js';
20
20
  import '@vitest/utils';
21
- import '../chunks/index.68735LiX.js';
22
- import '../chunks/vi.Da_PT3Vw.js';
21
+ import '../chunks/index.TH3f4LSA.js';
22
+ import '../chunks/vi.CjhMlMwf.js';
23
23
  import '@vitest/expect';
24
24
  import '@vitest/runner/utils';
25
25
  import '../chunks/_commonjsHelpers.BFTU3MAI.js';
@@ -1,7 +1,7 @@
1
- import { r as runBaseTests } from '../chunks/base.BJ8KO-VX.js';
1
+ import { r as runBaseTests } from '../chunks/base.gZAre3Yy.js';
2
2
  import { a as createThreadsRpcOptions } from '../chunks/utils.Cn0zI1t3.js';
3
3
  import 'vite-node/client';
4
- import '../chunks/execute.BMOaRArH.js';
4
+ import '../chunks/execute.4vt3NSmG.js';
5
5
  import 'node:fs';
6
6
  import 'node:url';
7
7
  import 'node:vm';
@@ -1,19 +1,19 @@
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.DrFVeTXo.js';
3
+ import { r as runVmTests } from '../chunks/vm.CUw7ChSp.js';
4
4
  import '@vitest/utils';
5
5
  import 'node:url';
6
6
  import 'node:vm';
7
7
  import 'pathe';
8
8
  import '../path.js';
9
9
  import 'node:path';
10
- import '../chunks/console.CN7AiMGV.js';
10
+ import '../chunks/console.BxE0RUCr.js';
11
11
  import 'node:console';
12
12
  import 'node:stream';
13
13
  import 'tinyrainbow';
14
14
  import '../chunks/date.W2xKR2qe.js';
15
15
  import '../chunks/utils.C8RiOc4B.js';
16
- import '../chunks/execute.BMOaRArH.js';
16
+ import '../chunks/execute.4vt3NSmG.js';
17
17
  import 'node:fs';
18
18
  import '@vitest/utils/error';
19
19
  import 'vite-node/client';
@@ -1,18 +1,18 @@
1
1
  import { a as createThreadsRpcOptions } from '../chunks/utils.Cn0zI1t3.js';
2
- import { r as runVmTests } from '../chunks/vm.DrFVeTXo.js';
2
+ import { r as runVmTests } from '../chunks/vm.CUw7ChSp.js';
3
3
  import '@vitest/utils';
4
4
  import 'node:url';
5
5
  import 'node:vm';
6
6
  import 'pathe';
7
7
  import '../path.js';
8
8
  import 'node:path';
9
- import '../chunks/console.CN7AiMGV.js';
9
+ import '../chunks/console.BxE0RUCr.js';
10
10
  import 'node:console';
11
11
  import 'node:stream';
12
12
  import 'tinyrainbow';
13
13
  import '../chunks/date.W2xKR2qe.js';
14
14
  import '../chunks/utils.C8RiOc4B.js';
15
- import '../chunks/execute.BMOaRArH.js';
15
+ import '../chunks/execute.4vt3NSmG.js';
16
16
  import 'node:fs';
17
17
  import '@vitest/utils/error';
18
18
  import 'vite-node/client';
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.Hz_LAzfd.js';
1
+ import { W as WorkerGlobalState, C as ContextRPC, B as BirpcOptions, R as RuntimeRPC } from './chunks/worker.CIpff8Eg.js';
2
2
  import { Awaitable } from '@vitest/utils';
3
3
  import * as v8 from 'v8';
4
4
  import { S as SerializedConfig } from './chunks/config.BRtC-JeT.js';
5
- import { W as WorkerContext } from './chunks/worker.BIVMnzXw.js';
5
+ import { W as WorkerContext } from './chunks/worker.B1y96qmv.js';
6
6
  import '@vitest/runner';
7
7
  import 'vite-node';
8
8
  import './chunks/environment.d8YfPkTm.js';