vitest 3.0.0-beta.3 → 3.0.0

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 (54) hide show
  1. package/LICENSE.md +1 -315
  2. package/config.d.ts +2 -0
  3. package/dist/browser.d.ts +3 -3
  4. package/dist/browser.js +1 -1
  5. package/dist/chunks/{base.CQ2VEtuH.js → base.CUDzyU2J.js} +2 -2
  6. package/dist/chunks/{cac.e7qW4xLT.js → cac.DZC9WjGM.js} +8 -8
  7. package/dist/chunks/{cli-api.CWDlED-m.js → cli-api.CmJw5Cd_.js} +920 -84
  8. package/dist/chunks/{config.BTPBhmK5.d.ts → config.BRtC-JeT.d.ts} +6 -0
  9. package/dist/chunks/{console.BYGVloWk.js → console.CN7AiMGV.js} +16 -7
  10. package/dist/chunks/{creator.Ot9GlSGw.js → creator.DztqrnyH.js} +1 -1
  11. package/dist/chunks/{execute.2pr0rHgK.js → execute.BMOaRArH.js} +27 -16
  12. package/dist/chunks/global.CnI8_G5V.d.ts +133 -0
  13. package/dist/chunks/{globals.BFncSRNA.js → globals.C5RQxaV3.js} +2 -2
  14. package/dist/chunks/{index.CkWmZCXU.js → index.BQbxGbG9.js} +1 -1
  15. package/dist/chunks/{index.BBoOXW-l.js → index.CUcwvygK.js} +5 -5
  16. package/dist/chunks/{index.DQboAxJm.js → index.D9C26wCk.js} +1 -0
  17. package/dist/chunks/index.TKSL1HjN.js +2460 -0
  18. package/dist/chunks/{reporters.DCiyjXOg.d.ts → reporters.Y8BYiXBN.d.ts} +412 -386
  19. package/dist/chunks/{resolveConfig.C1d7TK-U.js → resolveConfig.CSLLD33d.js} +140 -55
  20. package/dist/chunks/{rpc.C3q9uwRX.js → rpc.TVf73xOu.js} +0 -1
  21. package/dist/chunks/{runBaseTests.qNWRkgHj.js → runBaseTests.C0T_TQwH.js} +9 -7
  22. package/dist/chunks/{setup-common.Cp_bu5q3.js → setup-common.D0zLenuv.js} +1 -1
  23. package/dist/chunks/{RandomSequencer.C6x84bNN.js → typechecker.BJMkWMXo.js} +84 -108
  24. package/dist/chunks/{utils.Coei4Wlj.js → utils.DJWL04yX.js} +9 -20
  25. package/dist/chunks/{vi.S4Fq8wSo.js → vi.Da_PT3Vw.js} +554 -272
  26. package/dist/chunks/{vite.CRSMFy31.d.ts → vite.CQ0dHgkN.d.ts} +1 -1
  27. package/dist/chunks/{vm.DGhTouO3.js → vm.DrFVeTXo.js} +4 -4
  28. package/dist/chunks/{worker.R-PA7DpW.d.ts → worker.B1y96qmv.d.ts} +1 -1
  29. package/dist/chunks/{worker.XbtCXEXv.d.ts → worker.CIpff8Eg.d.ts} +3 -5
  30. package/dist/cli.js +1 -1
  31. package/dist/config.d.ts +4 -4
  32. package/dist/coverage.d.ts +2 -2
  33. package/dist/coverage.js +5 -4
  34. package/dist/execute.d.ts +3 -3
  35. package/dist/execute.js +1 -1
  36. package/dist/index.d.ts +18 -119
  37. package/dist/index.js +2 -2
  38. package/dist/node.d.ts +12 -9
  39. package/dist/node.js +25 -24
  40. package/dist/reporters.d.ts +2 -2
  41. package/dist/reporters.js +4 -10
  42. package/dist/runners.d.ts +2 -1
  43. package/dist/runners.js +9 -16
  44. package/dist/worker.js +1 -1
  45. package/dist/workers/forks.js +2 -2
  46. package/dist/workers/runVmTests.js +8 -6
  47. package/dist/workers/threads.js +2 -2
  48. package/dist/workers/vmForks.js +3 -3
  49. package/dist/workers/vmThreads.js +3 -3
  50. package/dist/workers.d.ts +3 -3
  51. package/dist/workers.js +5 -5
  52. package/package.json +17 -19
  53. package/dist/chunks/index.CzkCSFCy.js +0 -5455
  54. package/dist/chunks/types.BOjykUpq.d.ts +0 -27
