vitest 4.1.4 → 5.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 (55) hide show
  1. package/dist/browser.d.ts +4 -4
  2. package/dist/browser.js +2 -2
  3. package/dist/chunks/{base.Cv_yNPUJ.js → base.CgusHodA.js} +8 -8
  4. package/dist/chunks/{browser.d.C0zGu1u9.d.ts → browser.d.Bn-qMB1Y.d.ts} +2 -2
  5. package/dist/chunks/{cac.wyYWMVI-.js → cac.DSVGM2li.js} +18 -7
  6. package/dist/chunks/{cli-api.lDy4N9kC.js → cli-api.MLtHkHGf.js} +88 -23
  7. package/dist/chunks/{config.d.ChUh6-ad.d.ts → config.d.BgVe1oN5.d.ts} +12 -1
  8. package/dist/chunks/{coverage.Da5gzbsu.js → coverage.nIKqs-BM.js} +38 -8
  9. package/dist/chunks/{defaults.9aQKnqFk.js → defaults.pr789SUS.js} +1 -0
  10. package/dist/chunks/{global.d.D74z04P1.d.ts → global.d.DVsSRdQ5.d.ts} +1 -1
  11. package/dist/chunks/{globals.BVDtJR67.js → globals.BYX6Co2c.js} +2 -2
  12. package/dist/chunks/{index.C3MK_gXn.js → index.BSgubW8K.js} +2 -2
  13. package/dist/chunks/{index.C-zNJvRx.js → index.BcGySndd.js} +1 -1
  14. package/dist/chunks/{index.BCY_7LL2.js → index.CesbTg1C.js} +9 -9
  15. package/dist/chunks/{index.BMXTnDNz.js → index.yJ2D83a4.js} +32 -30
  16. package/dist/chunks/{init-forks.UV3ZQGQH.js → init-forks.DuteEWBS.js} +1 -1
  17. package/dist/chunks/{init-threads.D3eCsY76.js → init-threads.BSdvBCTO.js} +1 -1
  18. package/dist/chunks/{init.D98-gwRW.js → init.Dc7N0jh0.js} +1 -1
  19. package/dist/chunks/{nativeModuleMocker.BRN2oBJd.js → nativeModuleMocker.BKN7j4tC.js} +1 -1
  20. package/dist/chunks/{nativeModuleRunner.BIakptoF.js → nativeModuleRunner.WlMdOB52.js} +1 -1
  21. package/dist/chunks/{plugin.d.CEihBODF.d.ts → plugin.d.BkNgFMgP.d.ts} +1 -1
  22. package/dist/chunks/{reporters.d.BwkR0iL5.d.ts → reporters.d.GtfMm3Oa.d.ts} +206 -20
  23. package/dist/chunks/{rpc.d.BFMWpdph.d.ts → rpc.d.B_8sPU0w.d.ts} +2 -44
  24. package/dist/chunks/{setup-common.BDwxwUWG.js → setup-common.CYy2gJEr.js} +1 -1
  25. package/dist/chunks/{startVitestModuleRunner.bRl2_oI_.js → startVitestModuleRunner.vRT958-n.js} +2 -2
  26. package/dist/chunks/{test.D1JkM1w4.js → test.C8WyxAQk.js} +3 -2
  27. package/dist/chunks/traces.d.D2T_R8rx.d.ts +60 -0
  28. package/dist/chunks/{utils.BS4fH3nR.js → utils.DzYdXqCH.js} +2 -3
  29. package/dist/chunks/{vm.DVLYObm9.js → vm.CPtbsAeh.js} +5 -5
  30. package/dist/chunks/{worker.d.CckNUvI5.d.ts → worker.d.irleQtmS.d.ts} +2 -2
  31. package/dist/cli.js +1 -1
  32. package/dist/config.cjs +1 -0
  33. package/dist/config.d.ts +12 -10
  34. package/dist/config.js +1 -1
  35. package/dist/coverage.d.ts +9 -7
  36. package/dist/coverage.js +5 -4
  37. package/dist/index.d.ts +15 -12
  38. package/dist/index.js +2 -2
  39. package/dist/module-evaluator.d.ts +2 -2
  40. package/dist/node.d.ts +11 -10
  41. package/dist/node.js +11 -11
  42. package/dist/reporters.d.ts +9 -8
  43. package/dist/reporters.js +4 -4
  44. package/dist/runners.d.ts +2 -2
  45. package/dist/runners.js +1 -1
  46. package/dist/runtime.js +1 -1
  47. package/dist/worker.d.ts +4 -4
  48. package/dist/worker.js +9 -9
  49. package/dist/workers/forks.js +10 -10
  50. package/dist/workers/runVmTests.js +4 -4
  51. package/dist/workers/threads.js +10 -10
  52. package/dist/workers/vmForks.js +4 -4
  53. package/dist/workers/vmThreads.js +4 -4
  54. package/package.json +14 -14
  55. package/dist/chunks/traces.d.402V_yFI.d.ts +0 -18
@@ -1,4 +1,4 @@
1
- import fs from 'node:fs';
1
+ import fs__default from 'node:fs';
2
2
  import { isBareImport } from '@vitest/utils/helpers';
3
3
  import { i as isBuiltin, a as isBrowserExternal, t as toBuiltin } from './modules.BJuCwlRJ.js';
4
4
  import { E as EnvironmentTeardownError, a as getSafeWorkerState } from './utils.BX5Fg8C4.js';
@@ -626,7 +626,7 @@ function getCachedVitestImport(id, state) {
626
626
  return null;
627
627
  }
628
628
 
629
- const { readFileSync } = fs;
629
+ const { readFileSync } = fs__default;
630
630
  const VITEST_VM_CONTEXT_SYMBOL = "__vitest_vm_context__";
631
631
  const cwd = process.cwd();
632
632
  const isWindows = process.platform === "win32";
@@ -1,4 +1,4 @@
1
- import { getCurrentTest, updateTask, createTaskCollector, getCurrentSuite, getHooks, getFn } from '@vitest/runner';
1
+ import { TestSyntaxError, getCurrentTest, updateTask, createTaskCollector, getCurrentSuite, getHooks, getFn } from '@vitest/runner';
2
2
  import { assertTypes, createSimpleStackTrace, createDefer } from '@vitest/utils/helpers';
3
3
  import { getSafeTimers, delay } from '@vitest/utils/timers';
4
4
  import { a as getBenchOptions, g as getBenchFn } from './benchmark.CX_oY03V.js';
