vitest 1.5.3 → 2.0.0-beta.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 (74) hide show
  1. package/LICENSE.md +172 -0
  2. package/dist/browser.d.ts +1 -1
  3. package/dist/browser.js +4 -4
  4. package/dist/chunks/environments-node.39w4gmlF.js +19 -0
  5. package/dist/chunks/{install-pkg.LE8oaA1t.js → install-pkg.DNUmWFkO.js} +2 -2
  6. package/dist/chunks/integrations-globals.B5Jl0grA.js +31 -0
  7. package/dist/chunks/{runtime-console.EO5ha7qv.js → runtime-console.CUES-L8X.js} +9 -9
  8. package/dist/chunks/{runtime-runBaseTests.l6qXp5eU.js → runtime-runBaseTests._dXkRAZc.js} +21 -22
  9. package/dist/cli.js +3 -3
  10. package/dist/config.cjs +2 -3
  11. package/dist/config.d.ts +1 -1
  12. package/dist/config.js +2 -3
  13. package/dist/coverage.d.ts +1 -1
  14. package/dist/coverage.js +2 -2
  15. package/dist/environments.d.ts +1 -1
  16. package/dist/environments.js +1 -1
  17. package/dist/execute.d.ts +7 -4
  18. package/dist/execute.js +3 -3
  19. package/dist/index.d.ts +770 -21
  20. package/dist/index.js +12 -12
  21. package/dist/node.d.ts +2 -2
  22. package/dist/node.js +21 -22
  23. package/dist/{reporters-BXNXFKfg.d.ts → reporters-MGvT5U9f.d.ts} +128 -55
  24. package/dist/reporters.d.ts +1 -1
  25. package/dist/reporters.js +11 -12
  26. package/dist/runners.d.ts +1 -1
  27. package/dist/runners.js +17 -18
  28. package/dist/snapshot.d.ts +9 -0
  29. package/dist/snapshot.js +8 -0
  30. package/dist/{suite-KPWE530F.d.ts → suite-8WAe-urM.d.ts} +1 -1
  31. package/dist/suite.d.ts +2 -2
  32. package/dist/suite.js +4 -4
  33. package/dist/vendor/{base.oIzAvGLe.js → base.VFkIJ66g.js} +3 -3
  34. package/dist/vendor/{base.Xt0Omgh7.js → base._gnK9Slw.js} +8 -1
  35. package/dist/vendor/{benchmark.yGkUTKnC.js → benchmark.BNLebNi5.js} +1 -1
  36. package/dist/vendor/{cac.RDd_SGOd.js → cac.DzKZaJu2.js} +39 -17
  37. package/dist/vendor/{cli-api.AmIc1Dmz.js → cli-api.DTeni0Qq.js} +3201 -404
  38. package/dist/vendor/{execute.2_yoIC01.js → execute.CLLNVNnK.js} +8 -3
  39. package/dist/vendor/{index.Fm6OikHU.js → index.BfoZyXD1.js} +20 -21
  40. package/dist/vendor/{index.8bPxjt7g.js → index.BpSiYbpB.js} +5 -1
  41. package/dist/vendor/{index.X7lgIMc_.js → index.CRxYS9H3.js} +586 -230
  42. package/dist/vendor/{index.QVcwRDVW.js → index.CmILuxzC.js} +8 -6
  43. package/dist/vendor/{index.xL8XjTLv.js → index.DP-km6lF.js} +1 -1
  44. package/dist/vendor/{index.SMVOaj7F.js → index._7XLd8Kd.js} +2 -2
  45. package/dist/vendor/{rpc.joBhAkyK.js → rpc.DRDE9Pu1.js} +2 -2
  46. package/dist/vendor/{run-once.Olz_Zkd8.js → run-once.DLomgGUH.js} +1 -1
  47. package/dist/vendor/{setup-common.5nUd4r76.js → setup-common.XeoZAW8t.js} +2 -2
  48. package/dist/vendor/{tasks.IknbGB2n.js → tasks.WC7M-K-v.js} +4 -1
  49. package/dist/vendor/{utils.VYmeMh-u.js → utils.D5gGkwyH.js} +1 -1
  50. package/dist/vendor/{vi.Y_w82WR8.js → vi.ClD3hi7L.js} +23 -10
  51. package/dist/vendor/{vm.i4FO5N37.js → vm.Bi3bljci.js} +132 -54
  52. package/dist/worker.js +13 -7
  53. package/dist/workers/forks.js +6 -6
  54. package/dist/workers/runVmTests.js +22 -20
  55. package/dist/workers/threads.js +6 -6
  56. package/dist/workers/vmForks.js +9 -9
  57. package/dist/workers/vmThreads.js +9 -9
  58. package/dist/workers.d.ts +1 -1
  59. package/dist/workers.js +14 -14
  60. package/package.json +33 -29
  61. package/snapshot.d.ts +1 -0
  62. package/vitest.mjs +1 -1
  63. package/dist/chunks/integrations-globals.Hr6znn-f.js +0 -31
  64. package/dist/cli-wrapper.js +0 -119
  65. /package/dist/chunks/{node-git.Hw101KjS.js → node-git.CCI8evVZ.js} +0 -0
  66. /package/dist/vendor/{_commonjsHelpers.jjO7Zipk.js → _commonjsHelpers.BFTU3MAI.js} +0 -0
  67. /package/dist/vendor/{constants.5J7I254_.js → constants.5SOfHUj0.js} +0 -0
  68. /package/dist/vendor/{coverage.E7sG1b3r.js → coverage.ChSqD-qS.js} +0 -0
  69. /package/dist/vendor/{date.Ns1pGd_X.js → date.BKM1wewY.js} +0 -0
  70. /package/dist/vendor/{env.AtSIuHFg.js → env.bmJgw1qP.js} +0 -0
  71. /package/dist/vendor/{global.CkGT_TMy.js → global.7bFbnyXl.js} +0 -0
  72. /package/dist/vendor/{index.GVFv9dZ0.js → index.DeR1hhfY.js} +0 -0
  73. /package/dist/vendor/{inspector.IgLX3ur5.js → inspector.hPQncR7V.js} +0 -0
  74. /package/dist/vendor/{utils.0uYuCbzo.js → utils.CUjzkRH7.js} +0 -0
package/dist/index.js CHANGED
@@ -1,27 +1,27 @@
1
1
  export { afterAll, afterEach, beforeAll, beforeEach, describe, it, onTestFailed, onTestFinished, suite, test } from '@vitest/runner';