@@ -1,4 +1,4 @@
1
- import { I as InlineConfig } from './reporters.DCiyjXOg.js';
1
+ import { I as InlineConfig } from './reporters.Y8BYiXBN.js';
2
2
 
3
3
  type VitestInlineConfig = InlineConfig;
4
4
  declare module 'vite' {
@@ -2,8 +2,8 @@ import { fileURLToPath, pathToFileURL } from 'node:url';
2
2
  import vm, { isContext } from 'node:vm';
3
3
  import { dirname, basename, extname, normalize, join, resolve } from 'pathe';
4
4
  import { distDir } from '../path.js';
5
- import { createCustomConsole } from './console.BYGVloWk.js';
6
- import { g as getDefaultRequestStubs, s as startVitestExecutor } from './execute.2pr0rHgK.js';
5
+ import { createCustomConsole } from './console.CN7AiMGV.js';
6
+ import { g as getDefaultRequestStubs, s as startVitestExecutor } from './execute.BMOaRArH.js';
7
7
  import fs from 'node:fs';
8
8
  import { dirname as dirname$1 } from 'node:path';
9
9
  import { isNodeBuiltin, isPrimitive, toArray, getCachedData, setCacheData } from 'vite-node/utils';
@@ -633,7 +633,7 @@ class ExternalModulesExecutor {
633
633
  }
634
634
  return {};
635
635
  }
