vitest 4.1.5 → 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 (50) hide show
  1. package/dist/browser.d.ts +3 -3
  2. package/dist/browser.js +2 -2
  3. package/dist/chunks/{base.RR7zL1h0.js → base.CgusHodA.js} +8 -8
  4. package/dist/chunks/{browser.d.BcoexmFG.d.ts → browser.d.Bn-qMB1Y.d.ts} +1 -1
  5. package/dist/chunks/{cac.DJJmV0dT.js → cac.DSVGM2li.js} +17 -6
  6. package/dist/chunks/{cli-api.Cjt90eJu.js → cli-api.MLtHkHGf.js} +66 -18
  7. package/dist/chunks/{config.d.A1h_Y6Jt.d.ts → config.d.BgVe1oN5.d.ts} +6 -0
  8. package/dist/chunks/{coverage.DM_a_rWm.js → coverage.nIKqs-BM.js} +28 -6
  9. package/dist/chunks/{defaults.9aQKnqFk.js → defaults.pr789SUS.js} +1 -0
  10. package/dist/chunks/{globals.Dj1TGiMC.js → globals.BYX6Co2c.js} +2 -2
  11. package/dist/chunks/{index.DXx9Dtk7.js → index.BSgubW8K.js} +2 -2
  12. package/dist/chunks/{index.DdgEv5B1.js → index.BcGySndd.js} +1 -1
  13. package/dist/chunks/{index.BCY_7LL2.js → index.CesbTg1C.js} +9 -9
  14. package/dist/chunks/{index.UpGiHP7g.js → index.yJ2D83a4.js} +6 -5
  15. package/dist/chunks/{init-forks.UV3ZQGQH.js → init-forks.DuteEWBS.js} +1 -1
  16. package/dist/chunks/{init-threads.D3eCsY76.js → init-threads.BSdvBCTO.js} +1 -1
  17. package/dist/chunks/{init.D98-gwRW.js → init.Dc7N0jh0.js} +1 -1
  18. package/dist/chunks/{nativeModuleMocker.BRN2oBJd.js → nativeModuleMocker.BKN7j4tC.js} +1 -1
  19. package/dist/chunks/{nativeModuleRunner.BIakptoF.js → nativeModuleRunner.WlMdOB52.js} +1 -1
  20. package/dist/chunks/{plugin.d.BM2TCi12.d.ts → plugin.d.BkNgFMgP.d.ts} +1 -1
  21. package/dist/chunks/{reporters.d.CEnv6XRv.d.ts → reporters.d.GtfMm3Oa.d.ts} +134 -5
  22. package/dist/chunks/{setup-common.DYx3LtFI.js → setup-common.CYy2gJEr.js} +1 -1
  23. package/dist/chunks/{startVitestModuleRunner.bRl2_oI_.js → startVitestModuleRunner.vRT958-n.js} +2 -2
  24. package/dist/chunks/{test.DNmyFkvJ.js → test.C8WyxAQk.js} +2 -1
  25. package/dist/chunks/{utils.BS4fH3nR.js → utils.DzYdXqCH.js} +2 -3
  26. package/dist/chunks/{vm.DVLYObm9.js → vm.CPtbsAeh.js} +5 -5
  27. package/dist/chunks/{worker.d.ZpHpO4yb.d.ts → worker.d.irleQtmS.d.ts} +1 -1
  28. package/dist/cli.js +1 -1
  29. package/dist/config.cjs +1 -0
  30. package/dist/config.d.ts +8 -6
  31. package/dist/config.js +1 -1
  32. package/dist/coverage.d.ts +5 -4
  33. package/dist/coverage.js +5 -4
  34. package/dist/index.d.ts +6 -6
  35. package/dist/index.js +2 -2
  36. package/dist/node.d.ts +8 -7
  37. package/dist/node.js +11 -11
  38. package/dist/reporters.d.ts +5 -4
  39. package/dist/reporters.js +3 -3
  40. package/dist/runners.d.ts +1 -1
  41. package/dist/runners.js +1 -1
  42. package/dist/runtime.js +1 -1
  43. package/dist/worker.d.ts +2 -2
  44. package/dist/worker.js +9 -9
  45. package/dist/workers/forks.js +10 -10
  46. package/dist/workers/runVmTests.js +4 -4
  47. package/dist/workers/threads.js +10 -10
  48. package/dist/workers/vmForks.js +4 -4
  49. package/dist/workers/vmThreads.js +4 -4
  50. package/package.json +14 -14