@@ -3552,7 +3552,7 @@ function createVitest() {
3552
3552
  waitUntil,
3553
3553
  defineHelper: (fn) => {
3554
3554
  return function __VITEST_HELPER__(...args) {
3555
- const result = fn(...args);
3555
+ const result = fn.apply(this, args);
3556
3556
  if (result && typeof result === "object" && typeof result.then === "function") return (async function __VITEST_HELPER__() {
3557
3557
  return await result;
3558
3558
  })();
@@ -3873,6 +3873,7 @@ function getAssertionName(assertion) {
3873
3873
  function getTest(obj) {
3874
3874
  const test = chai.util.flag(obj, "vitest-test");
3875
3875
  if (!test) throw new Error(`'${getAssertionName(obj)}' cannot be used without test context`);
3876
+ if (test.fails) throw new TestSyntaxError(`'${getAssertionName(obj)}' cannot be used with 'test.fails'`);
3876
3877
  return test;
3877
3878
  }
3878
3879
  function validateAssertion(assertion) {
@@ -0,0 +1,60 @@
1
+ interface AfterSuiteRunMeta {
2
+ coverage?: unknown;
3
+ testFiles: string[];
4
+ environment: string;
5
+ projectName?: string;
6
+ }
7
+ interface UserConsoleLog {
8
+ content: string;
9
+ origin?: string;
10
+ browser?: boolean;
11
+ type: "stdout" | "stderr";
12
+ taskId?: string;
13
+ time: number;
14
+ size: number;
15
+ }
16
+ interface ModuleGraphData {
17
+ graph: Record<string, string[]>;
18
+ externalized: string[];
19
+ inlined: string[];
20
+ }
21
+ interface ProvidedContext {}
22
+ interface ResolveFunctionResult {
23
+ id: string;
24
+ file: string;
25
+ url: string;
26
+ }
27
+ interface FetchCachedFileSystemResult {
28
+ cached: true;
29
+ tmp: string;
30
+ id: string;
31
+ file: string | null;
32
+ url: string;
33
+ invalidate: boolean;
34
+ }
35
+ type LabelColor = "black" | "red" | "green" | "yellow" | "blue" | "magenta" | "cyan" | "white";
36
+ interface AsyncLeak {
37
+ filename: string;
38
+ projectName: string;
39
+ stack: string;
40
+ type: string;
41
+ }
42
+
43
+ interface OTELCarrier {
44
+ traceparent?: string;
45
+ tracestate?: string;
46
+ }
47
+ interface TracesOptions {
48
+ enabled: boolean;
49
+ watchMode?: boolean;
50
+ sdkPath?: string;
51
+ tracerName?: string;
52
+ }
53
+ declare class Traces {
54
+ #private;
55
+ constructor(options: TracesOptions);
56
+ isEnabled(): boolean;
57
+ }
58
+
59
+ export { Traces as T };
60
+ export type { AsyncLeak as A, FetchCachedFileSystemResult as F, LabelColor as L, ModuleGraphData as M, OTELCarrier as O, ProvidedContext as P, ResolveFunctionResult as R, UserConsoleLog as U, AfterSuiteRunMeta as a };
@@ -1,4 +1,5 @@
1
1
  import { stripVTControlCharacters } from 'node:util';
2
+ import { truncateString as truncateString$1 } from '@vitest/utils/display';
2
3
  import { slash } from '@vitest/utils/helpers';
3
4
  import { isAbsolute, relative, dirname, basename } from 'pathe';
4
5
  import c from 'tinyrainbow';
@@ -144,9 +145,7 @@ function padSummaryTitle(str) {
144
145
  return c.dim(`${str.padStart(11)} `);
145
146
  }
146
147
  function truncateString(text, maxLength) {
147
- const plainText = stripVTControlCharacters(text);
148
- if (plainText.length <= maxLength) return text;
149
- return `${plainText.slice(0, maxLength - 1)}…`;
148
+ return truncateString$1(stripVTControlCharacters(text), maxLength);
150
149
  }
151
150
  function capitalize(text) {
152
151
  return `${text[0].toUpperCase()}${text.slice(1)}`;
@@ -1,17 +1,17 @@
1
1
  import { fileURLToPath, pathToFileURL } from 'node:url';
2
2
  import vm, { isContext, runInContext } from 'node:vm';
3
3
  import { dirname, basename, extname, normalize, resolve } from 'pathe';
4
- import { l as loadEnvironment, a as listenForErrors, e as emitModuleRunner } from './init.D98-gwRW.js';
4
+ import { l as loadEnvironment, a as listenForErrors, e as emitModuleRunner } from './init.Dc7N0jh0.js';
5
5
  import { distDir } from '../path.js';
6
6
  import { createCustomConsole } from './console.3WNpx0tS.js';
7
- import fs from 'node:fs';
7
+ import fs__default from 'node:fs';
8
8
  import { createRequire, Module, isBuiltin } from 'node:module';
9
9
  import { toArray, splitFileAndPostfix, isBareImport } from '@vitest/utils/helpers';
10
10
  import { findNearestPackageData } from '@vitest/utils/resolver';
11
11
  import { dirname as dirname$1 } from 'node:path';
12
12
  import { CSS_LANGS_RE, KNOWN_ASSET_RE } from '@vitest/utils/constants';
13
13
  import { getDefaultRequestStubs } from '../module-evaluator.js';
14
- import { s as startVitestModuleRunner, V as VITEST_VM_CONTEXT_SYMBOL, c as createNodeImportMeta } from './startVitestModuleRunner.bRl2_oI_.js';
14
+ import { s as startVitestModuleRunner, V as VITEST_VM_CONTEXT_SYMBOL, c as createNodeImportMeta } from './startVitestModuleRunner.vRT958-n.js';
15
15
  import { p as provideWorkerState } from './utils.BX5Fg8C4.js';
16
16
 
17
17
  function interopCommonJsModule(interopDefault, mod) {
@@ -551,7 +551,7 @@ class ViteExecutor {
551
551
  };
552
552
  }
553
553
 
554
- const { existsSync } = fs;
554
+ const { existsSync } = fs__default;
555
555
  // always defined when we use vm pool
556
556
  const nativeResolve = import.meta.resolve;
557
557
  // TODO: improve Node.js strict mode support in #2854
@@ -675,7 +675,7 @@ class ExternalModulesExecutor {
675
675
  }
676
676
  }
677
677
 
678
- const { promises, readFileSync } = fs;
678
+ const { promises, readFileSync } = fs__default;
679
679
  class FileMap {
680
680
  fsCache = /* @__PURE__ */ new Map();
681
681
  fsBufferCache = /* @__PURE__ */ new Map();
@@ -1,8 +1,8 @@
1
1
  import { FileSpecification, Task, CancelReason } from '@vitest/runner';
2
2
  import { EvaluatedModules } from 'vite/module-runner';
3
- import { S as SerializedConfig } from './config.d.ChUh6-ad.js';
3
+ import { S as SerializedConfig } from './config.d.BgVe1oN5.js';
4
4
  import { E as Environment } from './environment.d.CrsxCzP1.js';
5
- import { R as RuntimeRPC, a as RunnerRPC } from './rpc.d.BFMWpdph.js';
5
+ import { R as RuntimeRPC, a as RunnerRPC } from './rpc.d.B_8sPU0w.js';
6
6
 
7
7
  //#region src/messages.d.ts
8
8
  declare const TYPE_REQUEST: "q";
package/dist/cli.js CHANGED
@@ -1,4 +1,4 @@
1
- import { c as createCLI } from './chunks/cac.wyYWMVI-.js';
1
+ import { c as createCLI } from './chunks/cac.DSVGM2li.js';
2
2
  import '@vitest/utils/helpers';
3
3
  import 'events';
4
4
  import 'pathe';
package/dist/config.cjs CHANGED
@@ -79,6 +79,7 @@ const configDefaults = Object.freeze({
79
79
  exclude: defaultExclude
80
80
  },
81
81
  slowTestThreshold: 300,
82
+ taskTitleValueFormatTruncate: 40,
82
83
  disableConsoleIntercept: false,
83
84
  detectAsyncLeaks: false
84
85
  });
package/dist/config.d.ts CHANGED
@@ -1,19 +1,20 @@
1
1
  import { HookHandler, UserConfig, ConfigEnv } from 'vite';
2
2
  export { ConfigEnv, Plugin, UserConfig as ViteUserConfig, mergeConfig } from 'vite';
3
- import { I as InlineConfig, C as CoverageOptions, F as FieldsWithDefaultValues, U as UserWorkspaceConfig, b as UserProjectConfigFn, c as UserProjectConfigExport } from './chunks/reporters.d.BwkR0iL5.js';
4
- export { a as TestProjectConfiguration, d as TestProjectInlineConfiguration, e as TestUserConfig, W as WatcherTriggerPattern } from './chunks/reporters.d.BwkR0iL5.js';
5
- import { V as VitestPluginContext } from './chunks/plugin.d.CEihBODF.js';
6
- import { F as FakeTimerInstallOpts } from './chunks/config.d.ChUh6-ad.js';
3
+ import { I as InlineConfig, C as CoverageOptions, F as FieldsWithDefaultValues, U as UserWorkspaceConfig, b as UserProjectConfigFn, c as UserProjectConfigExport } from './chunks/reporters.d.GtfMm3Oa.js';
4
+ export { a as TestProjectConfiguration, d as TestProjectInlineConfiguration, e as TestUserConfig, W as WatcherTriggerPattern } from './chunks/reporters.d.GtfMm3Oa.js';
5
+ import { V as VitestPluginContext } from './chunks/plugin.d.BkNgFMgP.js';
6
+ import { F as FakeTimerInstallOpts } from './chunks/config.d.BgVe1oN5.js';
7
7
  export { TestTagDefinition } from '@vitest/runner';
8
8
  import '@vitest/utils';
9
- import './chunks/rpc.d.BFMWpdph.js';
10
- import '@vitest/snapshot';
11
- import 'vite/module-runner';
12
- import './chunks/traces.d.402V_yFI.js';
9
+ import './chunks/traces.d.D2T_R8rx.js';
13
10
  import 'node:stream';
14
- import './chunks/browser.d.C0zGu1u9.js';
15
- import './chunks/worker.d.CckNUvI5.js';
11
+ import './chunks/browser.d.Bn-qMB1Y.js';
12
+ import './chunks/worker.d.irleQtmS.js';
13
+ import 'vite/module-runner';
16
14
  import './chunks/environment.d.CrsxCzP1.js';
15
+ import './chunks/rpc.d.B_8sPU0w.js';
16
+ import '@vitest/snapshot';
17
+ import 'node:fs/promises';
17
18
  import '@vitest/pretty-format';
18
19
  import '@vitest/utils/diff';
19
20
  import '@vitest/expect';
@@ -83,6 +84,7 @@ declare const configDefaults: Readonly<{
83
84
  exclude: string[];
84
85
  };
85
86
  slowTestThreshold: number;
87
+ taskTitleValueFormatTruncate: number;
86
88
  disableConsoleIntercept: boolean;
87
89
  detectAsyncLeaks: boolean;
88
90
  }>;
package/dist/config.js CHANGED
@@ -1,4 +1,4 @@
1
- export { c as configDefaults, a as coverageConfigDefaults, d as defaultExclude, b as defaultInclude } from './chunks/defaults.9aQKnqFk.js';
1
+ export { c as configDefaults, a as coverageConfigDefaults, d as defaultExclude, b as defaultInclude } from './chunks/defaults.pr789SUS.js';
2
2
  export { mergeConfig } from 'vite';
3
3
  export { d as defaultBrowserPort } from './chunks/constants.CPYnjOGj.js';
4
4
  import 'node:os';
@@ -1,18 +1,19 @@
1
- import { V as Vitest, at as ResolvedCoverageOptions, aZ as CoverageMap, am as ReportContext, T as TestProject } from './chunks/reporters.d.BwkR0iL5.js';
1
+ import { V as Vitest, aw as ResolvedCoverageOptions, b0 as CoverageMap, ap as ReportContext, T as TestProject } from './chunks/reporters.d.GtfMm3Oa.js';
2
2
  import { TransformResult } from 'vite';
3
- import { A as AfterSuiteRunMeta } from './chunks/rpc.d.BFMWpdph.js';
3
+ import { a as AfterSuiteRunMeta } from './chunks/traces.d.D2T_R8rx.js';
4
4
  import '@vitest/runner';
5
5
  import '@vitest/utils';
6
6
  import 'node:stream';
7
- import './chunks/browser.d.C0zGu1u9.js';
8
- import './chunks/traces.d.402V_yFI.js';
9
- import './chunks/worker.d.CckNUvI5.js';
10
- import 'vite/module-runner';
11
- import './chunks/config.d.ChUh6-ad.js';
7
+ import './chunks/config.d.BgVe1oN5.js';
12
8
  import '@vitest/pretty-format';
13
9
  import '@vitest/snapshot';
14
10
  import '@vitest/utils/diff';
11
+ import './chunks/browser.d.Bn-qMB1Y.js';
12
+ import './chunks/worker.d.irleQtmS.js';
13
+ import 'vite/module-runner';
15
14
  import './chunks/environment.d.CrsxCzP1.js';
15
+ import './chunks/rpc.d.B_8sPU0w.js';
16
+ import 'node:fs/promises';
16
17
  import '@vitest/expect';
17
18
  import 'vitest/optional-types.js';
18
19
  import './chunks/benchmark.d.DAaHLpsq.js';
@@ -79,6 +80,7 @@ declare class BaseCoverageProvider {
79
80
  }>;
80
81
  resolveOptions(): ResolvedCoverageOptions;
81
82
  clean(clean?: boolean): Promise<void>;
83
+ private normalizeCoverageFileError;
82
84
  onAfterSuiteRun({ coverage, environment, projectName, testFiles }: AfterSuiteRunMeta): void;
83
85
  readCoverageFiles<CoverageType>({ onFileRead, onFinished, onDebug }: {
84
86
  /** Callback invoked with a single coverage result */
package/dist/coverage.js CHANGED
@@ -1,4 +1,4 @@
1
- export { B as BaseCoverageProvider } from './chunks/coverage.Da5gzbsu.js';
1
+ export { B as BaseCoverageProvider } from './chunks/coverage.nIKqs-BM.js';
2
2
  import 'node:fs';
3
3
  import 'node:module';
4
4
  import 'node:path';
@@ -8,12 +8,12 @@ import 'pathe';
8
8
  import 'picomatch';
9
9
  import 'tinyglobby';
10
10
  import 'tinyrainbow';
11
- import './chunks/defaults.9aQKnqFk.js';
11
+ import './chunks/defaults.pr789SUS.js';
12
12
  import 'node:os';
13
13
  import './chunks/env.D4Lgay0q.js';
14
14
  import 'std-env';
15
15
  import 'node:crypto';
16
- import './chunks/index.BCY_7LL2.js';
16
+ import './chunks/index.CesbTg1C.js';
17
17
  import 'node:process';
18
18
  import 'node:fs/promises';
19
19
  import 'node:assert';
@@ -21,7 +21,8 @@ import 'node:v8';
21
21
  import 'node:util';
22
22
  import 'vite';
23
23
  import './chunks/constants.CPYnjOGj.js';
24
- import './chunks/utils.BS4fH3nR.js';
24
+ import './chunks/utils.DzYdXqCH.js';
25
+ import '@vitest/utils/display';
25
26
  import './chunks/coverage.CTzCuANN.js';
26
27
 
27
28
  console.warn("Importing from \"vitest/coverage\" is deprecated since Vitest 4.1. Please use \"vitest/node\" instead.");
package/dist/index.d.ts CHANGED
@@ -1,16 +1,16 @@
1
- import { M as ModuleDefinitionDurationsDiagnostic, U as UntrackedModuleDefinitionDiagnostic, S as SerializedTestSpecification, a as ModuleDefinitionDiagnostic, b as ModuleDefinitionLocation, c as SourceModuleDiagnostic, d as SourceModuleLocations } from './chunks/browser.d.C0zGu1u9.js';
2
- export { B as BrowserTesterOptions } from './chunks/browser.d.C0zGu1u9.js';
3
- import './chunks/global.d.D74z04P1.js';
1
+ import { M as ModuleDefinitionDurationsDiagnostic, U as UntrackedModuleDefinitionDiagnostic, S as SerializedTestSpecification, a as ModuleDefinitionDiagnostic, b as ModuleDefinitionLocation, c as SourceModuleDiagnostic, d as SourceModuleLocations } from './chunks/browser.d.Bn-qMB1Y.js';
2
+ export { B as BrowserTesterOptions } from './chunks/browser.d.Bn-qMB1Y.js';
3
+ import './chunks/global.d.DVsSRdQ5.js';
4
4
  import { File, TestAnnotation, TestArtifact, TaskResultPack, TaskEventPack, Test, TaskPopulated } from '@vitest/runner';
5
5
  export { CancelReason, ImportDuration, OnTestFailedHandler, OnTestFinishedHandler, RunMode, Task as RunnerTask, TaskBase as RunnerTaskBase, TaskEventPack as RunnerTaskEventPack, TaskResult as RunnerTaskResult, TaskResultPack as RunnerTaskResultPack, Test as RunnerTestCase, File as RunnerTestFile, Suite as RunnerTestSuite, SuiteAPI, SuiteCollector, SuiteFactory, SuiteOptions, TaskCustomOptions, TaskMeta, TaskState, TestAPI, TestAnnotation, TestAnnotationArtifact, TestArtifact, TestArtifactBase, TestArtifactLocation, TestArtifactRegistry, TestAttachment, TestContext, TestFunction, TestOptions, VitestRunnerConfig as TestRunnerConfig, TestTags, VitestRunner as VitestTestRunner, afterAll, afterEach, aroundAll, aroundEach, beforeAll, beforeEach, describe, it, onTestFailed, onTestFinished, recordArtifact, suite, test } from '@vitest/runner';
6
6
  import { Awaitable } from '@vitest/utils';
7
7
  export { ParsedStack, SerializedError, TestError } from '@vitest/utils';
8
- import { b as BirpcReturn } from './chunks/worker.d.CckNUvI5.js';
9
- export { C as ContextRPC, c as ContextTestEnvironment, T as TestExecutionMethod, W as WorkerGlobalState } from './chunks/worker.d.CckNUvI5.js';
10
- import { S as SerializedConfig, F as FakeTimerInstallOpts, R as RuntimeOptions } from './chunks/config.d.ChUh6-ad.js';
11
- export { b as RuntimeConfig, a as SerializedCoverageConfig } from './chunks/config.d.ChUh6-ad.js';
12
- import { U as UserConsoleLog, L as LabelColor, M as ModuleGraphData, P as ProvidedContext } from './chunks/rpc.d.BFMWpdph.js';
13
- export { A as AfterSuiteRunMeta, a as RunnerRPC, R as RuntimeRPC } from './chunks/rpc.d.BFMWpdph.js';
8
+ import { b as BirpcReturn } from './chunks/worker.d.irleQtmS.js';
9
+ export { C as ContextRPC, c as ContextTestEnvironment, T as TestExecutionMethod, W as WorkerGlobalState } from './chunks/worker.d.irleQtmS.js';
10
+ import { b as SerializedRootConfig, F as FakeTimerInstallOpts, R as RuntimeOptions } from './chunks/config.d.BgVe1oN5.js';
11
+ export { c as RuntimeConfig, S as SerializedConfig, a as SerializedCoverageConfig } from './chunks/config.d.BgVe1oN5.js';
12
+ import { U as UserConsoleLog, L as LabelColor, M as ModuleGraphData, P as ProvidedContext } from './chunks/traces.d.D2T_R8rx.js';
13
+ export { a as AfterSuiteRunMeta } from './chunks/traces.d.D2T_R8rx.js';
14
14
  import { ExpectStatic, MatcherState, SyncExpectationResult, AsyncExpectationResult, ExpectationResult } from '@vitest/expect';
15
15
  export { Assertion, AsymmetricMatchersContaining, DeeplyAllowMatchers, ExpectPollOptions, ExpectStatic, JestAssertion, RawMatcherFn as Matcher, ExpectationResult as MatcherResult, MatcherState, Matchers, chai } from '@vitest/expect';
16
16
  import { DomainSnapshotAdapter } from '@vitest/snapshot';
@@ -24,9 +24,9 @@ export { V as EvaluatedModules } from './chunks/evaluatedModules.d.BxJ5omdx.js';
24
24
  export { NodeBenchmarkRunner as BenchmarkRunner, VitestTestRunner as TestRunner } from './runners.js';
25
25
  export { a as BenchFunction, b as Benchmark, c as BenchmarkAPI, B as BenchmarkResult } from './chunks/benchmark.d.DAaHLpsq.js';
26
26
  export { ExpectTypeOf, expectTypeOf } from 'expect-type';
27
+ export { a as RunnerRPC, R as RuntimeRPC } from './chunks/rpc.d.B_8sPU0w.js';
27
28
  export { DiffOptions } from '@vitest/utils/diff';
28
29
  export { Bench as BenchFactory, Options as BenchOptions, Task as BenchTask, TaskResult as BenchTaskResult } from 'tinybench';
29
- import './chunks/traces.d.402V_yFI.js';
30
30
  import '@vitest/pretty-format';
31
31
  import 'vite/module-runner';
32
32
  import './chunks/environment.d.CrsxCzP1.js';
@@ -62,7 +62,10 @@ interface WebSocketHandlers {
62
62
  getFiles: () => File[];
63
63
  getTestFiles: () => Promise<SerializedTestSpecification[]>;
64
64
  getPaths: () => string[];
65
- getConfig: () => SerializedConfig;
65
+ getConfig: () => SerializedRootConfig;
66
+ /**
67
+ * @deprecated Use `getConfig().projects` instead.
68
+ */
66
69
  getResolvedProjectLabels: () => {
67
70
  name: string;
68
71
  color?: LabelColor;
@@ -635,5 +638,5 @@ declare namespace Experimental {
635
638
  export { ModuleDefinitionDiagnostic, ModuleDefinitionDurationsDiagnostic, ModuleDefinitionLocation, SourceModuleDiagnostic, SourceModuleLocations, UntrackedModuleDefinitionDiagnostic };
636
639
  }
637
640
 
638
- export { Experimental, LabelColor, ModuleGraphData, ProvidedContext, SerializedConfig, SerializedTestSpecification, Snapshots, UserConsoleLog, assert, assertType, createExpect, globalExpect as expect, inject, should, vi, vitest };
641
+ export { Experimental, LabelColor, ModuleGraphData, ProvidedContext, SerializedRootConfig, SerializedTestSpecification, Snapshots, UserConsoleLog, assert, assertType, createExpect, globalExpect as expect, inject, should, vi, vitest };
639
642
  export type { AssertType, BrowserUI, ExternalResult, TransformResultWithSource, VitestUtils, WebSocketEvents, WebSocketHandlers, WebSocketRPC };
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
- export { N as BenchmarkRunner, S as Snapshots, T as TestRunner, a as assert, c as createExpect, g as expect, i as inject, s as should, v as vi, b as vitest } from './chunks/test.D1JkM1w4.js';
1
+ export { N as BenchmarkRunner, S as Snapshots, T as TestRunner, a as assert, c as createExpect, g as expect, i as inject, s as should, v as vi, b as vitest } from './chunks/test.C8WyxAQk.js';
2
2
  export { b as bench } from './chunks/benchmark.CX_oY03V.js';
3
3
  export { V as EvaluatedModules } from './chunks/evaluatedModules.Dg1zASAC.js';
4
- export { a as assertType } from './chunks/index.C-zNJvRx.js';
4
+ export { a as assertType } from './chunks/index.BcGySndd.js';
5
5
  export { expectTypeOf } from 'expect-type';
6
6
  export { afterAll, afterEach, aroundAll, aroundEach, beforeAll, beforeEach, describe, it, onTestFailed, onTestFinished, recordArtifact, suite, test } from '@vitest/runner';
7
7
  export { chai } from '@vitest/expect';
@@ -1,10 +1,10 @@
1
1
  import { ModuleEvaluator, ModuleRunnerImportMeta, ModuleRunnerContext, EvaluatedModuleNode } from 'vite/module-runner';
2
2
  import { V as VitestEvaluatedModules } from './chunks/evaluatedModules.d.BxJ5omdx.js';
3
3
  import vm from 'node:vm';
4
- import { R as RuntimeRPC } from './chunks/rpc.d.BFMWpdph.js';
4
+ import { R as RuntimeRPC } from './chunks/rpc.d.B_8sPU0w.js';
5
5
  import '@vitest/runner';
6
6
  import '@vitest/snapshot';
7
- import './chunks/traces.d.402V_yFI.js';
7
+ import './chunks/traces.d.D2T_R8rx.js';
8
8
 
9
9
  type ModuleExecutionInfo = Map<string, ModuleExecutionInfoEntry>;
10
10
  interface ModuleExecutionInfoEntry {
package/dist/node.d.ts CHANGED
@@ -3,24 +3,25 @@ import { InlineConfig, UserConfig as UserConfig$1, Plugin, ResolvedConfig as Res
3
3
  export { vite as Vite };
4
4
  export { esbuildVersion, isCSSRequest, isFileLoadingAllowed, parseAst, parseAstAsync, rollupVersion, version as viteVersion } from 'vite';
5
5
  import { IncomingMessage } from 'node:http';
6
- import { R as ResolvedConfig, e as UserConfig, f as VitestRunMode, g as VitestOptions, V as Vitest, A as ApiConfig, L as Logger, h as TestSpecification, T as TestProject, P as PoolWorker, i as PoolOptions, j as WorkerRequest, k as TestSequencer } from './chunks/reporters.d.BwkR0iL5.js';
7
- export { l as AgentReporter, B as BaseCoverageOptions, m as BaseReporter, n as BenchmarkBuiltinReporters, o as BenchmarkReporter, p as BenchmarkReportsMap, q as BenchmarkUserOptions, r as BrowserBuiltinProvider, s as BrowserCommand, t as BrowserCommandContext, u as BrowserConfigOptions, v as BrowserInstanceOption, w as BrowserModuleMocker, x as BrowserOrchestrator, y as BrowserProvider, z as BrowserProviderOption, D as BrowserScript, E as BrowserServerFactory, G as BrowserServerOptions, H as BrowserServerState, J as BrowserServerStateSession, K as BuiltinEnvironment, M as BuiltinReporterOptions, N as BuiltinReporters, O as CSSModuleScopeStrategy, Q as CoverageIstanbulOptions, C as CoverageOptions, S as CoverageProvider, X as CoverageProviderModule, Y as CoverageReporter, Z as CoverageV8Options, _ as CustomProviderOptions, $ as DefaultReporter, a0 as DepsOptimizationOptions, a1 as DotReporter, a2 as EnvironmentOptions, a3 as GithubActionsReporter, a4 as HTMLOptions, a5 as HangingProcessReporter, I as InlineConfig, a6 as JUnitOptions, a7 as JUnitReporter, a8 as JsonAssertionResult, a9 as JsonOptions, aa as JsonReporter, ab as JsonTestResult, ac as JsonTestResults, ad as ModuleDiagnostic, ae as OnServerRestartHandler, af as OnTestsRerunHandler, ag as ParentProjectBrowser, ah as Pool, ai as PoolRunnerInitializer, aj as PoolTask, ak as ProjectBrowser, al as ProjectConfig, am as ReportContext, an as ReportedHookContext, ao as Reporter, ap as ReportersMap, aq as ResolveSnapshotPathHandler, ar as ResolveSnapshotPathHandlerContext, as as ResolvedBrowserOptions, at as ResolvedCoverageOptions, au as ResolvedProjectConfig, av as SerializedTestProject, aw as TapFlatReporter, ax as TapReporter, ay as TaskOptions, az as TestCase, aA as TestCollection, aB as TestDiagnostic, aC as TestModule, aD as TestModuleState, aE as TestResult, aF as TestResultFailed, aG as TestResultPassed, aH as TestResultSkipped, aI as TestRunEndReason, aJ as TestRunResult, aK as TestSequencerConstructor, aL as TestSpecificationOptions, aM as TestState, aN as TestSuite, aO as TestSuiteState, aP as ToMatchScreenshotComparators, aQ as ToMatchScreenshotOptions, aR as TypecheckConfig, U as UserWorkspaceConfig, aS as VerboseBenchmarkReporter, aT as VerboseReporter, aU as VitestEnvironment, aV as VitestPackageInstaller, W as WatcherTriggerPattern, aW as WorkerResponse, aX as _BrowserNames, aY as experimental_getRunnerTask } from './chunks/reporters.d.BwkR0iL5.js';
8
- export { C as CacheKeyIdGenerator, a as CacheKeyIdGeneratorContext, V as VitestPluginContext } from './chunks/plugin.d.CEihBODF.js';
6
+ import { R as ResolvedConfig, e as UserConfig, f as VitestRunMode, g as VitestOptions, V as Vitest, A as ApiConfig, L as Logger, h as TestSpecification, T as TestProject, P as PoolWorker, i as PoolOptions, j as WorkerRequest, k as TestSequencer } from './chunks/reporters.d.GtfMm3Oa.js';
7
+ export { M as AgentReporter, B as BaseCoverageOptions, l as BaseReporter, m as BenchmarkBuiltinReporters, n as BenchmarkReporter, o as BenchmarkReportsMap, p as BenchmarkUserOptions, q as BrowserBuiltinProvider, r as BrowserCommand, s as BrowserCommandContext, t as BrowserConfigOptions, u as BrowserInstanceOption, v as BrowserModuleMocker, w as BrowserOrchestrator, x as BrowserProvider, y as BrowserProviderOption, z as BrowserScript, D as BrowserServerFactory, E as BrowserServerOptions, G as BrowserServerState, H as BrowserServerStateSession, J as BuiltinEnvironment, K as BuiltinReporterOptions, N as BuiltinReporters, O as CSSModuleScopeStrategy, Q as CoverageInstrumenter, S as CoverageIstanbulOptions, C as CoverageOptions, X as CoverageProvider, Y as CoverageProviderModule, Z as CoverageReporter, _ as CoverageV8Options, $ as CustomProviderOptions, a0 as DefaultReporter, a1 as DepsOptimizationOptions, a2 as DotReporter, a3 as EnvironmentOptions, a4 as GithubActionsReporter, a5 as HTMLOptions, a6 as HangingProcessReporter, I as InlineConfig, a7 as InstrumenterOptions, a8 as JUnitOptions, a9 as JUnitReporter, aa as JsonAssertionResult, ab as JsonOptions, ac as JsonReporter, ad as JsonTestResult, ae as JsonTestResults, M as MinimalReporter, af as ModuleDiagnostic, ag as OnServerRestartHandler, ah as OnTestsRerunHandler, ai as ParentProjectBrowser, aj as Pool, ak as PoolRunnerInitializer, al as PoolTask, am as ProjectBrowser, an as ProjectConfig, ao as Report, ap as ReportContext, aq as ReportedHookContext, ar as Reporter, as as ReportersMap, at as ResolveSnapshotPathHandler, au as ResolveSnapshotPathHandlerContext, av as ResolvedBrowserOptions, aw as ResolvedCoverageOptions, ax as ResolvedProjectConfig, ay as SerializedTestProject, az as TapFlatReporter, aA as TapReporter, aB as TaskOptions, aC as TestCase, aD as TestCollection, aE as TestDiagnostic, aF as TestModule, aG as TestModuleState, aH as TestResult, aI as TestResultFailed, aJ as TestResultPassed, aK as TestResultSkipped, aL as TestRunEndReason, aM as TestRunResult, aN as TestSequencerConstructor, aO as TestSpecificationOptions, aP as TestState, aQ as TestSuite, aR as TestSuiteState, aS as ToMatchScreenshotComparators, aT as ToMatchScreenshotOptions, aU as TypecheckConfig, U as UserWorkspaceConfig, aV as VerboseBenchmarkReporter, aW as VerboseReporter, aX as VitestEnvironment, aY as VitestPackageInstaller, W as WatcherTriggerPattern, aZ as WorkerResponse, a_ as _BrowserNames, a$ as experimental_getRunnerTask } from './chunks/reporters.d.GtfMm3Oa.js';
8
+ export { C as CacheKeyIdGenerator, a as CacheKeyIdGeneratorContext, V as VitestPluginContext } from './chunks/plugin.d.BkNgFMgP.js';
9
9
  export { BaseCoverageProvider } from './coverage.js';
10
10
  import { Awaitable } from '@vitest/utils';
11
11
  export { SerializedError } from '@vitest/utils';
12
- import { R as RuntimeRPC } from './chunks/rpc.d.BFMWpdph.js';
12
+ import { R as RuntimeRPC } from './chunks/rpc.d.B_8sPU0w.js';
13
13
  import { Writable } from 'node:stream';
14
- import { C as ContextRPC } from './chunks/worker.d.CckNUvI5.js';
15
- export { T as TestExecutionType } from './chunks/worker.d.CckNUvI5.js';
14
+ import { C as ContextRPC } from './chunks/worker.d.irleQtmS.js';
15
+ export { T as TestExecutionType } from './chunks/worker.d.irleQtmS.js';
16
16
  import { Debugger } from 'obug';
17
- import './chunks/global.d.D74z04P1.js';
17
+ import './chunks/global.d.DVsSRdQ5.js';
18
18
  export { Task as RunnerTask, TaskResult as RunnerTaskResult, TaskResultPack as RunnerTaskResultPack, Test as RunnerTestCase, File as RunnerTestFile, Suite as RunnerTestSuite, SequenceHooks, SequenceSetupFiles } from '@vitest/runner';
19
- export { b as RuntimeConfig } from './chunks/config.d.ChUh6-ad.js';
19
+ export { c as RuntimeConfig } from './chunks/config.d.BgVe1oN5.js';
20
20
  export { generateFileHash } from '@vitest/runner/utils';
21
21
  export { CDPSession } from 'vitest/browser';
22
- import './chunks/browser.d.C0zGu1u9.js';
23
- import './chunks/traces.d.402V_yFI.js';
22
+ import './chunks/traces.d.D2T_R8rx.js';
23
+ import './chunks/browser.d.Bn-qMB1Y.js';
24
+ import 'node:fs/promises';
24
25
  import '@vitest/pretty-format';
25
26
  import '@vitest/snapshot';
26
27
  import '@vitest/utils/diff';
package/dist/node.js CHANGED
@@ -1,22 +1,22 @@
1
1
  import * as vite from 'vite';
2
2
  import { resolveConfig as resolveConfig$1, mergeConfig } from 'vite';
3
3
  export { esbuildVersion, isCSSRequest, isFileLoadingAllowed, parseAst, parseAstAsync, rollupVersion, version as viteVersion } from 'vite';
4
- import { V as Vitest, a as VitestPlugin } from './chunks/cli-api.lDy4N9kC.js';
5
- export { F as ForksPoolWorker, G as GitNotFoundError, b as TestsNotFoundError, T as ThreadsPoolWorker, c as TypecheckPoolWorker, d as VitestPackageInstaller, e as VmForksPoolWorker, f as VmThreadsPoolWorker, g as createDebugger, h as createMethodsRPC, i as createViteLogger, j as createVitest, k as escapeTestName, l as experimental_getRunnerTask, m as getFilePoolName, n as isFileServingAllowed, o as isValidApiRequest, r as registerConsoleShortcuts, p as resolveFsAllow, s as startVitest } from './chunks/cli-api.lDy4N9kC.js';
6
- export { p as parseCLI } from './chunks/cac.wyYWMVI-.js';
7
- import { r as resolveConfig$2 } from './chunks/coverage.Da5gzbsu.js';
8
- export { B as BaseCoverageProvider, a as BaseSequencer, b as resolveApiServerConfig } from './chunks/coverage.Da5gzbsu.js';
4
+ import { V as Vitest, a as VitestPlugin } from './chunks/cli-api.MLtHkHGf.js';
5
+ export { F as ForksPoolWorker, G as GitNotFoundError, b as TestsNotFoundError, T as ThreadsPoolWorker, c as TypecheckPoolWorker, d as VitestPackageInstaller, e as VmForksPoolWorker, f as VmThreadsPoolWorker, g as createDebugger, h as createMethodsRPC, i as createViteLogger, j as createVitest, k as escapeTestName, l as experimental_getRunnerTask, m as getFilePoolName, n as isFileServingAllowed, o as isValidApiRequest, r as registerConsoleShortcuts, p as resolveFsAllow, s as startVitest } from './chunks/cli-api.MLtHkHGf.js';
6
+ export { p as parseCLI } from './chunks/cac.DSVGM2li.js';
7
+ import { r as resolveConfig$2 } from './chunks/coverage.nIKqs-BM.js';
8
+ export { B as BaseCoverageProvider, a as BaseSequencer, b as resolveApiServerConfig } from './chunks/coverage.nIKqs-BM.js';
9
9
  import { slash, deepClone } from '@vitest/utils/helpers';
10
10
  import { a as any } from './chunks/index.og1WyBLx.js';
11
11
  import { resolve } from 'pathe';
12
12
  import { c as configFiles } from './chunks/constants.CPYnjOGj.js';
13
- export { A as AgentReporter, B as BenchmarkReporter, a as BenchmarkReportsMap, D as DefaultReporter, b as DotReporter, G as GithubActionsReporter, H as HangingProcessReporter, J as JUnitReporter, c as JsonReporter, R as ReportersMap, T as TapFlatReporter, d as TapReporter, V as VerboseBenchmarkReporter, e as VerboseReporter } from './chunks/index.BMXTnDNz.js';
13
+ export { M as AgentReporter, B as BenchmarkReporter, a as BenchmarkReportsMap, D as DefaultReporter, b as DotReporter, G as GithubActionsReporter, H as HangingProcessReporter, J as JUnitReporter, c as JsonReporter, M as MinimalReporter, R as ReportersMap, T as TapFlatReporter, d as TapReporter, V as VerboseBenchmarkReporter, e as VerboseReporter } from './chunks/index.yJ2D83a4.js';
14
14
  export { distDir, rootDir } from './path.js';
15
15
  export { generateFileHash } from '@vitest/runner/utils';
16
16
  import 'node:fs';
17
17
  import './chunks/coverage.CTzCuANN.js';
18
18
  import 'node:path';
19
- import './chunks/index.BCY_7LL2.js';
19
+ import './chunks/index.CesbTg1C.js';
20
20
  import 'node:module';
21
21
  import 'node:process';
22
22
  import 'node:fs/promises';
@@ -27,7 +27,7 @@ import 'node:util';
27
27
  import 'node:os';
28
28
  import '@vitest/snapshot/manager';
29
29
  import '@vitest/utils/serialize';
30
- import './chunks/nativeModuleRunner.BIakptoF.js';
30
+ import './chunks/nativeModuleRunner.WlMdOB52.js';
31
31
  import 'vite/module-runner';
32
32
  import './chunks/traces.DT5aQ62U.js';
33
33
  import 'obug';
@@ -35,7 +35,8 @@ import 'tinyrainbow';
35
35
  import '#module-evaluator';
36
36
  import 'node:console';
37
37
  import './chunks/_commonjsHelpers.D26ty3Ew.js';
38
- import './chunks/utils.BS4fH3nR.js';
38
+ import './chunks/utils.DzYdXqCH.js';
39
+ import '@vitest/utils/display';
39
40
  import './chunks/env.D4Lgay0q.js';
40
41
  import 'std-env';
41
42
  import 'node:tty';
@@ -58,7 +59,7 @@ import 'stream';
58
59
  import 'url';
59
60
  import 'zlib';
60
61
  import 'buffer';
61
- import './chunks/defaults.9aQKnqFk.js';
62
+ import './chunks/defaults.pr789SUS.js';
62
63
  import 'magic-string';
63
64
  import '@vitest/mocker/node';
64
65
  import '@vitest/utils/constants';
@@ -70,7 +71,6 @@ import 'tinyexec';
70
71
  import 'node:readline';
71
72
  import 'readline';
72
73
  import 'node:stream';
73
- import '@vitest/utils/display';
74
74
  import '@vitest/utils/offset';
75
75
 
76
76
  // this is only exported as a public function and not used inside vitest
@@ -1,18 +1,19 @@
1
- export { l as AgentReporter, m as BaseReporter, n as BenchmarkBuiltinReporters, o as BenchmarkReporter, p as BenchmarkReportsMap, M as BuiltinReporterOptions, N as BuiltinReporters, $ as DefaultReporter, a1 as DotReporter, a3 as GithubActionsReporter, a5 as HangingProcessReporter, a7 as JUnitReporter, a8 as JsonAssertionResult, aa as JsonReporter, ab as JsonTestResult, ac as JsonTestResults, an as ReportedHookContext, ao as Reporter, ap as ReportersMap, aw as TapFlatReporter, ax as TapReporter, aI as TestRunEndReason, aS as VerboseBenchmarkReporter, aT as VerboseReporter } from './chunks/reporters.d.BwkR0iL5.js';
1
+ export { M as AgentReporter, l as BaseReporter, m as BenchmarkBuiltinReporters, n as BenchmarkReporter, o as BenchmarkReportsMap, K as BuiltinReporterOptions, N as BuiltinReporters, a0 as DefaultReporter, a2 as DotReporter, a4 as GithubActionsReporter, a6 as HangingProcessReporter, a9 as JUnitReporter, aa as JsonAssertionResult, ac as JsonReporter, ad as JsonTestResult, ae as JsonTestResults, M as MinimalReporter, aq as ReportedHookContext, ar as Reporter, as as ReportersMap, az as TapFlatReporter, aA as TapReporter, aL as TestRunEndReason, aV as VerboseBenchmarkReporter, aW as VerboseReporter } from './chunks/reporters.d.GtfMm3Oa.js';
2
2
  import '@vitest/runner';
3
3
  import '@vitest/utils';
4
- import './chunks/rpc.d.BFMWpdph.js';
5
- import '@vitest/snapshot';
6
- import 'vite/module-runner';
7
- import './chunks/traces.d.402V_yFI.js';
4
+ import './chunks/traces.d.D2T_R8rx.js';
8
5
  import 'node:stream';
9
6
  import 'vite';
10
- import './chunks/browser.d.C0zGu1u9.js';
11
- import './chunks/worker.d.CckNUvI5.js';
12
- import './chunks/config.d.ChUh6-ad.js';
7
+ import './chunks/config.d.BgVe1oN5.js';
13
8
  import '@vitest/pretty-format';
9
+ import '@vitest/snapshot';
14
10
  import '@vitest/utils/diff';
11
+ import './chunks/browser.d.Bn-qMB1Y.js';
12
+ import './chunks/worker.d.irleQtmS.js';
13
+ import 'vite/module-runner';
15
14
  import './chunks/environment.d.CrsxCzP1.js';
15
+ import './chunks/rpc.d.B_8sPU0w.js';
16
+ import 'node:fs/promises';
16
17
  import '@vitest/expect';
17
18
  import 'vitest/optional-types.js';
18
19
  import './chunks/benchmark.d.DAaHLpsq.js';
package/dist/reporters.js CHANGED
@@ -1,18 +1,19 @@
1
- export { A as AgentReporter, B as BenchmarkReporter, a as BenchmarkReportsMap, D as DefaultReporter, b as DotReporter, G as GithubActionsReporter, H as HangingProcessReporter, J as JUnitReporter, c as JsonReporter, R as ReportersMap, T as TapFlatReporter, d as TapReporter, V as VerboseBenchmarkReporter, e as VerboseReporter } from './chunks/index.BMXTnDNz.js';
1
+ export { M as AgentReporter, B as BenchmarkReporter, a as BenchmarkReportsMap, D as DefaultReporter, b as DotReporter, G as GithubActionsReporter, H as HangingProcessReporter, J as JUnitReporter, c as JsonReporter, M as MinimalReporter, R as ReportersMap, T as TapFlatReporter, d as TapReporter, V as VerboseBenchmarkReporter, e as VerboseReporter } from './chunks/index.yJ2D83a4.js';
2
2
  import 'node:fs';
3
3
  import '@vitest/runner/utils';
4
4
  import 'pathe';
5
5
  import 'tinyrainbow';
6
- import './chunks/utils.BS4fH3nR.js';
6
+ import './chunks/utils.DzYdXqCH.js';
7
7
  import 'node:util';
8
+ import '@vitest/utils/display';
8
9
  import '@vitest/utils/helpers';
10
+ import 'node:fs/promises';
9
11
  import 'node:perf_hooks';
10
12
  import '@vitest/utils/source-map';
11
13
  import './chunks/env.D4Lgay0q.js';
12
14
  import 'std-env';
13
15
  import 'node:console';
14
16
  import 'node:stream';
15
- import '@vitest/utils/display';
16
17
  import 'node:os';
17
18
  import 'tinyexec';
18
19
  import './path.js';
@@ -20,7 +21,6 @@ import 'node:path';
20
21
  import 'node:url';
21
22
  import 'vite';
22
23
  import '@vitest/utils/offset';
23
- import 'node:fs/promises';
24
24
  import 'node:module';
25
25
 
26
26
  console.warn("Importing from \"vitest/reporters\" is deprecated since Vitest 4.1. Please use \"vitest/node\" instead.");
package/dist/runners.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  import * as tinybench from 'tinybench';
2
2
  import { VitestRunner, VitestRunnerImportSource, Suite, File, Task, CancelReason, Test, TestContext, ImportDuration, createTaskCollector, getCurrentSuite, getCurrentTest, getHooks, getFn } from '@vitest/runner';
3
3
  export { VitestRunner } from '@vitest/runner';
4
- import { S as SerializedConfig } from './chunks/config.d.ChUh6-ad.js';
5
- import { T as Traces } from './chunks/traces.d.402V_yFI.js';
4
+ import { S as SerializedConfig } from './chunks/config.d.BgVe1oN5.js';
5
+ import { T as Traces } from './chunks/traces.d.D2T_R8rx.js';
6
6
  import { createChainable, matchesTags } from '@vitest/runner/utils';
7
7
  import { g as getBenchFn, a as getBenchOptions } from './chunks/suite.d.udJtyAgw.js';
8
8
  import '@vitest/pretty-format';
package/dist/runners.js CHANGED
@@ -1,4 +1,4 @@
1
- export { N as NodeBenchmarkRunner, T as VitestTestRunner } from './chunks/test.D1JkM1w4.js';
1
+ export { N as NodeBenchmarkRunner, T as VitestTestRunner } from './chunks/test.C8WyxAQk.js';
2
2
  import '@vitest/runner';
3
3
  import '@vitest/utils/helpers';
4
4
  import '@vitest/utils/timers';
package/dist/runtime.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { VitestModuleEvaluator } from './module-evaluator.js';
2
- import { V as VITEST_VM_CONTEXT_SYMBOL, s as startVitestModuleRunner, a as VitestModuleRunner } from './chunks/startVitestModuleRunner.bRl2_oI_.js';
2
+ import { V as VITEST_VM_CONTEXT_SYMBOL, s as startVitestModuleRunner, a as VitestModuleRunner } from './chunks/startVitestModuleRunner.vRT958-n.js';
3
3
  import { g as getWorkerState } from './chunks/utils.BX5Fg8C4.js';
4
4
  export { e as builtinEnvironments, p as populateGlobal } from './chunks/index.DC7d2Pf8.js';
5
5
  export { VitestNodeSnapshotEnvironment as VitestSnapshotEnvironment } from './chunks/node.COQbm6gK.js';
package/dist/worker.d.ts CHANGED
@@ -1,10 +1,10 @@
1
- import { W as WorkerGlobalState, a as WorkerSetupContext, B as BirpcOptions } from './chunks/worker.d.CckNUvI5.js';
2
- import { T as Traces } from './chunks/traces.d.402V_yFI.js';
1
+ import { W as WorkerGlobalState, a as WorkerSetupContext, B as BirpcOptions } from './chunks/worker.d.irleQtmS.js';
2
+ import { T as Traces } from './chunks/traces.d.D2T_R8rx.js';
3
3
  import { Awaitable } from '@vitest/utils';
4
4
  import { ModuleRunner } from 'vite/module-runner';
5
- import { R as RuntimeRPC } from './chunks/rpc.d.BFMWpdph.js';
5
+ import { R as RuntimeRPC } from './chunks/rpc.d.B_8sPU0w.js';
6
6
  import '@vitest/runner';
7
- import './chunks/config.d.ChUh6-ad.js';
7
+ import './chunks/config.d.BgVe1oN5.js';
8
8
  import '@vitest/pretty-format';
9
9
  import '@vitest/snapshot';
10
10
  import '@vitest/utils/diff';