2
- export { b as bench } from './vendor/benchmark.yGkUTKnC.js';
3
- export { i as isFirstRun, a as runOnce } from './vendor/run-once.Olz_Zkd8.js';
4
- export { c as createExpect, a as expect, v as vi, b as vitest } from './vendor/vi.Y_w82WR8.js';
5
- import { d as dist } from './vendor/index.QVcwRDVW.js';
6
- export { b as assertType, g as getRunningMode, i as inject, a as isWatchMode } from './vendor/index.QVcwRDVW.js';
2
+ export { b as bench } from './vendor/benchmark.BNLebNi5.js';
3
+ export { i as isFirstRun, a as runOnce } from './vendor/run-once.DLomgGUH.js';
4
+ export { c as createExpect, a as expect, v as vi, b as vitest } from './vendor/vi.ClD3hi7L.js';
5
+ import { d as dist } from './vendor/index.CmILuxzC.js';
6
+ export { b as assertType, g as getRunningMode, i as inject, a as isWatchMode } from './vendor/index.CmILuxzC.js';
7
7
  import * as chai from 'chai';
8
8
  export { chai };
9
9
  export { assert, should } from 'chai';
10
10
  import '@vitest/runner/utils';
11
11
  import '@vitest/utils';
12
- import './vendor/index.SMVOaj7F.js';
12
+ import './vendor/index._7XLd8Kd.js';
13
13
  import 'pathe';
14
- import './vendor/global.CkGT_TMy.js';
15
- import './vendor/env.AtSIuHFg.js';
14
+ import './vendor/global.7bFbnyXl.js';
15
+ import './vendor/env.bmJgw1qP.js';
16
16
  import 'std-env';
17
- import './vendor/_commonjsHelpers.jjO7Zipk.js';
17
+ import './vendor/_commonjsHelpers.BFTU3MAI.js';
18
18
  import '@vitest/expect';
19
19
  import '@vitest/snapshot';
20
20
  import '@vitest/utils/error';
21
- import './vendor/tasks.IknbGB2n.js';
21
+ import './vendor/tasks.WC7M-K-v.js';
22
22
  import '@vitest/utils/source-map';
23
- import './vendor/base.Xt0Omgh7.js';
24
- import './vendor/date.Ns1pGd_X.js';
23
+ import './vendor/base._gnK9Slw.js';
24
+ import './vendor/date.BKM1wewY.js';
25
25
  import '@vitest/spy';
26
26
 
27
27
 
package/dist/node.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { V as VitestRunMode, U as UserConfig, h as VitestOptions, i as Vitest, R as ResolvedConfig, P as ProvidedContext, j as WorkspaceProject, e as RuntimeRPC, T as TestSequencer, k as WorkspaceSpec } from './reporters-BXNXFKfg.js';
2
- export { p as BrowserProvider, o as BrowserProviderInitializationOptions, q as BrowserProviderOptions, l as ProcessPool, n as TestSequencerConstructor, m as VitestPackageInstaller } from './reporters-BXNXFKfg.js';
1
+ import { V as VitestRunMode, U as UserConfig, h as VitestOptions, i as Vitest, R as ResolvedConfig, P as ProvidedContext, j as WorkspaceProject, e as RuntimeRPC, T as TestSequencer, k as WorkspaceSpec } from './reporters-MGvT5U9f.js';
2
+ export { p as BrowserProvider, o as BrowserProviderInitializationOptions, q as BrowserProviderOptions, r as BrowserScript, l as ProcessPool, n as TestSequencerConstructor, m as VitestPackageInstaller } from './reporters-MGvT5U9f.js';
3
3
  import { UserConfig as UserConfig$1, Plugin } from 'vite';
4
4
  import { Writable } from 'node:stream';
5
5
  import '@vitest/runner';
package/dist/node.js CHANGED
@@ -1,10 +1,10 @@
1
- export { b as VitestPackageInstaller, V as VitestPlugin, a as createMethodsRPC, c as createVitest, r as registerConsoleShortcuts, s as startVitest } from './vendor/cli-api.AmIc1Dmz.js';
2
- export { p as parseCLI } from './vendor/cac.RDd_SGOd.js';
3
- export { B as BaseSequencer } from './vendor/index.X7lgIMc_.js';
1
+ export { b as VitestPackageInstaller, V as VitestPlugin, a as createMethodsRPC, c as createVitest, r as registerConsoleShortcuts, s as startVitest } from './vendor/cli-api.DTeni0Qq.js';
2
+ export { p as parseCLI } from './vendor/cac.DzKZaJu2.js';
3
+ export { B as BaseSequencer } from './vendor/index.CRxYS9H3.js';
4
4
  import 'pathe';
5
- import './vendor/constants.5J7I254_.js';
6
- import './vendor/coverage.E7sG1b3r.js';
7
- import './vendor/index.GVFv9dZ0.js';
5
+ import './vendor/constants.5SOfHUj0.js';
6
+ import './vendor/coverage.ChSqD-qS.js';
7
+ import './vendor/index.DeR1hhfY.js';
8
8
  import 'node:console';
9
9
  import 'vite';
10
10
  import 'node:path';
@@ -12,10 +12,10 @@ import 'node:url';
12
12
  import 'node:process';
13
13
  import 'node:fs';
14
14
  import 'node:worker_threads';
15
- import './vendor/_commonjsHelpers.jjO7Zipk.js';
15
+ import './vendor/_commonjsHelpers.BFTU3MAI.js';
16
16
  import 'os';
17
17
  import 'path';
18
- import './vendor/index.xL8XjTLv.js';
18
+ import './vendor/index.DP-km6lF.js';
19
19
  import 'util';
20
20
  import 'stream';
21
21
  import 'events';
@@ -25,12 +25,12 @@ import 'vite-node/client';
25
25
  import '@vitest/snapshot/manager';
26
26
  import 'vite-node/server';
27
27
  import '@vitest/runner/utils';
28
- import './vendor/base.Xt0Omgh7.js';
28
+ import './vendor/base._gnK9Slw.js';
29
29
  import '@vitest/utils';
30
- import './vendor/env.AtSIuHFg.js';
30
+ import './vendor/env.bmJgw1qP.js';
31
31
  import 'std-env';
32
32
  import './path.js';
33
- import './vendor/index.8bPxjt7g.js';
33
+ import './vendor/index.BpSiYbpB.js';
34
34
  import 'zlib';
35
35
  import 'buffer';
36
36
  import 'crypto';
@@ -44,25 +44,24 @@ import 'node:v8';
44
44
  import 'node:os';
45
45
  import 'node:events';
46
46
  import 'tinypool';
47
- import 'local-pkg';
48
47
  import 'node:crypto';
48
+ import 'node:fs/promises';
49
+ import 'node:module';
50
+ import 'node:assert';
51
+ import 'node:util';
49
52
  import 'vite-node/utils';