@@ -3,14 +3,15 @@ import { TestError, SerializedError, Arrayable, ParsedStack, Awaitable } from '@
3
3
  import { a as AfterSuiteRunMeta, U as UserConsoleLog, A as AsyncLeak, P as ProvidedContext, O as OTELCarrier, L as LabelColor } from './traces.d.D2T_R8rx.js';
4
4
  import { Writable } from 'node:stream';
5
5
  import { DevEnvironment, TransformResult as TransformResult$1, ViteDevServer, Plugin, UserConfig as UserConfig$1, DepOptimizationConfig, ServerOptions, ConfigEnv, AliasOptions } from 'vite';
6
- import { b as SerializedRootConfig, B as BrowserTraceViewMode, S as SerializedConfig, F as FakeTimerInstallOpts } from './config.d.A1h_Y6Jt.js';
7
- import { S as SerializedTestSpecification, c as SourceModuleDiagnostic, B as BrowserTesterOptions } from './browser.d.BcoexmFG.js';
6
+ import { b as SerializedRootConfig, B as BrowserTraceViewMode, S as SerializedConfig, F as FakeTimerInstallOpts } from './config.d.BgVe1oN5.js';
7
+ import { S as SerializedTestSpecification, c as SourceModuleDiagnostic, B as BrowserTesterOptions } from './browser.d.Bn-qMB1Y.js';
8
+ import { writeFile } from 'node:fs/promises';
8
9
  import { PrettyFormatOptions } from '@vitest/pretty-format';
9
10
  import { SnapshotSummary, SnapshotStateOptions } from '@vitest/snapshot';
10
11
  import { SerializedDiffOptions } from '@vitest/utils/diff';
11
12
  import { chai } from '@vitest/expect';
12
13
  import { happyDomTypes, jsdomTypes } from 'vitest/optional-types.js';
13
- import { c as ContextTestEnvironment, d as WorkerExecuteContext, e as WorkerTestEnvironment } from './worker.d.ZpHpO4yb.js';
14
+ import { c as ContextTestEnvironment, d as WorkerExecuteContext, e as WorkerTestEnvironment } from './worker.d.irleQtmS.js';
14
15
  import { B as BenchmarkResult } from './benchmark.d.DAaHLpsq.js';
15
16
  import { MockedModule } from '@vitest/mocker';
16
17
  import { StackTraceParserOptions } from '@vitest/utils/source-map';
@@ -71,6 +72,80 @@ interface ConstructorOptionsOverride {
71
72
  resources?: "usable";
72
73
  }
73
74
 