636
- wrapCoreSynteticModule(identifier, exports) {
636
+ wrapCoreSyntheticModule(identifier, exports) {
637
637
  const moduleKeys = Object.keys(exports);
638
638
  const m = new SyntheticModule(
639
639
  [...moduleKeys, "default"],
@@ -711,7 +711,7 @@ class ExternalModulesExecutor {
711
711
  return await this.esm.createDataModule(identifier);
712
712
  case "builtin": {
713
713
  const exports = this.require(identifier);
714
- return this.wrapCoreSynteticModule(identifier, exports);
714
+ return this.wrapCoreSyntheticModule(identifier, exports);
715
715
  }
716
716
  case "vite":
717
717
  return await this.vite.createViteModule(url);
@@ -1,5 +1,5 @@
1
1
  import { MessagePort } from 'node:worker_threads';
2
- import { C as ContextRPC } from './worker.XbtCXEXv.js';
2
+ import { C as ContextRPC } from './worker.CIpff8Eg.js';
3
3
 
4
4
  interface WorkerContext extends ContextRPC {
5
5
  port: MessagePort;
@@ -1,6 +1,6 @@
1
- import { File, TaskResultPack, CancelReason, FileSpecification, Task } from '@vitest/runner';
1
+ import { File, TaskResultPack, TaskEventPack, CancelReason, FileSpecification, Task } from '@vitest/runner';
2
2
  import { ViteNodeResolveId, ModuleCacheMap } from 'vite-node';
3
- import { S as SerializedConfig } from './config.BTPBhmK5.js';
3
+ import { S as SerializedConfig } from './config.BRtC-JeT.js';
4
4
  import { T as TransformMode, U as UserConsoleLog, A as AfterSuiteRunMeta, E as Environment } from './environment.d8YfPkTm.js';
5
5
  import { SnapshotResult } from '@vitest/snapshot';
6
6
 
@@ -100,14 +100,12 @@ interface RuntimeRPC {
100
100
  * @deprecated unused
101
101
  */
102
102
  getSourceMap: (id: string, force?: boolean) => Promise<any>;
103
- onFinished: (files: File[], errors?: unknown[]) => void;
104
- onPathsCollected: (paths: string[]) => void;
105
103
  onUserConsoleLog: (log: UserConsoleLog) => void;
106
104
  onUnhandledError: (err: unknown, type: string) => void;
107
105
  onQueued: (file: File) => void;
108
106
  onCollected: (files: File[]) => Promise<void>;
109
107
  onAfterSuiteRun: (meta: AfterSuiteRunMeta) => void;
110
- onTaskUpdate: (pack: TaskResultPack[]) => Promise<void>;
108
+ onTaskUpdate: (pack: TaskResultPack[], events: TaskEventPack[]) => Promise<void>;
111
109
  onCancel: (reason: CancelReason) => void;
112
110
  getCountOfFailedTests: () => number;
113
111
  snapshotSaved: (snapshot: SnapshotResult) => void;
package/dist/cli.js CHANGED
@@ -1,4 +1,4 @@
1
- import { c as createCLI } from './chunks/cac.e7qW4xLT.js';
1
+ import { c as createCLI } from './chunks/cac.DZC9WjGM.js';
2
2
  import '@vitest/utils';
3
3
  import 'events';
4
4
  import 'pathe';
package/dist/config.d.ts CHANGED
@@ -1,14 +1,14 @@
1
1
  import { UserConfig as UserConfig$1, ConfigEnv } from 'vite';
2
2
  export { ConfigEnv, Plugin, UserConfig as ViteUserConfig, mergeConfig } from 'vite';
3
- import { R as ResolvedCoverageOptions, d as CoverageV8Options, U as UserWorkspaceConfig, e as UserProjectConfigFn, f as UserProjectConfigExport, T as TestProjectConfiguration } from './chunks/reporters.DCiyjXOg.js';
4
- export { W as WorkspaceProjectConfiguration } from './chunks/reporters.DCiyjXOg.js';
5
- import './chunks/vite.CRSMFy31.js';
3
+ import { R as ResolvedCoverageOptions, d as CoverageV8Options, U as UserWorkspaceConfig, e as UserProjectConfigFn, f as UserProjectConfigExport, T as TestProjectConfiguration } from './chunks/reporters.Y8BYiXBN.js';
4
+ export { W as WorkspaceProjectConfiguration } from './chunks/reporters.Y8BYiXBN.js';
5
+ import './chunks/vite.CQ0dHgkN.js';
6
6
  import '@vitest/runner';
7
7
  import './chunks/environment.d8YfPkTm.js';
8
8
  import '@vitest/utils';
9
9
  import 'node:stream';
10
10
  import '@vitest/utils/source-map';
11
- import './chunks/config.BTPBhmK5.js';
11
+ import './chunks/config.BRtC-JeT.js';
12
12
  import '@vitest/pretty-format';
13
13
  import '@vitest/snapshot';
14
14
  import '@vitest/snapshot/environment';
@@ -1,11 +1,11 @@
1
1
  import * as vite from 'vite';
2
- import { R as ResolvedCoverageOptions, V as Vitest, C as CoverageMap, a as ReportContext } from './chunks/reporters.DCiyjXOg.js';
2
+ import { R as ResolvedCoverageOptions, V as Vitest, C as CoverageMap, a as ReportContext } from './chunks/reporters.Y8BYiXBN.js';
3
3
  import { A as AfterSuiteRunMeta } from './chunks/environment.d8YfPkTm.js';
4
4
  import '@vitest/runner';
5
5
  import '@vitest/utils';
6
6
  import 'node:stream';
7
7
  import '@vitest/utils/source-map';
8
- import './chunks/config.BTPBhmK5.js';
8
+ import './chunks/config.BRtC-JeT.js';
9
9
  import '@vitest/pretty-format';
10
10
  import '@vitest/snapshot';
11
11
  import '@vitest/snapshot/environment';
package/dist/coverage.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { existsSync, promises, readdirSync, writeFileSync } from 'node:fs';
2
- import { c as coverageConfigDefaults, r as resolveCoverageReporters, m as mm } from './chunks/resolveConfig.C1d7TK-U.js';
2
+ import { c as coverageConfigDefaults, r as resolveCoverageReporters, m as mm } from './chunks/resolveConfig.CSLLD33d.js';
3
3
  import { resolve, relative } from 'pathe';
4
4
  import c from 'tinyrainbow';
5
5
  import '@vitest/utils';
@@ -13,16 +13,16 @@ import 'node:v8';
13
13
  import 'node:util';
14
14
  import './chunks/constants.fzPh7AOq.js';
15
15
  import 'node:os';
16
- import './chunks/RandomSequencer.C6x84bNN.js';
16
+ import './chunks/typechecker.BJMkWMXo.js';
17
17
  import 'std-env';
18
18
  import 'node:perf_hooks';
19
- import '@vitest/runner/utils';
20
19
  import '@vitest/utils/source-map';
21
20
  import 'tinyexec';
21
+ import '@vitest/runner/utils';
22
22
  import 'vite';
23
23
  import 'fs';
24
- import 'vite-node/utils';
25
24
  import 'node:crypto';
25
+ import 'node:tty';
26
26
  import './chunks/_commonjsHelpers.BFTU3MAI.js';
27
27
  import 'util';
28
28
  import 'path';
@@ -31,6 +31,7 @@ import './chunks/index.68735LiX.js';
31
31
  import 'tinypool';
32
32
  import 'node:worker_threads';
33
33
  import './path.js';
34
+ import 'vite-node/utils';
34
35
 
35
36
  const THRESHOLD_KEYS = [
36
37
  "lines",
package/dist/execute.d.ts CHANGED
@@ -1,12 +1,12 @@
1
1
  import { ViteNodeRunnerOptions } from 'vite-node';
2
2
  import { ViteNodeRunner } from 'vite-node/client';
3
- import { R as RuntimeRPC, W as WorkerGlobalState } from './chunks/worker.XbtCXEXv.js';
3
+ import { R as RuntimeRPC, W as WorkerGlobalState } from './chunks/worker.CIpff8Eg.js';
4
4
  import vm from 'node:vm';
5
5
  import * as _vitest_mocker from '@vitest/mocker';
6
6
  import { MockedModuleType } from '@vitest/mocker';
7
7
  import { P as PendingSuiteMock, b as MockFactory, a as MockOptions } from './chunks/mocker.cRtM890J.js';
8
8
  import '@vitest/runner';
9
- import './chunks/config.BTPBhmK5.js';
9
+ import './chunks/config.BRtC-JeT.js';
10
10
  import '@vitest/pretty-format';
11
11
  import '@vitest/snapshot';
12
12
  import '@vitest/snapshot/environment';
@@ -65,7 +65,7 @@ declare class ExternalModulesExecutor {
65
65
  resolveModule: (specifier: string, referencer: string) => Promise<VMModule>;
66
66
  resolve(specifier: string, parent: string): string;
67
67
  private findNearestPackageData;
68
- private wrapCoreSynteticModule;
68
+ private wrapCoreSyntheticModule;
69
69
  private wrapCommonJsSynteticModule;
70
70
  private getModuleInformation;
71
71
  private createModule;
package/dist/execute.js CHANGED
@@ -1,4 +1,4 @@
1
- export { V as VitestExecutor } from './chunks/execute.2pr0rHgK.js';
1
+ export { V as VitestExecutor } from './chunks/execute.BMOaRArH.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.DCiyjXOg.js';
4
- import { W as WorkerContext$1 } from './chunks/worker.R-PA7DpW.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.XbtCXEXv.js';
9
- export { C as ContextRPC, d as ContextTestEnvironment, e as ResolveIdFunction, c as RunnerRPC, R as RuntimeRPC, W as WorkerGlobalState } from './chunks/worker.XbtCXEXv.js';
10
- import './chunks/vite.CRSMFy31.js';
11
- import { PromisifyAssertion, Tester, ExpectStatic } from '@vitest/expect';
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';
11
+ import { S as SerializedConfig, F as FakeTimerInstallOpts, R as RuntimeOptions } from './chunks/config.BRtC-JeT.js';
12
+ export { b as RuntimeConfig, a as SerializedCoverageConfig } from './chunks/config.BRtC-JeT.js';
13
+ import { ExpectStatic } from '@vitest/expect';
12
14
  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';
18
- import { S as SerializedConfig, F as FakeTimerInstallOpts, R as RuntimeOptions } from './chunks/config.BTPBhmK5.js';
19
- export { b as RuntimeConfig, a as SerializedCoverageConfig } from './chunks/config.BTPBhmK5.js';
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.S4Fq8wSo.js';
1
+ export { c as createExpect, a as expect, i as inject, v as vi, b as vitest } from './chunks/vi.Da_PT3Vw.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.CkWmZCXU.js';
3
+ export { a as assertType, g as getRunningMode, i as isWatchMode } from './chunks/index.BQbxGbG9.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.DCiyjXOg.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.DCiyjXOg.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.XbtCXEXv.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.R-PA7DpW.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 { b as RuntimeConfig } from './chunks/config.BTPBhmK5.js';
15
- export { SequenceHooks, SequenceSetupFiles } from '@vitest/runner';
16
- import '@vitest/utils';
14
+ export { SerializedError } from '@vitest/utils';
15
+ export { b as RuntimeConfig } from './chunks/config.BRtC-JeT.js';
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.CWDlED-m.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.CWDlED-m.js';
5
- import { f as TestModule } from './chunks/index.CzkCSFCy.js';
6
- export { p as parseCLI } from './chunks/cac.e7qW4xLT.js';
7
- import { a as resolveConfig$2 } from './chunks/resolveConfig.C1d7TK-U.js';
8
- export { d as createMethodsRPC, g as getFilePoolName, b as resolveApiServerConfig } from './chunks/resolveConfig.C1d7TK-U.js';
3
+ import { V as Vitest, a as VitestPlugin, T as TestModule } from './chunks/cli-api.CmJw5Cd_.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.CmJw5Cd_.js';
5
+ export { p as parseCLI } from './chunks/cac.DZC9WjGM.js';
6
+ import { a as resolveConfig$2 } from './chunks/resolveConfig.CSLLD33d.js';
7
+ export { B as BaseSequencer, d as createMethodsRPC, g as getFilePoolName, b as resolveApiServerConfig } from './chunks/resolveConfig.CSLLD33d.js';
9
8
  import { slash } from '@vitest/utils';
10
9
  import { f as findUp } from './chunks/index.BJDntFik.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.C6x84bNN.js';
14
12
  export { distDir, rootDir } from './path.js';
15
13
  import createDebug from 'debug';
16
14
  export { generateFileHash } from '@vitest/runner/utils';
@@ -21,6 +19,22 @@ import '@vitest/snapshot/manager';
21
19
  import 'vite-node/client';
22
20
  import 'vite-node/server';
23
21
  import './chunks/index.68735LiX.js';
22
+ import './chunks/index.TKSL1HjN.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.BJMkWMXo.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,36 +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.Coei4Wlj.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 'assert';
55
- import 'node:assert';
56
58
  import 'node:v8';
57
- import 'std-env';
59
+ import 'node:crypto';
60
+ import 'node:tty';
58
61
  import 'util';
59
62
  import 'node:events';
60
63
  import 'tinypool';
61
64
  import 'node:worker_threads';
62
65
  import 'readline';
63
- import 'tinyexec';
64
- import 'node:crypto';
65
66
 
66
67
  async function resolveConfig(options = {}, viteOverrides = {}) {
67
68
  const root = slash(resolve(options.root || process.cwd()));
@@ -1,11 +1,11 @@
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.DCiyjXOg.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';
5
5
  import 'node:stream';
6
6
  import 'vite';
7
7
  import '@vitest/utils/source-map';
8
- import './chunks/config.BTPBhmK5.js';
8
+ import './chunks/config.BRtC-JeT.js';
9
9
  import '@vitest/pretty-format';
10
10
  import '@vitest/snapshot';
11
11
  import '@vitest/snapshot/environment';
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.CzkCSFCy.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.TKSL1HjN.js';
2
2
  import 'node:fs';
3
3
  import '@vitest/runner/utils';
4
4
  import 'pathe';
5
5
  import 'tinyrainbow';
6
- import './chunks/utils.Coei4Wlj.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.C6x84bNN.js';
11
+ import './chunks/typechecker.BJMkWMXo.js';
12
12
  import 'std-env';
13
13
  import 'node:fs/promises';
14
14
  import 'tinyexec';
@@ -18,11 +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';
25
- import 'node:process';
26
- import './chunks/_commonjsHelpers.BFTU3MAI.js';
27
- import 'assert';
28
- import 'events';
22
+ import 'node:stream';
package/dist/runners.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import * as tinybench from 'tinybench';
2
2
  import { VitestRunner, VitestRunnerImportSource, Suite, File, Task, CancelReason, TestContext } from '@vitest/runner';
3
- import { S as SerializedConfig } from './chunks/config.BTPBhmK5.js';
3
+ export { VitestRunner } from '@vitest/runner';
4
+ import { S as SerializedConfig } from './chunks/config.BRtC-JeT.js';
4
5
  import '@vitest/pretty-format';
5
6
  import '@vitest/snapshot';
6
7
  import '@vitest/snapshot/environment';