50
53
  import 'magic-string';
51
- import 'acorn-walk';
52
54
  import '@vitest/utils/ast';
53
- import 'strip-literal';
54
- import './vendor/utils.VYmeMh-u.js';
55
- import 'node:module';
56
- import './vendor/index.SMVOaj7F.js';
57
- import './vendor/global.CkGT_TMy.js';
55
+ import './vendor/utils.D5gGkwyH.js';
56
+ import './vendor/index._7XLd8Kd.js';
57
+ import './vendor/global.7bFbnyXl.js';
58
58
  import 'node:readline';
59
59
  import 'readline';
60
- import './vendor/tasks.IknbGB2n.js';
60
+ import './vendor/tasks.WC7M-K-v.js';
61
61
  import 'node:perf_hooks';
62
- import './chunks/runtime-console.EO5ha7qv.js';
62
+ import './chunks/runtime-console.CUES-L8X.js';
63
63
  import 'node:stream';
64
- import './vendor/date.Ns1pGd_X.js';
65
- import 'node:fs/promises';
64
+ import './vendor/date.BKM1wewY.js';
66
65
  import 'execa';
67
66
  import 'module';
68
67
  import 'assert';
@@ -3,7 +3,7 @@ import { ViteDevServer, TransformResult as TransformResult$1, UserConfig as User
3
3
  import * as _vitest_runner from '@vitest/runner';
4
4
  import { File, Test as Test$1, Suite, TaskResultPack, Task, CancelReason, Custom, SequenceHooks, SequenceSetupFiles } from '@vitest/runner';
5
5
  import { RawSourceMap, FetchResult, ViteNodeResolveId, ModuleCacheMap, ViteNodeServerOptions } from 'vite-node';
6
- import { SnapshotResult, SnapshotStateOptions, SnapshotState } from '@vitest/snapshot';
6
+ import { SnapshotSummary, SnapshotResult, SnapshotStateOptions, SnapshotState } from '@vitest/snapshot';
7
7
  import { ExpectStatic } from '@vitest/expect';
8
8
  import { ChainableFunction } from '@vitest/runner/utils';
9
9
  import { ParsedStack, Awaitable as Awaitable$1, Arrayable as Arrayable$1 } from '@vitest/utils';
@@ -632,13 +632,13 @@ declare class Logger {
632
632
  clearFullScreen(message: string): void;
633
633
  clearScreen(message: string, force?: boolean): void;
634
634
  private _clearScreen;
635
- printError(err: unknown, options?: ErrorOptions): Promise<void>;
635
+ printError(err: unknown, options?: ErrorOptions): void;
636
636
  clearHighlightCache(filename?: string): void;
637
637
  highlight(filename: string, source: string): string;
638
638
  printNoTestFound(filters?: string[]): void;
639
639
  printBanner(): void;
640
- printUnhandledErrors(errors: unknown[]): Promise<void>;
641
- printSourceTypeErrors(errors: TypeCheckError[]): Promise<void>;
640
+ printUnhandledErrors(errors: unknown[]): void;
641
+ printSourceTypeErrors(errors: TypeCheckError[]): void;
642
642
  }
643
643
 
644
644
  interface BrowserProviderInitializationOptions {
@@ -714,6 +714,42 @@ interface BrowserConfigOptions {
714
714
  * @default test.fileParallelism
715
715
  */
716
716
  fileParallelism?: boolean;
717
+ /**
718
+ * Scripts injected into the tester iframe.
719
+ */
720
+ testerScripts?: BrowserScript[];
721
+ /**
722
+ * Scripts injected into the main window.
723
+ */
724
+ indexScripts?: BrowserScript[];
725
+ }
726
+ interface BrowserScript {
727
+ /**
728
+ * If "content" is provided and type is "module", this will be its identifier.
729
+ *
730
+ * If you are using TypeScript, you can add `.ts` extension here for example.
731
+ * @default `injected-${index}.js`
732
+ */
733
+ id?: string;
734
+ /**
735
+ * JavaScript content to be injected. This string is processed by Vite plugins if type is "module".
736
+ *
737
+ * You can use `id` to give Vite a hint about the file extension.
738
+ */
739
+ content?: string;
740
+ /**
741
+ * Path to the script. This value is resolved by Vite so it can be a node module or a file path.
742
+ */
743
+ src?: string;
744
+ /**
745
+ * If the script should be loaded asynchronously.
746
+ */
747
+ async?: boolean;
748
+ /**
749
+ * Script type.
750
+ * @default 'module'
751
+ */
752
+ type?: string;
717
753
  }
718
754
  interface ResolvedBrowserOptions extends BrowserConfigOptions {
719
755
  enabled: boolean;
@@ -745,6 +781,8 @@ declare class WorkspaceProject {
745
781
  reject: (v: unknown) => void;
746
782
  } | undefined;
747
783
  testFilesList: string[] | null;
784
+ readonly id: string;
785
+ readonly tmpDir: string;
748
786
  private _globalSetups;
749
787
  private _provided;
750
788
  constructor(path: string | number, ctx: Vitest, options?: InitializeProjectOptions | undefined);
@@ -774,6 +812,7 @@ declare class WorkspaceProject {
774
812
  isBrowserEnabled(): boolean;
775
813
  getSerializableConfig(): ResolvedConfig;
776
814
  close(): Promise<unknown>;
815
+ private clearTmpDir;
777
816
  initBrowserProvider(): Promise<void>;
778
817
  }
779
818
 
@@ -871,6 +910,7 @@ declare class ResultsCache {
871
910
  private cachePath;
872
911
  private version;
873
912
  private root;
913
+ constructor(version: string);
874
914
  getCachePath(): string | null;
875
915
  setConfig(root: string, config: ResolvedConfig['cache']): void;
876
916
  getResults(key: string): SuiteResultCache | undefined;
@@ -892,6 +932,7 @@ declare class FilesStatsCache {
892
932
  declare class VitestCache {
893
933
  results: ResultsCache;
894
934
  stats: FilesStatsCache;
935
+ constructor(version: string);
895
936
  getFileTestResults(key: string): SuiteResultCache | undefined;
896
937
  getFileStats(key: string): {
897
938
  size: number;
@@ -911,6 +952,7 @@ interface VitestOptions {
911
952
  }
912
953
  declare class Vitest {
913
954
  readonly mode: VitestRunMode;
955
+ version: string;
914
956
  config: ResolvedConfig;
915
957
  configOverride: Partial<ResolvedConfig>;
916
958
  server: ViteDevServer;
@@ -952,16 +994,18 @@ declare class Vitest {
952
994
  private initCoverageProvider;
953
995
  private initBrowserProviders;
954
996
  start(filters?: string[]): Promise<void>;
997
+ init(): Promise<void>;
955
998
  private getTestDependencies;
956
999
  filterTestsBySource(specs: WorkspaceSpec[]): Promise<WorkspaceSpec[]>;
957
1000
  getProjectsByTestFile(file: string): WorkspaceSpec[];
958
1001
  initializeGlobalSetup(paths: WorkspaceSpec[]): Promise<void>;
1002
+ private initializeDistPath;
959
1003
  runFiles(paths: WorkspaceSpec[], allTestsRun: boolean): Promise<void>;
960
1004
  cancelCurrentRun(reason: CancelReason): Promise<void>;
961
1005
  rerunFiles(files?: string[], trigger?: string): Promise<void>;
962
1006
  changeProjectName(pattern: string): Promise<void>;
963
1007
  changeNamePattern(pattern: string, files?: string[], trigger?: string): Promise<void>;
964
- changeFilenamePattern(pattern: string): Promise<void>;
1008
+ changeFilenamePattern(pattern: string, files?: string[]): Promise<void>;
965
1009
  rerunFailed(): Promise<void>;
966
1010
  updateSnapshot(files?: string[]): Promise<void>;
967
1011
  private _rerunTimer;
@@ -984,6 +1028,7 @@ declare class Vitest {
984
1028
  */
985
1029
  exit(force?: boolean): Promise<void>;
986
1030
  report<T extends keyof Reporter>(name: T, ...args: ArgumentsType$1<Reporter[T]>): Promise<void>;
1031
+ getTestFilepaths(): Promise<string[]>;
987
1032
  globTestFiles(filters?: string[]): Promise<WorkspaceSpec[]>;
988
1033
  shouldKeepServer(): boolean;
989
1034
  onServerRestart(fn: OnServerRestartHandler): void;
@@ -1020,25 +1065,25 @@ declare abstract class BaseReporter implements Reporter {
1020
1065
  get mode(): VitestRunMode;
1021
1066
  onInit(ctx: Vitest): void;
1022
1067
  relative(path: string): string;
1023
- onFinished(files?: File[], errors?: unknown[]): Promise<void>;
1068
+ onFinished(files?: File[], errors?: unknown[]): void;
1024
1069
  onTaskUpdate(packs: TaskResultPack[]): void;
1025
- onWatcherStart(files?: File[], errors?: unknown[]): Promise<void>;
1070
+ onWatcherStart(files?: File[], errors?: unknown[]): void;
1026
1071
  private resetLastRunLog;
1027
- onWatcherRerun(files: string[], trigger?: string): Promise<void>;
1072
+ onWatcherRerun(files: string[], trigger?: string): void;
1028
1073
  onUserConsoleLog(log: UserConsoleLog): void;
1029
1074
  shouldLog(log: UserConsoleLog): boolean;
1030
1075
  onServerRestart(reason?: string): void;
1031
- reportSummary(files: File[], errors: unknown[]): Promise<void>;
1032
- reportTestSummary(files: File[], errors: unknown[]): Promise<void>;
1076
+ reportSummary(files: File[], errors: unknown[]): void;
1077
+ reportTestSummary(files: File[], errors: unknown[]): void;
1033
1078
  private printErrorsSummary;
1034
- reportBenchmarkSummary(files: File[]): Promise<void>;
1079
+ reportBenchmarkSummary(files: File[]): void;
1035
1080
  private printTaskErrors;
1036
1081
  registerUnhandledRejection(): void;
1037
1082
  }
1038
1083
 
1039
1084
  declare class BasicReporter extends BaseReporter {
1040
1085
  isTTY: boolean;
1041
- reportSummary(files: File[], errors: unknown[]): Promise<void>;
1086
+ reportSummary(files: File[], errors: unknown[]): void;
1042
1087
  }
1043
1088
 
1044
1089
  interface ListRendererOptions {
@@ -1051,7 +1096,7 @@ interface ListRendererOptions {
1051
1096
  declare function createListRenderer(_tasks: Task[], options: ListRendererOptions): {
1052
1097
  start(): any;
1053
1098
  update(_tasks: Task[]): any;
1054
- stop(): Promise<any>;
1099
+ stop(): any;
1055
1100
  clear(): void;
1056
1101
  };
1057
1102
 
@@ -1062,9 +1107,9 @@ declare class DefaultReporter extends BaseReporter {
1062
1107
  onPathsCollected(paths?: string[]): void;
1063
1108
  onTestRemoved(trigger?: string): Promise<void>;
1064
1109
  onCollected(): void;
1065
- onFinished(files?: _vitest_runner.File[], errors?: unknown[]): Promise<void>;
1110
+ onFinished(files?: _vitest_runner.File[], errors?: unknown[]): void;
1066
1111
  onWatcherStart(files?: _vitest_runner.File[], errors?: unknown[]): Promise<void>;
1067
- stopListRender(): Promise<void>;
1112
+ stopListRender(): void;
1068
1113
  onWatcherRerun(files: string[], trigger?: string): Promise<void>;
1069
1114
  onUserConsoleLog(log: UserConsoleLog): void;
1070
1115
  }
@@ -1101,7 +1146,7 @@ interface JsonAssertionResult {
1101
1146
  status: Status;
1102
1147
  title: string;
1103
1148
  duration?: Milliseconds | null;
1104
- failureMessages: Array<string>;
1149
+ failureMessages: Array<string> | null;
1105
1150
  location?: Callsite | null;
1106
1151
  }
1107
1152
  interface JsonTestResult {
@@ -1125,11 +1170,12 @@ interface JsonTestResults {
1125
1170
  startTime: number;
1126
1171
  success: boolean;
1127
1172
  testResults: Array<JsonTestResult>;
1173
+ snapshot: SnapshotSummary;
1128
1174
  }
1129
1175
  interface JsonOptions$1 {
1130
1176
  outputFile?: string;
1131
1177
  }
1132
- declare class JsonReporter$1 implements Reporter {
1178
+ declare class JsonReporter implements Reporter {
1133
1179
  start: number;
1134
1180
  ctx: Vitest;
1135
1181
  options: JsonOptions$1;
@@ -1143,7 +1189,6 @@ declare class JsonReporter$1 implements Reporter {
1143
1189
  * @param report
1144
1190
  */
1145
1191
  writeReport(report: string): Promise<void>;
1146
- protected getFailureLocation(test: Task): Promise<Callsite | undefined>;
1147
1192
  }
1148
1193
 
1149
1194
  declare class VerboseReporter extends DefaultReporter {
@@ -1172,13 +1217,23 @@ declare class TapReporter implements Reporter {
1172
1217
  static getComment(task: Task): string;
1173
1218
  private logErrorDetails;
1174
1219
  protected logTasks(tasks: Task[]): void;
1175
- onFinished(files?: _vitest_runner.File[]): Promise<void>;
1220
+ onFinished(files?: _vitest_runner.File[]): void;
1176
1221
  }
1177
1222
 
1178
1223
  interface JUnitOptions {
1179
1224
  outputFile?: string;
1180
1225
  classname?: string;
1181
1226
  suiteName?: string;
1227
+ /**
1228
+ * Write <system-out> and <system-err> for console output
1229
+ * @default true
1230
+ */
1231
+ includeConsoleOutput?: boolean;
1232
+ /**
1233
+ * Add <testcase file="..."> attribute (validated on CIRCLE CI and GitLab CI)
1234
+ * @default false
1235
+ */
1236
+ addFileAttribute?: boolean;
1182
1237
  }
1183
1238
  declare class JUnitReporter implements Reporter {
1184
1239
  private ctx;
@@ -1198,7 +1253,7 @@ declare class JUnitReporter implements Reporter {
1198
1253
 
1199
1254
  declare class TapFlatReporter extends TapReporter {
1200
1255
  onInit(ctx: Vitest): void;
1201
- onFinished(files?: _vitest_runner.File[]): Promise<void>;
1256
+ onFinished(files?: _vitest_runner.File[]): void;
1202
1257
  }
1203
1258
 
1204
1259
  declare class HangingProcessReporter implements Reporter {
@@ -1210,21 +1265,7 @@ declare class HangingProcessReporter implements Reporter {
1210
1265
  declare class GithubActionsReporter implements Reporter {
1211
1266
  ctx: Vitest;
1212
1267
  onInit(ctx: Vitest): void;
1213
- onFinished(files?: File[], errors?: unknown[]): Promise<void>;
1214
- }
1215
-
1216
- declare class JsonReporter implements Reporter {
1217
- start: number;
1218
- ctx: Vitest;
1219
- onInit(ctx: Vitest): void;
1220
- protected logTasks(files: File[]): Promise<void>;
1221
- onFinished(files?: File[]): Promise<void>;
1222
- /**
1223
- * Writes the report to an output file if specified in the config,
1224
- * or logs it to the console otherwise.
1225
- * @param report
1226
- */
1227
- writeReport(report: string): Promise<void>;
1268
+ onFinished(files?: File[], errors?: unknown[]): void;
1228
1269
  }
1229
1270
 
1230
1271
  interface TableRendererOptions {
@@ -1232,31 +1273,38 @@ interface TableRendererOptions {
1232
1273
  logger: Logger;
1233
1274
  showHeap: boolean;
1234
1275
  slowTestThreshold: number;
1276
+ compare?: FlatBenchmarkReport;
1235
1277
  }
1236
1278
  declare function createTableRenderer(_tasks: Task[], options: TableRendererOptions): {
1237
1279
  start(): any;
1238
1280
  update(_tasks: Task[]): any;
1239
- stop(): Promise<any>;
1281
+ stop(): any;
1240
1282
  clear(): void;
1241
1283
  };
1242
1284
 
1243
1285
  declare class TableReporter extends BaseReporter {
1244
1286
  renderer?: ReturnType<typeof createTableRenderer>;
1245
1287
  rendererOptions: TableRendererOptions;
1246
- onTestRemoved(trigger?: string): Promise<void>;
1247
- onCollected(): void;
1288
+ onTestRemoved(trigger?: string): void;
1289
+ onCollected(): Promise<void>;
1248
1290
  onTaskUpdate(packs: TaskResultPack[]): void;
1249
- onFinished(files?: _vitest_runner.File[], errors?: unknown[]): Promise<void>;
1291
+ onFinished(files?: File[], errors?: unknown[]): Promise<void>;
1250
1292
  onWatcherStart(): Promise<void>;
1251
- stopListRender(): Promise<void>;
1293
+ stopListRender(): void;
1252
1294
  onWatcherRerun(files: string[], trigger?: string): Promise<void>;
1253
1295
  onUserConsoleLog(log: UserConsoleLog): void;
1254
1296
  }
1297
+ interface FlatBenchmarkReport {
1298
+ [id: string]: FormattedBenchmarkResult;
1299
+ }
1300
+ type FormattedBenchmarkResult = Omit<BenchmarkResult, 'samples'> & {
1301
+ id: string;
1302
+ sampleCount: number;
1303
+ };
1255
1304
 
1256
1305
  declare const BenchmarkReportsMap: {
1257
1306
  default: typeof TableReporter;
1258
1307
  verbose: typeof VerboseReporter;
1259
- json: typeof JsonReporter;
1260
1308
  };
1261
1309
  type BenchmarkBuiltinReporters = keyof typeof BenchmarkReportsMap;
1262
1310
 
@@ -1265,7 +1313,7 @@ declare const ReportersMap: {
1265
1313
  basic: typeof BasicReporter;
1266
1314
  verbose: typeof VerboseReporter;
1267
1315
  dot: typeof DotReporter;
1268
- json: typeof JsonReporter$1;
1316
+ json: typeof JsonReporter;
1269
1317
  tap: typeof TapReporter;
1270
1318
  'tap-flat': typeof TapFlatReporter;
1271
1319
  junit: typeof JUnitReporter;
@@ -1422,7 +1470,7 @@ type BirpcFn<T> = PromisifyFn<T> & {
1422
1470
  /**
1423
1471
  * Send event without asking for response
1424
1472
  */
1425
- asEvent(...args: ArgumentsType<T>): void;
1473
+ asEvent: (...args: ArgumentsType<T>) => void;
1426
1474
  };
1427
1475
  type BirpcReturn<RemoteFunctions, LocalFunctions = Record<string, never>> = {
1428
1476
  [K in keyof RemoteFunctions]: BirpcFn<RemoteFunctions[K]>;
@@ -1430,7 +1478,7 @@ type BirpcReturn<RemoteFunctions, LocalFunctions = Record<string, never>> = {
1430
1478
  $functions: LocalFunctions;
1431
1479
  };
1432
1480
 
1433
- type MockFactoryWithHelper = (importOriginal: <T = unknown>() => Promise<T>) => any;
1481
+ type MockFactoryWithHelper<M = unknown> = (importOriginal: <T extends M>() => Promise<T>) => any;
1434
1482
  type MockFactory = () => any;
1435
1483
  type MockMap = Map<string, Record<string, string | null | MockFactory>>;
1436
1484
  interface PendingSuiteMock {
@@ -1443,7 +1491,10 @@ interface PendingSuiteMock {
1443
1491
 
1444
1492
  type TransformMode = 'web' | 'ssr';
1445
1493
  interface RuntimeRPC {
1446
- fetch: (id: string, environment: TransformMode) => Promise<FetchResult>;
1494
+ fetch: (id: string, environment: TransformMode) => Promise<{
1495
+ externalize?: string;
1496
+ id?: string;
1497
+ }>;
1447
1498
  transform: (id: string, environment: TransformMode) => Promise<FetchResult>;
1448
1499
  resolveId: (id: string, importer: string | undefined, environment: TransformMode) => Promise<ViteNodeResolveId | null>;
1449
1500
  getSourceMap: (id: string, force?: boolean) => Promise<RawSourceMap | undefined>;
@@ -1587,7 +1638,7 @@ interface BaseCoverageOptions {
1587
1638
  /**
1588
1639
  * List of files excluded from coverage as glob patterns
1589
1640
  *
1590
- * @default ['coverage/**', 'dist/**', '**\/[.]**', 'packages/*\/test?(s)/**', '**\/*.d.ts', '**\/virtual:*', '**\/__x00__*', '**\/\x00*', 'cypress/**', 'test?(s)/**', 'test?(-*).?(c|m)[jt]s?(x)', '**\/*{.,-}{test,spec}.?(c|m)[jt]s?(x)', '**\/__tests__/**', '**\/{karma,rollup,webpack,vite,vitest,jest,ava,babel,nyc,cypress,tsup,build}.config.*', '**\/vitest.{workspace,projects}.[jt]s?(on)', '**\/.{eslint,mocha,prettier}rc.{?(c|m)js,yml}']
1641
+ * @default ['coverage/**', 'dist/**', '**\/[.]**', 'packages/*\/test?(s)/**', '**\/*.d.ts', '**\/virtual:*', '**\/__x00__*', '**\/\x00*', 'cypress/**', 'test?(s)/**', 'test?(-*).?(c|m)[jt]s?(x)', '**\/*{.,-}{test,spec}?(-d).?(c|m)[jt]s?(x)', '**\/__tests__/**', '**\/{karma,rollup,webpack,vite,vitest,jest,ava,babel,nyc,cypress,tsup,build}.config.*', '**\/vitest.{workspace,projects}.[jt]s?(on)', '**\/.{eslint,mocha,prettier}rc.{?(c|m)js,yml}']
1591
1642
  */
1592
1643
  exclude?: string[];
1593
1644
  /**
@@ -1853,6 +1904,14 @@ interface BenchmarkUserOptions {
1853
1904
  * Also definable individually per reporter by using an object instead.
1854
1905
  */
1855
1906
  outputFile?: string | (Partial<Record<BenchmarkBuiltinReporters, string>> & Record<string, string>);
1907
+ /**
1908
+ * benchmark output file to compare against
1909
+ */
1910
+ compare?: string;
1911
+ /**
1912
+ * benchmark output file
1913
+ */
1914
+ outputJson?: string;
1856
1915
  }
1857
1916
  interface Benchmark extends Custom {
1858
1917
  meta: {
@@ -1889,7 +1948,6 @@ declare const configDefaults: Readonly<{
1889
1948
  testTimeout: number;
1890
1949
  hookTimeout: number;
1891
1950
  teardownTimeout: number;
1892
- watchExclude: string[];
1893
1951
  forceRerunTriggers: string[];
1894
1952
  update: false;
1895
1953
  reporters: never[];
@@ -2314,11 +2372,6 @@ interface InlineConfig {
2314
2372
  * Path to global setup files
2315
2373
  */
2316
2374
  globalSetup?: string | string[];
2317
- /**
2318
- * Glob pattern of file paths to be ignore from triggering watch rerun
2319
- * @deprecated Use server.watch.ignored instead
2320
- */
2321
- watchExclude?: string[];
2322
2375
  /**
2323
2376
  * Glob patter of file paths that will trigger the whole suite rerun
2324
2377
  *
@@ -2413,6 +2466,10 @@ interface InlineConfig {
2413
2466
  * Resolve custom snapshot path
2414
2467
  */
2415
2468
  resolveSnapshotPath?: (path: string, extension: string) => string;
2469
+ /**
2470
+ * Path to a custom snapshot environment module that has a defualt export of `SnapshotEnvironment` object.
2471
+ */
2472
+ snapshotEnvironment?: string;
2416
2473
  /**
2417
2474
  * Pass with no tests
2418
2475
  */
@@ -2628,6 +2685,14 @@ interface UserConfig extends InlineConfig {
2628
2685
  * Setting to `false` will disable config resolving.
2629
2686
  */
2630
2687
  config?: string | false | undefined;
2688
+ /**
2689
+ * Do not run tests when Vitest starts.
2690
+ *
2691
+ * Vitest will only run tests if it's called programmatically or the test file changes.
2692
+ *
2693
+ * CLI file filters will be ignored.
2694
+ */
2695
+ standalone?: boolean;
2631
2696
  /**
2632
2697
  * Use happy-dom
2633
2698
  */
@@ -2666,6 +2731,14 @@ interface UserConfig extends InlineConfig {
2666
2731
  * Override vite config's clearScreen from cli
2667
2732
  */
2668
2733
  clearScreen?: boolean;
2734
+ /**
2735
+ * benchmark.compare option exposed at the top level for cli
2736
+ */
2737
+ compare?: string;
2738
+ /**
2739
+ * benchmark.outputJson option exposed at the top level for cli
2740
+ */
2741
+ outputJson?: string;
2669
2742
  }
2670
2743
  interface ResolvedConfig extends Omit<Required<UserConfig>, 'config' | 'filters' | 'browser' | 'coverage' | 'testNamePattern' | 'related' | 'api' | 'reporters' | 'resolveSnapshotPath' | 'benchmark' | 'shard' | 'cache' | 'sequence' | 'typecheck' | 'runner' | 'poolOptions' | 'pool' | 'cliExclude'> {
2671
2744
  mode: VitestRunMode;
@@ -2683,7 +2756,7 @@ interface ResolvedConfig extends Omit<Required<UserConfig>, 'config' | 'filters'
2683
2756
  defines: Record<string, any>;
2684
2757
  api?: ApiConfig;
2685
2758
  cliExclude?: string[];
2686
- benchmark?: Required<Omit<BenchmarkUserOptions, 'outputFile'>> & Pick<BenchmarkUserOptions, 'outputFile'>;
2759
+ benchmark?: Required<Omit<BenchmarkUserOptions, 'outputFile' | 'compare' | 'outputJson'>> & Pick<BenchmarkUserOptions, 'outputFile' | 'compare' | 'outputJson'>;
2687
2760
  shard?: {
2688
2761
  index: number;
2689
2762
  count: number;
@@ -2707,7 +2780,7 @@ interface ResolvedConfig extends Omit<Required<UserConfig>, 'config' | 'filters'
2707
2780
  };
2708
2781
  runner?: string;
2709
2782
  }
2710
- type ProjectConfig = Omit<UserConfig, 'sequencer' | 'shard' | 'watch' | 'run' | 'cache' | 'update' | 'reporters' | 'outputFile' | 'poolOptions' | 'teardownTimeout' | 'silent' | 'watchExclude' | 'forceRerunTriggers' | 'testNamePattern' | 'ui' | 'open' | 'uiBase' | 'snapshotFormat' | 'resolveSnapshotPath' | 'passWithNoTests' | 'onConsoleLog' | 'onStackTrace' | 'dangerouslyIgnoreUnhandledErrors' | 'slowTestThreshold' | 'inspect' | 'inspectBrk' | 'deps' | 'coverage'> & {
2783
+ type ProjectConfig = Omit<UserConfig, 'sequencer' | 'shard' | 'watch' | 'run' | 'cache' | 'update' | 'reporters' | 'outputFile' | 'poolOptions' | 'teardownTimeout' | 'silent' | 'forceRerunTriggers' | 'testNamePattern' | 'ui' | 'open' | 'uiBase' | 'snapshotFormat' | 'resolveSnapshotPath' | 'passWithNoTests' | 'onConsoleLog' | 'onStackTrace' | 'dangerouslyIgnoreUnhandledErrors' | 'slowTestThreshold' | 'inspect' | 'inspectBrk' | 'deps' | 'coverage'> & {
2711
2784
  sequencer?: Omit<SequenceOptions, 'sequencer' | 'seed'>;
2712
2785
  deps?: Omit<DepsOptions, 'moduleDirectories'>;
2713
2786
  poolOptions?: {
@@ -2818,4 +2891,4 @@ type Context = RootAndTarget & {
2818
2891
  lastActivePath?: string;
2819
2892
  };
2820
2893
 
2821
- export { type UserWorkspaceConfig as $, type AfterSuiteRunMeta as A, type BaseCoverageOptions as B, type CoverageOptions as C, type Context as D, type Environment as E, type FakeTimerInstallOpts as F, type Pool as G, type PoolOptions as H, type HappyDOMOptions as I, type JSDOMOptions as J, type BuiltinEnvironment as K, type VitestEnvironment as L, type MockFactoryWithHelper as M, type CSSModuleScopeStrategy as N, type ApiConfig as O, type ProvidedContext as P, type EnvironmentOptions as Q, type ResolvedConfig as R, type DepsOptimizationOptions as S, type TestSequencer as T, type UserConfig as U, type VitestRunMode as V, type WorkerGlobalState as W, type TransformModePatterns as X, type InlineConfig as Y, type TypecheckConfig as Z, type ProjectConfig as _, type ResolvedCoverageOptions as a, type RunnerRPC as a0, type ContextTestEnvironment as a1, type ResolvedTestEnvironment as a2, type ResolveIdFunction as a3, type WorkerRPC as a4, type Awaitable as a5, type Nullable as a6, type Arrayable as a7, type ArgumentsType$1 as a8, type MutableArray as a9, defineWorkspace as aA, configDefaults as aB, defaultInclude as aC, defaultExclude as aD, coverageConfigDefaults as aE, extraInlineDeps as aF, DefaultReporter as aG, BasicReporter as aH, DotReporter as aI, JsonReporter$1 as aJ, VerboseReporter as aK, TapReporter as aL, JUnitReporter as aM, TapFlatReporter as aN, HangingProcessReporter as aO, GithubActionsReporter as aP, BaseReporter as aQ, ReportersMap as aR, type BuiltinReporters as aS, type BuiltinReporterOptions as aT, type JsonAssertionResult as aU, type JsonTestResult as aV, type JsonTestResults as aW, BenchmarkReportsMap as aX, type BenchmarkBuiltinReporters as aY, type Constructable as aa, type ModuleCache as ab, type EnvironmentReturn as ac, type VmEnvironmentReturn as ad, type OnServerRestartHandler as ae, type ReportContext as af, type CoverageReporter as ag, type CoverageIstanbulOptions as ah, type CoverageV8Options as ai, type CustomProviderOptions as aj, type BenchmarkUserOptions as ak, type Benchmark as al, type BenchmarkResult as am, type BenchFunction as an, type BenchmarkAPI as ao, type PendingSuiteMock as ap, type MockFactory as aq, type MockMap as ar, type UserConfigFnObject as as, type UserConfigFnPromise as at, type UserConfigFn as au, type UserConfigExport as av, type UserProjectConfigFn as aw, type UserProjectConfigExport as ax, defineConfig as ay, defineProject as az, type CoverageProvider as b, type CoverageProviderModule as c, type BirpcOptions as d, type RuntimeRPC as e, type ContextRPC as f, type WorkerContext as g, type VitestOptions as h, Vitest as i, WorkspaceProject as j, type WorkspaceSpec as k, type ProcessPool as l, VitestPackageInstaller as m, type TestSequencerConstructor as n, type BrowserProviderInitializationOptions as o, type BrowserProvider as p, type BrowserProviderOptions as q, type RuntimeConfig as r, type UserConsoleLog as s, type ModuleGraphData as t, type Reporter as u, type RawErrsMap as v, type TscErrorInfo as w, type CollectLineNumbers as x, type CollectLines as y, type RootAndTarget as z };
2894
+ export { type ProjectConfig as $, type AfterSuiteRunMeta as A, type BaseCoverageOptions as B, type CoverageOptions as C, type RootAndTarget as D, type Environment as E, type FakeTimerInstallOpts as F, type Context as G, type Pool as H, type PoolOptions as I, type JSDOMOptions as J, type HappyDOMOptions as K, type BuiltinEnvironment as L, type MockFactoryWithHelper as M, type VitestEnvironment as N, type CSSModuleScopeStrategy as O, type ProvidedContext as P, type ApiConfig as Q, type ResolvedConfig as R, type EnvironmentOptions as S, type TestSequencer as T, type UserConfig as U, type VitestRunMode as V, type WorkerGlobalState as W, type DepsOptimizationOptions as X, type TransformModePatterns as Y, type InlineConfig as Z, type TypecheckConfig as _, type ResolvedCoverageOptions as a, type BrowserConfigOptions as a0, type UserWorkspaceConfig as a1, type RunnerRPC as a2, type ContextTestEnvironment as a3, type ResolvedTestEnvironment as a4, type ResolveIdFunction as a5, type WorkerRPC as a6, type Awaitable as a7, type Nullable as a8, type Arrayable as a9, defineConfig as aA, defineProject as aB, defineWorkspace as aC, configDefaults as aD, defaultInclude as aE, defaultExclude as aF, coverageConfigDefaults as aG, extraInlineDeps as aH, DefaultReporter as aI, BasicReporter as aJ, DotReporter as aK, JsonReporter as aL, VerboseReporter as aM, TapReporter as aN, JUnitReporter as aO, TapFlatReporter as aP, HangingProcessReporter as aQ, GithubActionsReporter as aR, BaseReporter as aS, ReportersMap as aT, type BuiltinReporters as aU, type BuiltinReporterOptions as aV, type JsonAssertionResult as aW, type JsonTestResult as aX, type JsonTestResults as aY, BenchmarkReportsMap as aZ, type BenchmarkBuiltinReporters as a_, type ArgumentsType$1 as aa, type MutableArray as ab, type Constructable as ac, type ModuleCache as ad, type EnvironmentReturn as ae, type VmEnvironmentReturn as af, type OnServerRestartHandler as ag, type ReportContext as ah, type CoverageReporter as ai, type CoverageIstanbulOptions as aj, type CoverageV8Options as ak, type CustomProviderOptions as al, type BenchmarkUserOptions as am, type Benchmark as an, type BenchmarkResult as ao, type BenchFunction as ap, type BenchmarkAPI as aq, type PendingSuiteMock as ar, type MockFactory as as, type MockMap as at, type UserConfigFnObject as au, type UserConfigFnPromise as av, type UserConfigFn as aw, type UserConfigExport as ax, type UserProjectConfigFn as ay, type UserProjectConfigExport as az, type CoverageProvider as b, type CoverageProviderModule as c, type BirpcOptions as d, type RuntimeRPC as e, type ContextRPC as f, type WorkerContext as g, type VitestOptions as h, Vitest as i, WorkspaceProject as j, type WorkspaceSpec as k, type ProcessPool as l, VitestPackageInstaller as m, type TestSequencerConstructor as n, type BrowserProviderInitializationOptions as o, type BrowserProvider as p, type BrowserProviderOptions as q, type BrowserScript as r, type RuntimeConfig as s, type UserConsoleLog as t, type ModuleGraphData as u, type Reporter as v, type RawErrsMap as w, type TscErrorInfo as x, type CollectLineNumbers as y, type CollectLines as z };
@@ -1,4 +1,4 @@
1
- export { aQ as BaseReporter, aH as BasicReporter, aY as BenchmarkBuiltinReporters, aX as BenchmarkReportsMap, aT as BuiltinReporterOptions, aS as BuiltinReporters, aG as DefaultReporter, aI as DotReporter, aP as GithubActionsReporter, aO as HangingProcessReporter, aM as JUnitReporter, aU as JsonAssertionResult, aJ as JsonReporter, aV as JsonTestResult, aW as JsonTestResults, u as Reporter, aR as ReportersMap, aN as TapFlatReporter, aL as TapReporter, aK as VerboseReporter } from './reporters-BXNXFKfg.js';
1
+ export { aS as BaseReporter, aJ as BasicReporter, a_ as BenchmarkBuiltinReporters, aZ as BenchmarkReportsMap, aV as BuiltinReporterOptions, aU as BuiltinReporters, aI as DefaultReporter, aK as DotReporter, aR as GithubActionsReporter, aQ as HangingProcessReporter, aO as JUnitReporter, aW as JsonAssertionResult, aL as JsonReporter, aX as JsonTestResult, aY as JsonTestResults, v as Reporter, aT as ReportersMap, aP as TapFlatReporter, aN as TapReporter, aM as VerboseReporter } from './reporters-MGvT5U9f.js';
2
2
  import 'vite';
3
3
  import '@vitest/runner';
4
4
  import 'vite-node';
package/dist/reporters.js CHANGED
@@ -1,22 +1,22 @@
1
- export { a as BasicReporter, e as BenchmarkReportsMap, D as DefaultReporter, b as DotReporter, G as GithubActionsReporter, H as HangingProcessReporter, c as JUnitReporter, J as JsonReporter, R as ReportersMap, d as TapFlatReporter, T as TapReporter, V as VerboseReporter } from './vendor/index.X7lgIMc_.js';
1
+ export { a as BasicReporter, e as BenchmarkReportsMap, D as DefaultReporter, b as DotReporter, G as GithubActionsReporter, H as HangingProcessReporter, c as JUnitReporter, J as JsonReporter, R as ReportersMap, d as TapFlatReporter, T as TapReporter, V as VerboseReporter } from './vendor/index.CRxYS9H3.js';
2
2
  import 'node:fs';
3
+ import 'picocolors';
3
4
  import 'pathe';
5
+ import './vendor/tasks.WC7M-K-v.js';
4
6
  import '@vitest/runner/utils';
5
7
  import '@vitest/utils';
6
- import './vendor/env.AtSIuHFg.js';
8
+ import './vendor/env.bmJgw1qP.js';
7
9
  import 'std-env';
8
- import 'picocolors';
9
- import './vendor/tasks.IknbGB2n.js';
10
- import './vendor/utils.VYmeMh-u.js';
11
- import './vendor/base.Xt0Omgh7.js';
10
+ import './vendor/utils.D5gGkwyH.js';
11
+ import './vendor/base._gnK9Slw.js';
12
12
  import 'node:perf_hooks';
13
- import './vendor/index.SMVOaj7F.js';
14
- import './vendor/global.CkGT_TMy.js';
15
- import './chunks/runtime-console.EO5ha7qv.js';
13
+ import './vendor/index._7XLd8Kd.js';
14
+ import './vendor/global.7bFbnyXl.js';
15
+ import './chunks/runtime-console.CUES-L8X.js';
16
16
  import 'node:stream';
17
17
  import 'node:console';
18
18
  import 'node:path';
19
- import './vendor/date.Ns1pGd_X.js';
19
+ import './vendor/date.BKM1wewY.js';
20
20
  import '@vitest/utils/source-map';
21
21
  import 'node:os';
22
22
  import 'node:fs/promises';
@@ -26,9 +26,8 @@ import 'path';
26
26
  import 'fs';
27
27
  import 'module';
28
28
  import 'vite';
29
- import 'acorn-walk';
30
29
  import 'node:process';
31
- import './vendor/_commonjsHelpers.jjO7Zipk.js';
30
+ import './vendor/_commonjsHelpers.BFTU3MAI.js';
32
31
  import 'assert';
33
32
  import 'events';
34
33
  import 'node:crypto';