75
+ interface Report {
76
+ /**
77
+ * The root directory for this scope.
78
+ *
79
+ * ```ts
80
+ * const report = vitest.createReport('my-json-reporter');
81
+ *
82
+ * // Is <project-root>/.vitest/my-json-reporter
83
+ * const root = report.root
84
+ * ```
85
+ */
86
+ root: string;
87
+ /**
88
+ * Clean up the report directory for this scope.
89
+ *
90
+ * By default, if `--merge-reports` is used, this method will not delete existing reports.
91
+ * To force deletion of existing reports, pass `true` as an argument.
92
+ *
93
+ * ```ts
94
+ * const report = vitest.createReport('my-json-reporter');
95
+ *
96
+ * // Removes everything inside <project-root>/.vitest/my-json-reporter/
97
+ * await report.clean()
98
+ * ```
99
+ */
100
+ clean: (force?: boolean) => Promise<void>;
101
+ /**
102
+ * Write a file to the report directory for this scope.
103
+ * By default the file will be written with UTF-8 encoding.
104
+ * The filename is relative to the scope directory.
105
+ *
106
+ * ```ts
107
+ * const report = vitest.createReport('my-json-reporter');
108
+ *
109
+ * // Writes file to .vitest/my-json-reporter/test-report.json
110
+ * await report.writeFile('test-report.json', JSON.stringify(results))
111
+ * ```
112
+ */
113
+ writeFile: (filename: string, content: Parameters<typeof writeFile>[1], encoding?: BufferEncoding) => Promise<void>;
114
+ /**
115
+ * Read a file from the report directory for this scope.
116
+ *
117
+ * ```ts
118
+ * const report = vitest.createReport('my-json-reporter');
119
+ *
120
+ * // Reads file from .vitest/my-json-reporter/test-report.json
121
+ * const content: string = await report.readFile('test-report.json')
122
+ * ```
123
+ */
124
+ readFile: (filename: string, encoding?: BufferEncoding) => Promise<string>;
125
+ /**
126
+ * Read contents of the report directory for this scope.
127
+ *
128
+ * ```ts
129
+ * const report = vitest.createReport('my-json-reporter');
130
+ *
131
+ * // Reads contents from .vitest/my-json-reporter
132
+ * const filenames: string[] = await report.readdir()
133
+ * ```
134
+ */
135
+ readdir: () => Promise<string[]>;
136
+ /**
137
+ * Delete a file from the report directory for this scope.
138
+ *
139
+ * ```ts
140
+ * const report = vitest.createReport('my-json-reporter');
141
+ *
142
+ * // Deletes file from .vitest/my-json-reporter/test-report.json
143
+ * await report.delete('test-report.json')
144
+ * ```
145
+ */
146
+ delete: (filename: string) => Promise<void>;
147
+ }
148
+
74
149
  interface TestSpecificationOptions {
75
150
  testNamePattern?: RegExp;
76
151
  testIds?: string[];
@@ -1521,6 +1596,10 @@ declare class Vitest {
1521
1596
  * Check if the project with a given name should be included.
1522
1597
  */
1523
1598
  matchesProjectFilter(name: string): boolean;
1599
+ /**
1600
+ * Create a report that's scoped to a specific reporter directory.
1601
+ */
1602
+ createReport(scope: string): Report;
1524
1603
  }
1525
1604
  type OnServerRestartHandler = (reason?: string) => Promise<void> | void;
1526
1605
  type OnTestsRerunHandler = (testFiles: TestSpecification[]) => Promise<void> | void;
@@ -1565,6 +1644,37 @@ interface BrowserProvider {
1565
1644
  }
1566
1645
  type BrowserBuiltinProvider = "webdriverio" | "playwright" | "preview";
1567
1646
  interface _BrowserNames {}
1647
+ interface BrowserTraceViewOptions {
1648
+ /**
1649
+ * Enable Vitest trace view artifacts collection.
1650
+ *
1651
+ * This option controls Vitest's own trace-view pipeline, independently from provider-specific trace retention.
1652
+ *
1653
+ * @default false
1654
+ * @experimental
1655
+ */
1656
+ enabled?: boolean;
1657
+ /**
1658
+ * Capture canvas pixels in trace view snapshots.
1659
+ *
1660
+ * This uses rrweb's canvas snapshot support and can increase trace artifact size.
1661
+ * In the trace viewer, this enables a weaker replay iframe sandbox because rrweb needs scripts to redraw canvas data.
1662
+ *
1663
+ * @default false
1664
+ * @experimental
1665
+ */
1666
+ recordCanvas?: boolean;
1667
+ /**
1668
+ * Inline loaded `<img>` element pixels in trace view snapshots.
1669
+ *
1670
+ * This uses rrweb's image inlining support. It improves offline replay for still images,
1671
+ * but can increase trace artifact size and does not preserve original image resource bytes.
1672
+ *
1673
+ * @default false
1674
+ * @experimental
1675
+ */
1676
+ inlineImages?: boolean;
1677
+ }
1568
1678
  type UnsupportedProperties = "browser" | "typecheck" | "alias" | "sequence" | "root" | "pool" | "runner" | "api" | "deps" | "environment" | "environmentOptions" | "server" | "benchmark" | "name";
1569
1679
  interface BrowserInstanceOption extends Omit<ProjectConfig, UnsupportedProperties>, Pick<BrowserConfigOptions, "headless" | "locators" | "viewport" | "testerHtmlPath" | "screenshotDirectory" | "screenshotFailures"> {
1570
1680
  /**
@@ -1696,6 +1806,16 @@ interface BrowserConfigOptions {
1696
1806
  snapshots?: boolean;
1697
1807
  };
1698
1808
  /**
1809
+ *
1810
+ * Enable Vitest trace view artifacts collection.
1811
+ *
1812
+ * This option controls Vitest's own trace-view pipeline, independently from provider-specific trace retention.
1813
+ *
1814
+ * @default false
1815
+ * @experimental
1816
+ */
1817
+ traceView?: boolean | BrowserTraceViewOptions;
1818
+ /**
1699
1819
  * Directory where screenshots will be saved when page.screenshot() is called
1700
1820
  * If not set, all screenshots are saved to __screenshots__ directory in the same folder as the test file.
1701
1821
  * If this is set, it will be resolved relative to the project root.
@@ -1841,6 +1961,7 @@ interface ResolvedBrowserOptions extends BrowserConfigOptions {
1841
1961
  snapshots?: boolean;
1842
1962
  sources?: boolean;
1843
1963
  };
1964
+ traceView: Required<BrowserTraceViewOptions>;
1844
1965
  }
1845
1966
  type ToMatchScreenshotResolvePath = (data: {
1846
1967
  /**
@@ -3208,6 +3329,14 @@ interface InlineConfig {
3208
3329
  */
3209
3330
  chaiConfig?: ChaiConfig;
3210
3331
  /**
3332
+ * Sets length limit for formatted values interpolated into generated task titles.
3333
+ *
3334
+ * This affects values inserted by APIs like `test.each` and `test.for`.
3335
+ *
3336
+ * @default 40
3337
+ */
3338
+ taskTitleValueFormatTruncate?: number;
3339
+ /**
3211
3340
  * Stop test execution when given number of tests have failed.
3212
3341
  */
3213
3342
  bail?: number;
@@ -3607,5 +3736,5 @@ type TestProjectInlineConfiguration = (UserWorkspaceConfig & {
3607
3736
  });
3608
3737
  type TestProjectConfiguration = string | TestProjectInlineConfiguration | Promise<UserWorkspaceConfig> | UserProjectConfigFn;
3609
3738
 
3610
- export { Logger as L, MinimalReporter as M, TestProject as T, Vitest as V, CoverageMap as a$, DefaultReporter as a0, DotReporter as a2, GithubActionsReporter as a4, HangingProcessReporter as a6, JUnitReporter as a9, TestCase as aB, TestCollection as aC, TestModule as aE, TestSuite as aP, VerboseBenchmarkReporter as aU, VerboseReporter as aV, VitestPackageInstaller as aX, experimental_getRunnerTask as a_, JsonReporter as ac, ReportersMap as ar, TapFlatReporter as ay, TapReporter as az, TestSpecification as h, BaseReporter as l, BenchmarkReporter as n, BenchmarkReportsMap as o };
3611
- export type { CustomProviderOptions as $, ApiConfig as A, BaseCoverageOptions as B, CoverageOptions as C, BrowserServerFactory as D, BrowserServerOptions as E, FieldsWithDefaultValues as F, BrowserServerState as G, BrowserServerStateSession as H, InlineConfig as I, BuiltinEnvironment as J, BuiltinReporterOptions as K, BuiltinReporters as N, CSSModuleScopeStrategy as O, PoolWorker as P, CoverageInstrumenter as Q, ResolvedConfig as R, CoverageIstanbulOptions as S, UserWorkspaceConfig as U, WatcherTriggerPattern as W, CoverageProvider as X, CoverageProviderModule as Y, CoverageReporter as Z, CoverageV8Options as _, TestProjectConfiguration as a, DepsOptimizationOptions as a1, EnvironmentOptions as a3, HTMLOptions as a5, InstrumenterOptions as a7, JUnitOptions as a8, TaskOptions as aA, TestDiagnostic as aD, TestModuleState as aF, TestResult as aG, TestResultFailed as aH, TestResultPassed as aI, TestResultSkipped as aJ, TestRunEndReason as aK, TestRunResult as aL, TestSequencerConstructor as aM, TestSpecificationOptions as aN, TestState as aO, TestSuiteState as aQ, ToMatchScreenshotComparators as aR, ToMatchScreenshotOptions as aS, TypecheckConfig as aT, VitestEnvironment as aW, WorkerResponse as aY, _BrowserNames as aZ, JsonAssertionResult as aa, JsonOptions as ab, JsonTestResult as ad, JsonTestResults as ae, ModuleDiagnostic as af, OnServerRestartHandler as ag, OnTestsRerunHandler as ah, ParentProjectBrowser as ai, Pool as aj, PoolRunnerInitializer as ak, PoolTask as al, ProjectBrowser as am, ProjectConfig as an, ReportContext as ao, ReportedHookContext as ap, Reporter as aq, ResolveSnapshotPathHandler as as, ResolveSnapshotPathHandlerContext as at, ResolvedBrowserOptions as au, ResolvedCoverageOptions as av, ResolvedProjectConfig as aw, SerializedTestProject as ax, UserProjectConfigFn as b, UserProjectConfigExport as c, TestProjectInlineConfiguration as d, UserConfig as e, VitestRunMode as f, VitestOptions as g, PoolOptions as i, WorkerRequest as j, TestSequencer as k, BenchmarkBuiltinReporters as m, BenchmarkUserOptions as p, BrowserBuiltinProvider as q, BrowserCommand as r, BrowserCommandContext as s, BrowserConfigOptions as t, BrowserInstanceOption as u, BrowserModuleMocker as v, BrowserOrchestrator as w, BrowserProvider as x, BrowserProviderOption as y, BrowserScript as z };
3739
+ export { Logger as L, MinimalReporter as M, TestProject as T, Vitest as V, experimental_getRunnerTask as a$, DefaultReporter as a0, DotReporter as a2, GithubActionsReporter as a4, HangingProcessReporter as a6, JUnitReporter as a9, TapReporter as aA, TestCase as aC, TestCollection as aD, TestModule as aF, TestSuite as aQ, VerboseBenchmarkReporter as aV, VerboseReporter as aW, VitestPackageInstaller as aY, JsonReporter as ac, ReportersMap as as, TapFlatReporter as az, CoverageMap as b0, TestSpecification as h, BaseReporter as l, BenchmarkReporter as n, BenchmarkReportsMap as o };
3740
+ export type { CustomProviderOptions as $, ApiConfig as A, BaseCoverageOptions as B, CoverageOptions as C, BrowserServerFactory as D, BrowserServerOptions as E, FieldsWithDefaultValues as F, BrowserServerState as G, BrowserServerStateSession as H, InlineConfig as I, BuiltinEnvironment as J, BuiltinReporterOptions as K, BuiltinReporters as N, CSSModuleScopeStrategy as O, PoolWorker as P, CoverageInstrumenter as Q, ResolvedConfig as R, CoverageIstanbulOptions as S, UserWorkspaceConfig as U, WatcherTriggerPattern as W, CoverageProvider as X, CoverageProviderModule as Y, CoverageReporter as Z, CoverageV8Options as _, TestProjectConfiguration as a, DepsOptimizationOptions as a1, EnvironmentOptions as a3, HTMLOptions as a5, InstrumenterOptions as a7, JUnitOptions as a8, TaskOptions as aB, TestDiagnostic as aE, TestModuleState as aG, TestResult as aH, TestResultFailed as aI, TestResultPassed as aJ, TestResultSkipped as aK, TestRunEndReason as aL, TestRunResult as aM, TestSequencerConstructor as aN, TestSpecificationOptions as aO, TestState as aP, TestSuiteState as aR, ToMatchScreenshotComparators as aS, ToMatchScreenshotOptions as aT, TypecheckConfig as aU, VitestEnvironment as aX, WorkerResponse as aZ, _BrowserNames as a_, JsonAssertionResult as aa, JsonOptions as ab, JsonTestResult as ad, JsonTestResults as ae, ModuleDiagnostic as af, OnServerRestartHandler as ag, OnTestsRerunHandler as ah, ParentProjectBrowser as ai, Pool as aj, PoolRunnerInitializer as ak, PoolTask as al, ProjectBrowser as am, ProjectConfig as an, Report as ao, ReportContext as ap, ReportedHookContext as aq, Reporter as ar, ResolveSnapshotPathHandler as at, ResolveSnapshotPathHandlerContext as au, ResolvedBrowserOptions as av, ResolvedCoverageOptions as aw, ResolvedProjectConfig as ax, SerializedTestProject as ay, UserProjectConfigFn as b, UserProjectConfigExport as c, TestProjectInlineConfiguration as d, UserConfig as e, VitestRunMode as f, VitestOptions as g, PoolOptions as i, WorkerRequest as j, TestSequencer as k, BenchmarkBuiltinReporters as m, BenchmarkUserOptions as p, BrowserBuiltinProvider as q, BrowserCommand as r, BrowserCommandContext as s, BrowserConfigOptions as t, BrowserInstanceOption as u, BrowserModuleMocker as v, BrowserOrchestrator as w, BrowserProvider as x, BrowserProviderOption as y, BrowserScript as z };
@@ -26,7 +26,7 @@ async function setupCommonEnv(config) {
26
26
  if (globalSetup) return;
27
27
  globalSetup = true;
28
28
  setSafeTimers();
29
- if (config.globals) (await import('./globals.Dj1TGiMC.js')).registerApiGlobally();
29
+ if (config.globals) (await import('./globals.BYX6Co2c.js')).registerApiGlobally();
30
30
  }
31
31
  function setupDefines(config) {
32
32
  for (const key in config.defines) globalThis[key] = config.defines[key];
@@ -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';
@@ -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) {
@@ -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,6 +1,6 @@
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.A1h_Y6Jt.js';
3
+ import { S as SerializedConfig } from './config.d.BgVe1oN5.js';
4
4
  import { E as Environment } from './environment.d.CrsxCzP1.js';
5
5
  import { R as RuntimeRPC, a as RunnerRPC } from './rpc.d.B_8sPU0w.js';
6
6
 
package/dist/cli.js CHANGED
@@ -1,4 +1,4 @@
1
- import { c as createCLI } from './chunks/cac.DJJmV0dT.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.CEnv6XRv.js';
4
- export { a as TestProjectConfiguration, d as TestProjectInlineConfiguration, e as TestUserConfig, W as WatcherTriggerPattern } from './chunks/reporters.d.CEnv6XRv.js';
5
- import { V as VitestPluginContext } from './chunks/plugin.d.BM2TCi12.js';
6
- import { F as FakeTimerInstallOpts } from './chunks/config.d.A1h_Y6Jt.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
9
  import './chunks/traces.d.D2T_R8rx.js';
10
10
  import 'node:stream';
11
- import './chunks/browser.d.BcoexmFG.js';
12
- import './chunks/worker.d.ZpHpO4yb.js';
11
+ import './chunks/browser.d.Bn-qMB1Y.js';
12
+ import './chunks/worker.d.irleQtmS.js';
13
13
  import 'vite/module-runner';
14
14
  import './chunks/environment.d.CrsxCzP1.js';
15
15
  import './chunks/rpc.d.B_8sPU0w.js';
16
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, av as ResolvedCoverageOptions, a$ as CoverageMap, ao as ReportContext, T as TestProject } from './chunks/reporters.d.CEnv6XRv.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
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/config.d.A1h_Y6Jt.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';
11
- import './chunks/browser.d.BcoexmFG.js';
12
- import './chunks/worker.d.ZpHpO4yb.js';
11
+ import './chunks/browser.d.Bn-qMB1Y.js';
12
+ import './chunks/worker.d.irleQtmS.js';
13
13
  import 'vite/module-runner';
14
14
  import './chunks/environment.d.CrsxCzP1.js';
15
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/coverage.js CHANGED
@@ -1,4 +1,4 @@
1
- export { B as BaseCoverageProvider } from './chunks/coverage.DM_a_rWm.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,14 +1,14 @@
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.BcoexmFG.js';
2
- export { B as BrowserTesterOptions } from './chunks/browser.d.BcoexmFG.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
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.ZpHpO4yb.js';
9
- export { C as ContextRPC, c as ContextTestEnvironment, T as TestExecutionMethod, W as WorkerGlobalState } from './chunks/worker.d.ZpHpO4yb.js';
10
- import { b as SerializedRootConfig, F as FakeTimerInstallOpts, R as RuntimeOptions } from './chunks/config.d.A1h_Y6Jt.js';
11
- export { c as RuntimeConfig, S as SerializedConfig, a as SerializedCoverageConfig } from './chunks/config.d.A1h_Y6Jt.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
12
  import { U as UserConsoleLog, L as LabelColor, M as ModuleGraphData, P as ProvidedContext } from './chunks/traces.d.D2T_R8rx.js';
13
13
  export { a as AfterSuiteRunMeta } from './chunks/traces.d.D2T_R8rx.js';
14
14
  import { ExpectStatic, MatcherState, SyncExpectationResult, AsyncExpectationResult, ExpectationResult } from '@vitest/expect';
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.DNmyFkvJ.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.DdgEv5B1.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';
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.CEnv6XRv.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 ReportContext, ap as ReportedHookContext, aq as Reporter, ar as ReportersMap, as as ResolveSnapshotPathHandler, at as ResolveSnapshotPathHandlerContext, au as ResolvedBrowserOptions, av as ResolvedCoverageOptions, aw as ResolvedProjectConfig, ax as SerializedTestProject, ay as TapFlatReporter, az as TapReporter, aA as TaskOptions, aB as TestCase, aC as TestCollection, aD as TestDiagnostic, aE as TestModule, aF as TestModuleState, aG as TestResult, aH as TestResultFailed, aI as TestResultPassed, aJ as TestResultSkipped, aK as TestRunEndReason, aL as TestRunResult, aM as TestSequencerConstructor, aN as TestSpecificationOptions, aO as TestState, aP as TestSuite, aQ as TestSuiteState, aR as ToMatchScreenshotComparators, aS as ToMatchScreenshotOptions, aT as TypecheckConfig, U as UserWorkspaceConfig, aU as VerboseBenchmarkReporter, aV as VerboseReporter, aW as VitestEnvironment, aX as VitestPackageInstaller, W as WatcherTriggerPattern, aY as WorkerResponse, aZ as _BrowserNames, a_ as experimental_getRunnerTask } from './chunks/reporters.d.CEnv6XRv.js';
8
- export { C as CacheKeyIdGenerator, a as CacheKeyIdGeneratorContext, V as VitestPluginContext } from './chunks/plugin.d.BM2TCi12.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
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.ZpHpO4yb.js';
15
- export { T as TestExecutionType } from './chunks/worker.d.ZpHpO4yb.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
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 { c as RuntimeConfig } from './chunks/config.d.A1h_Y6Jt.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
22
  import './chunks/traces.d.D2T_R8rx.js';
23
- import './chunks/browser.d.BcoexmFG.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.Cjt90eJu.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.Cjt90eJu.js';
6
- export { p as parseCLI } from './chunks/cac.DJJmV0dT.js';
7
- import { r as resolveConfig$2 } from './chunks/coverage.DM_a_rWm.js';
8
- export { B as BaseCoverageProvider, a as BaseSequencer, b as resolveApiServerConfig } from './chunks/coverage.DM_a_rWm.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 { 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.UpGiHP7g.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 { 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, ap as ReportedHookContext, aq as Reporter, ar as ReportersMap, ay as TapFlatReporter, az as TapReporter, aK as TestRunEndReason, aU as VerboseBenchmarkReporter, aV as VerboseReporter } from './chunks/reporters.d.CEnv6XRv.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
4
  import './chunks/traces.d.D2T_R8rx.js';
5
5
  import 'node:stream';
6
6
  import 'vite';
7
- import './chunks/config.d.A1h_Y6Jt.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';
11
- import './chunks/browser.d.BcoexmFG.js';
12
- import './chunks/worker.d.ZpHpO4yb.js';
11
+ import './chunks/browser.d.Bn-qMB1Y.js';
12
+ import './chunks/worker.d.irleQtmS.js';
13
13
  import 'vite/module-runner';
14
14
  import './chunks/environment.d.CrsxCzP1.js';
15
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,10 +1,11 @@
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.UpGiHP7g.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';
9
10
  import 'node:fs/promises';
10
11
  import 'node:perf_hooks';
@@ -13,7 +14,6 @@ import './chunks/env.D4Lgay0q.js';
13
14
  import 'std-env';
14
15
  import 'node:console';
15
16
  import 'node:stream';
16
- import '@vitest/utils/display';
17
17
  import 'node:os';
18
18
  import 'tinyexec';
19
19
  import './path.js';