vitest 5.1.0-beta.1 → 5.1.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 (68) hide show
  1. package/dist/browser.d.ts +8 -6
  2. package/dist/browser.js +10 -10
  3. package/dist/chunks/{base.PJyN9N0u.js → base.C2su7_N0.js} +16 -21
  4. package/dist/chunks/{browser.d.D7a15z82.d.ts → browser.d.B-QwH_F6.d.ts} +3 -3
  5. package/dist/chunks/{cac.Ccf5Je_F.js → cac.BK306qhQ.js} +29 -22
  6. package/dist/chunks/{cli-api.DE22LIzq.js → cli-api.D6E8EtSi.js} +990 -166
  7. package/dist/chunks/{config.d.BgktgHfG.d.ts → config.d.BpJq6tRA.d.ts} +43 -2
  8. package/dist/chunks/{console.DrMPSuFo.js → console.VJUxd1rM.js} +3 -3
  9. package/dist/chunks/{coverage.-bm5IxnW.js → coverage.9iqXE2gN.js} +1 -1
  10. package/dist/chunks/{coverage.cTDc4uSS.js → coverage.jGCktcGP.js} +1 -1
  11. package/dist/chunks/{creator.BQ3onxbh.js → creator.CoOCr85O.js} +17 -15
  12. package/dist/chunks/{display.BlTmubjj.js → display.Cj2h2zsY.js} +1 -1
  13. package/dist/chunks/{doctor.CPlMs7-y.js → doctor.SRjZIZuA.js} +2 -2
  14. package/dist/chunks/{environment.d.CbTLsZSj.d.ts → environment.d.rlpAM-ON.d.ts} +1 -1
  15. package/dist/chunks/{globals.TipXUFcZ.js → globals.Mxora3_v.js} +11 -10
  16. package/dist/chunks/{index.BFXLpwll.js → index.C7Nn66Gy.js} +79 -41
  17. package/dist/chunks/{index.DmDMHCg8.js → index.CAmut2NG.js} +25 -1
  18. package/dist/chunks/{index.BXttT2gP.js → index.DNcttN5a.js} +288 -437
  19. package/dist/chunks/{index.B03wg4V0.js → index.Da_szXbS.js} +5 -5
  20. package/dist/chunks/{index.D14IAvnE.js → index.ER9afepi.js} +269 -141
  21. package/dist/chunks/{index.D0heQG4v.js → index.Or9psEGe.js} +1 -1
  22. package/dist/chunks/{init-forks.BL1E3__4.js → init-forks.q4IoGYZe.js} +7 -1
  23. package/dist/chunks/{init-threads.CYXAGzKQ.js → init-threads.Bf1Frg9S.js} +1 -1
  24. package/dist/chunks/{init.DVorxUyL.js → init.dGO4K2C0.js} +17 -9
  25. package/dist/chunks/{inspector.CvyFGlXm.js → inspector.D6o1NPo1.js} +12 -1
  26. package/dist/chunks/{module-dependencies.CwNPkcV4.js → module-dependencies._2Eei3FO.js} +1 -1
  27. package/dist/chunks/{modules.BJuCwlRJ.js → moduleSourceMap.Dp1WduWi.js} +31 -1
  28. package/dist/chunks/{native.cdzHIdmv.js → native.D5q1ylZC.js} +3 -2
  29. package/dist/chunks/{nativeModuleMocker.3uBcOd84.js → nativeModuleMocker.ihb3q7Cg.js} +6 -4
  30. package/dist/chunks/{nativeModuleRunner.xi64Afb2.js → nativeModuleRunner.9xPIMzi7.js} +1 -1
  31. package/dist/chunks/{node.uQulW0ei.js → node.B9mkVmLH.js} +1 -1
  32. package/dist/chunks/{pathe.M-eThtNZ.Ba-7h1rE.js → pathe.M-eThtNZ.zq3TM4NT.js} +1 -1
  33. package/dist/chunks/{plugin.d.olEn8IL9.d.ts → plugin.d.Du7hHZwb.d.ts} +115 -41
  34. package/dist/chunks/{plugins.DPQHVT0p.js → plugins.BPruPOR8.js} +1 -1
  35. package/dist/chunks/rawSnapshot.DvoRLRNr.js +356 -0
  36. package/dist/chunks/{resolver.CtCcxIy1.js → resolver.BzpmeQeT.js} +1 -1
  37. package/dist/chunks/{rpc.BV0XpJ5q.js → rpc.CNYWPa97.js} +3 -19
  38. package/dist/chunks/{rpc.d.DGFP7vWr.d.ts → rpc.d.DHfuwqP0.d.ts} +2 -2
  39. package/dist/chunks/{run.BfrMbGVD.js → run.zBhXlcZQ.js} +118 -51
  40. package/dist/chunks/{setup-common.llxJkJaD.js → setup-common.wwc_NYRJ.js} +3 -3
  41. package/dist/chunks/{source-map.BjWcsIL9.js → source-map.DPHGMWvM.js} +14 -14
  42. package/dist/chunks/{source-map.d.C5A_Tr6V.d.ts → source-map.d.xB6_75fl.d.ts} +2 -1
  43. package/dist/chunks/{spy.DDMXghXv.js → spy.BO0hTE3G.js} +76 -53
  44. package/dist/chunks/{task-utils.d.BUh7ylUT.d.ts → task-utils.d.DgSjIb7r.d.ts} +1 -1
  45. package/dist/chunks/{utils.DSfl_w8V.js → utils.sAsh2ClK.js} +7 -8
  46. package/dist/chunks/{vm.Cwj01UFE.js → vm.agn4qnmT.js} +15 -13
  47. package/dist/chunks/{worker.d.gsA26mmR.d.ts → worker.d.BigfbIsH.d.ts} +3 -3
  48. package/dist/cli.js +2 -2
  49. package/dist/config.d.ts +8 -8
  50. package/dist/index.d.ts +17 -12
  51. package/dist/index.js +11 -10
  52. package/dist/module-evaluator.d.ts +3 -3
  53. package/dist/module-evaluator.js +1 -1
  54. package/dist/node.d.ts +12 -11
  55. package/dist/node.js +23 -19
  56. package/dist/runtime.d.ts +5 -4
  57. package/dist/runtime.js +7 -5
  58. package/dist/spy.js +1 -1
  59. package/dist/task-utils.js +7 -3
  60. package/dist/worker.d.ts +4 -4
  61. package/dist/worker.js +23 -21
  62. package/dist/workers/forks.js +24 -22
  63. package/dist/workers/runVmTests.js +20 -17
  64. package/dist/workers/threads.js +24 -22
  65. package/dist/workers/vmForks.js +16 -15
  66. package/dist/workers/vmThreads.js +16 -15
  67. package/dist/workers/watchdog.js +20 -0
  68. package/package.json +21 -21
package/dist/browser.d.ts CHANGED
@@ -1,18 +1,21 @@
1
- import { F as FileSpecification, c as SerializedDiffOptions } from './chunks/config.d.BgktgHfG.js';
1
+ import { F as FileSpecification, c as SerializedDiffOptions } from './chunks/config.d.BpJq6tRA.js';
2
2
  import { SerializedCoverageConfig, RunnerTestFile as File, SerializedConfig, DiffOptions, TestError } from './index.js';
3
3
  import { VitestRunner } from './runtime.js';
4
- export { P as ParsedStack, _ as SpyModule, d as StringifyOptions, f as format, i as inspect, s as stringify } from './chunks/config.d.BgktgHfG.js';
5
- import { R as RuntimeCoverageModuleLoader } from './chunks/source-map.d.C5A_Tr6V.js';
6
- export { D as DecodedMap, g as getOriginalPosition } from './chunks/source-map.d.C5A_Tr6V.js';
4
+ export { P as ParsedStack, _ as SpyModule, d as StringifyOptions, f as format, i as inspect, s as stringify } from './chunks/config.d.BpJq6tRA.js';
5
+ import { R as RuntimeCoverageModuleLoader } from './chunks/source-map.d.xB6_75fl.js';
6
+ export { D as DecodedMap, g as getOriginalPosition } from './chunks/source-map.d.xB6_75fl.js';
7
+ import 'vite/module-runner';
7
8
  import 'vitest/optional-runtime-types.js';
8
9
  import 'tinybench';
9
10
 
11
+ type BrowserTraceEntryKind = "action" | "expect" | "mark" | "lifecycle";
12
+
10
13
  declare function getType(value: unknown): string;
11
14
 
12
15
  interface SafeTimers {
13
16
  nextTick?: (cb: () => void) => void;
14
17
  setImmediate?: {
15
- <TArgs extends any[]>(callback: (...args: TArgs) => void, ...args: TArgs): any;
18
+ <TArgs extends any[]>(callback: (...args: TArgs) => void, ...args: any[]): any;
16
19
  __promisify__: <T = void>(value?: T, options?: any) => Promise<T>;
17
20
  };
18
21
  clearImmediate?: (immediateId: any) => void;
@@ -59,7 +62,6 @@ interface BrowserCommands {
59
62
  removeFile: (path: string) => Promise<void>;
60
63
  }
61
64
  interface CDPSession {}
62
- type BrowserTraceEntryKind = "action" | "expect" | "mark" | "lifecycle";
63
65
  interface MarkOptions {
64
66
  /**
65
67
  * Optional stack string used to resolve marker location.
package/dist/browser.js CHANGED
@@ -1,15 +1,15 @@
1
- export { s as startCoverageInsideWorker, a as stopCoverageInsideWorker, t as takeCoverageInsideWorker } from './chunks/coverage.-bm5IxnW.js';
2
- export { p as collectTests, a as processError, s as startTests } from './chunks/run.BfrMbGVD.js';
3
- export { l as loadDiffConfig, a as loadSnapshotSerializers, s as setupCommonEnv, b as setupEnv } from './chunks/setup-common.llxJkJaD.js';
4
- export { s as SpyModule } from './chunks/spy.DDMXghXv.js';
5
- export { f as format, i as inspect, s as stringify } from './chunks/display.BlTmubjj.js';
6
- export { g as getType } from './chunks/pathe.M-eThtNZ.Ba-7h1rE.js';
7
- export { D as DecodedMap, g as getOriginalPosition, a as getSafeTimers, s as setSafeTimers } from './chunks/source-map.BjWcsIL9.js';
8
- import './chunks/coverage.cTDc4uSS.js';
9
- import './chunks/index.D0heQG4v.js';
1
+ export { s as startCoverageInsideWorker, a as stopCoverageInsideWorker, t as takeCoverageInsideWorker } from './chunks/coverage.9iqXE2gN.js';
2
+ export { p as collectTests, a as processError, s as startTests } from './chunks/run.zBhXlcZQ.js';
3
+ export { l as loadDiffConfig, a as loadSnapshotSerializers, s as setupCommonEnv, b as setupEnv } from './chunks/setup-common.wwc_NYRJ.js';
4
+ export { s as SpyModule } from './chunks/spy.BO0hTE3G.js';
5
+ export { f as format, i as inspect, s as stringify } from './chunks/display.Cj2h2zsY.js';
6
+ export { g as getType } from './chunks/pathe.M-eThtNZ.zq3TM4NT.js';
7
+ export { D as DecodedMap, g as getOriginalPosition, a as getSafeTimers, s as setSafeTimers } from './chunks/source-map.DPHGMWvM.js';
8
+ import './chunks/coverage.jGCktcGP.js';
9
+ import './chunks/index.Or9psEGe.js';
10
10
  import './chunks/tinyrainbow.Do8I1XRG.js';
11
11
  import './task-utils.js';
12
- import './chunks/plugins.DPQHVT0p.js';
12
+ import './chunks/plugins.BPruPOR8.js';
13
13
 
14
14
  /**
15
15
  * @internal
@@ -1,22 +1,22 @@
1
1
  import { runInThisContext } from 'node:vm';
2
- import { s as spyModule } from './spy.DDMXghXv.js';
3
- import { r as resolveTestRunner, a as resolveSnapshotEnvironment, d as detectAsyncLeaks, s as setupChaiConfig } from './index.B03wg4V0.js';
4
- import { l as loadEnvironment, e as emitModuleRunner, a as listenForErrors } from './init.DVorxUyL.js';
5
- import { n as nativeImports, g as getEvaluatedImports, c as collectDependencies } from './module-dependencies.CwNPkcV4.js';
2
+ import { s as spyModule } from './spy.BO0hTE3G.js';
3
+ import { r as resolveTestRunner, a as resolveSnapshotEnvironment, d as detectAsyncLeaks, s as setupChaiConfig } from './index.Da_szXbS.js';
4
+ import { l as loadEnvironment, e as emitModuleRunner, a as listenForErrors } from './init.dGO4K2C0.js';
5
+ import { n as nativeImports, g as getEvaluatedImports, c as collectDependencies } from './module-dependencies._2Eei3FO.js';
6
6
  import { Traces } from '../traces.js';
7
- import { V as VitestEvaluatedModules } from './rpc.BV0XpJ5q.js';
8
- import { s as startVitestModuleRunner, c as createNodeImportMeta } from './index.BFXLpwll.js';
7
+ import { V as VitestEvaluatedModules } from './index.CAmut2NG.js';
8
+ import { s as startVitestModuleRunner, c as createNodeImportMeta } from './index.C7Nn66Gy.js';
9
9
  import { performance as performance$1 } from 'node:perf_hooks';
10
- import { s as startCoverageInsideWorker, a as stopCoverageInsideWorker } from './coverage.-bm5IxnW.js';
11
- import { i as index, g as globalExpect, v as vi } from './index.BXttT2gP.js';
12
- import { c as closeInspector } from './inspector.CvyFGlXm.js';
13
- import { s as startTests, p as publicCollect } from './run.BfrMbGVD.js';
10
+ import { s as startCoverageInsideWorker, a as stopCoverageInsideWorker } from './coverage.9iqXE2gN.js';
11
+ import { i as index, g as globalExpect, v as vi } from './index.DNcttN5a.js';
12
+ import { c as closeInspector } from './inspector.D6o1NPo1.js';
13
+ import { s as startTests, p as publicCollect } from './run.zBhXlcZQ.js';
14
14
  import { createRequire, syncBuiltinESMExports } from 'node:module';
15
15
  import timers from 'node:timers';
16
16
  import timersPromises from 'node:timers/promises';
17
17
  import util from 'node:util';
18
- import { K as KNOWN_ASSET_TYPES } from './pathe.M-eThtNZ.Ba-7h1rE.js';
19
- import { s as setupCommonEnv, b as setupEnv } from './setup-common.llxJkJaD.js';
18
+ import { K as KNOWN_ASSET_TYPES } from './pathe.M-eThtNZ.zq3TM4NT.js';
19
+ import { s as setupCommonEnv, b as setupEnv } from './setup-common.wwc_NYRJ.js';
20
20
  import { g as getWorkerState, r as resetModules, p as provideWorkerState, a as getSafeWorkerState } from './utils.DYj33du9.js';
21
21
 
22
22
  // this should only be used in Node
@@ -59,7 +59,7 @@ function resolveAsset(mod, url) {
59
59
  mod.exports = url;
60
60
  }
61
61
  async function setupConsoleLogSpy() {
62
- const { createCustomConsole } = await import('./console.DrMPSuFo.js');
62
+ const { createCustomConsole } = await import('./console.VJUxd1rM.js');
63
63
  globalThis.console = createCustomConsole();
64
64
  }
65
65
 
@@ -128,7 +128,7 @@ async function startModuleRunner(options) {
128
128
  let mocker;
129
129
  if (options.state.config.experimental.nodeLoader !== false) {
130
130
  // this additionally imports acorn/magic-string
131
- const { NativeModuleMocker } = await import('./nativeModuleMocker.3uBcOd84.js');
131
+ const { NativeModuleMocker } = await import('./nativeModuleMocker.ihb3q7Cg.js');
132
132
  mocker = new NativeModuleMocker({
133
133
  async resolveId(id, importer) {
134
134
  // TODO: use import.meta.resolve instead
@@ -145,7 +145,7 @@ async function startModuleRunner(options) {
145
145
  }
146
146
  // imported lazily (pulls in `local-pkg`) so it stays out of the default
147
147
  // worker startup graph; only the `viteModuleRunner: false` path needs it
148
- const { NativeModuleRunner } = await import('./nativeModuleRunner.xi64Afb2.js').then(function (n) { return n.n; });
148
+ const { NativeModuleRunner } = await import('./nativeModuleRunner.9xPIMzi7.js').then(function (n) { return n.n; });
149
149
  _moduleRunner = new NativeModuleRunner(root, mocker);
150
150
  return _moduleRunner;
151
151
  }
@@ -165,7 +165,7 @@ function recordNativeImport(url, parentURL) {
165
165
  /** @experimental */
166
166
  async function setupBaseEnvironment(context) {
167
167
  if (context.config.experimental.viteModuleRunner === false) {
168
- const { setupNodeLoaderHooks } = await import('./native.cdzHIdmv.js');
168
+ const { setupNodeLoaderHooks } = await import('./native.D5q1ylZC.js');
169
169
  const recordDependencies = context.config.experimental.recordDependencies;
170
170
  _canRecordDependencies = await setupNodeLoaderHooks(context, recordDependencies ? recordNativeImport : void 0);
171
171
  // until the tests start, the imports belong to the environment
@@ -212,11 +212,6 @@ async function runBaseTests(method, state, traces) {
212
212
  } catch (error) {
213
213
  throw new Error(`Failed to load custom "defines": ${error.message}`);
214
214
  }
215
- if (ctx.invalidates) ctx.invalidates.forEach((filepath) => {
216
- (state.evaluatedModules.fileToModulesMap.get(filepath) || []).forEach((module) => {
217
- state.evaluatedModules.invalidateModule(module);
218
- });
219
- });
220
215
  ctx.files.forEach((i) => {
221
216
  const filepath = i.filepath;
222
217
  (state.evaluatedModules.fileToModulesMap.get(filepath) || []).forEach((module) => {
@@ -1,6 +1,6 @@
1
- import { F as FileSpecification } from './config.d.BgktgHfG.js';
2
- import { O as OTELCarrier } from './rpc.d.DGFP7vWr.js';
3
- import { T as TestExecutionMethod } from './worker.d.gsA26mmR.js';
1
+ import { F as FileSpecification } from './config.d.BpJq6tRA.js';
2
+ import { O as OTELCarrier } from './rpc.d.DHfuwqP0.js';
3
+ import { T as TestExecutionMethod } from './worker.d.BigfbIsH.js';
4
4
 
5
5
  interface ModuleDefinitionLocation {
6
6
  line: number;
@@ -1,4 +1,4 @@
1
- import { n as normalize, t as toArray } from './pathe.M-eThtNZ.Ba-7h1rE.js';
1
+ import { n as normalize, t as toArray } from './pathe.M-eThtNZ.zq3TM4NT.js';
2
2
  import { EventEmitter } from 'events';
3
3
  import { w } from './tinyrainbow.Do8I1XRG.js';
4
4
  import { i as isForceColor } from './env.BKKtU2WC.js';
@@ -620,7 +620,7 @@ class CAC extends EventEmitter {
620
620
 
621
621
  const cac = (name = "") => new CAC(name);
622
622
 
623
- var version = "5.1.0-beta.1";
623
+ var version = "5.1.1";
624
624
 
625
625
  const apiConfig = (port) => ({
626
626
  port: {
@@ -892,11 +892,18 @@ const cliOptionsConfig = {
892
892
  }
893
893
  },
894
894
  traceView: {
895
- description: "Enable Vitest trace-view collection for browser tests (default: `false`)",
895
+ description: "Enable Vitest trace-view collection for browser tests. `true` records every test, and `false` turns it off (default: `\"failure-only\"`)",
896
896
  argument: "",
897
- transform: transformNestedBoolean,
897
+ transform(value) {
898
+ if (typeof value === "boolean") return { mode: value ? "on" : "off" };
899
+ return value;
900
+ },
898
901
  subcommands: {
899
- enabled: { description: "Enable Vitest trace-view collection for browser tests (default: `false`)" },
902
+ enabled: { description: "Deprecated, use `--browser.traceView.mode` instead. `true` is the same as `--browser.traceView.mode=on`" },
903
+ mode: {
904
+ description: "How trace view records tests. Supported: \"on\" (every test), \"failure-only\" (only failed tests), \"off\" (default: `\"failure-only\"`)",
905
+ argument: "<mode>"
906
+ },
900
907
  recordCanvas: { description: "Capture canvas pixels in trace-view snapshots (default: `false`)" },
901
908
  inlineImages: { description: "Inline loaded image pixels in trace-view snapshots (default: `false`)" },
902
909
  ariaSnapshot: { description: "Capture the accessibility tree in trace-view snapshots (default: `true`)" }
@@ -963,10 +970,7 @@ const cliOptionsConfig = {
963
970
  description: "Run tests that are affected by the changed files (default: `false`)",
964
971
  argument: "[since]"
965
972
  },
966
- sinceLastRun: {
967
- alias: "since-last-run",
968
- description: "Run only the tests whose recorded dependencies were modified since the last run of the test, and the tests that failed in their last run. Enables `--changed`, `--experimental.recordDependencies` and the `mtime` provider (default: `false`)"
969
- },
973
+ sinceLastRun: { description: "Run only the tests whose recorded dependencies were modified since the last run of the test, and the tests that failed in their last run. Enables `--changed`, `--experimental.recordDependencies` and the `mtime` provider (default: `false`)" },
970
974
  lastFailed: { description: "Run only the tests that failed in the last run (default: `false`)" },
971
975
  sequence: {
972
976
  description: "Options for how tests should be sorted",
@@ -1025,7 +1029,12 @@ const cliOptionsConfig = {
1025
1029
  },
1026
1030
  bail: {
1027
1031
  description: "Stop test execution when given number of tests have failed (default: `0`)",
1028
- argument: "<number>"
1032
+ argument: "[number]",
1033
+ transform(value) {
1034
+ if (value === true) return 1;
1035
+ if (typeof value === "number") return value;
1036
+ throw new TypeError(`Unexpected value "--bail=${value}". Use "--bail=1 ${value}" instead.`);
1037
+ }
1029
1038
  },
1030
1039
  retry: {
1031
1040
  description: "Retry the test specific number of times if it fails (default: `0`)",
@@ -1277,6 +1286,7 @@ const cliOptionsConfig = {
1277
1286
  },
1278
1287
  viteModuleRunner: { description: "Control whether Vitest uses Vite's module runner to run the code or fallback to the native `import`. (default: `true`)" },
1279
1288
  nodeLoader: { description: "Controls whether Vitest will use Node.js Loader API to process in-source or mocked files. This has no effect if `viteModuleRunner` is enabled. Disabling this can increase performance. (default: `true`)" },
1289
+ traceTimeline: { description: "Record `expect.poll`, `vi.waitFor`, and `vi.waitUntil` steps of each test and print them as a timeline when the test fails. This has no effect in browser mode. (default: `false`)" },
1280
1290
  vcsProvider: {
1281
1291
  argument: "<path>",
1282
1292
  description: "Provider for detecting changed files: `git`, `mtime` (requires `experimental.recordDependencies`) or a path to a custom provider. (default: `git`)",
@@ -1354,10 +1364,7 @@ const collectCliOptionsConfig = {
1354
1364
  description: "Print only tests that are affected by the changed files (default: `false`)",
1355
1365
  argument: "[since]"
1356
1366
  },
1357
- sinceLastRun: {
1358
- alias: "since-last-run",
1359
- description: "Print only the tests whose recorded dependencies were modified since the last run of the test, and the tests that failed in their last run (default: `false`)"
1360
- },
1367
+ sinceLastRun: { description: "Print only the tests whose recorded dependencies were modified since the last run of the test, and the tests that failed in their last run (default: `false`)" },
1361
1368
  lastFailed: { description: "Print only the tests that failed in the last run (default: `false`)" }
1362
1369
  };
1363
1370
 
@@ -2376,11 +2383,11 @@ function normalizeCliOptions(cliFilters, argv) {
2376
2383
  }
2377
2384
  async function start(cliFilters, options) {
2378
2385
  try {
2379
- const { startVitest } = await import('./cli-api.DE22LIzq.js').then(function (n) { return n.j; });
2386
+ const { startVitest } = await import('./cli-api.D6E8EtSi.js').then(function (n) { return n.j; });
2380
2387
  const ctx = await startVitest(cliFilters.map(normalize), normalizeCliOptions(cliFilters, options));
2381
2388
  if (!ctx.shouldKeepServer()) await ctx.exit();
2382
2389
  } catch (e) {
2383
- const { errorBanner } = await import('./utils.DSfl_w8V.js').then(function (n) { return n.u; });
2390
+ const { errorBanner } = await import('./utils.sAsh2ClK.js').then(function (n) { return n.u; });
2384
2391
  console.error(`\n${errorBanner("Startup Error")}`);
2385
2392
  console.error(e);
2386
2393
  console.error("\n\n");
@@ -2390,11 +2397,11 @@ async function start(cliFilters, options) {
2390
2397
  }
2391
2398
  async function doctorCommand(cliFilters, options) {
2392
2399
  try {
2393
- const { doctor } = await import('./doctor.CPlMs7-y.js');
2400
+ const { doctor } = await import('./doctor.SRjZIZuA.js');
2394
2401
  await doctor(cliFilters.map(normalize), normalizeCliOptions(cliFilters, options));
2395
2402
  process.exit();
2396
2403
  } catch (e) {
2397
- const { errorBanner } = await import('./utils.DSfl_w8V.js').then(function (n) { return n.u; });
2404
+ const { errorBanner } = await import('./utils.sAsh2ClK.js').then(function (n) { return n.u; });
2398
2405
  console.error(`\n${errorBanner("Doctor Error")}`);
2399
2406
  console.error(e);
2400
2407
  console.error("\n\n");
@@ -2407,12 +2414,12 @@ async function init(project) {
2407
2414
  console.error(/* @__PURE__ */ new Error("Only the \"browser\" project is supported. Use \"vitest init browser\" to create a new project."));
2408
2415
  process.exit(1);
2409
2416
  }
2410
- const { create } = await import('./creator.BQ3onxbh.js');
2417
+ const { create } = await import('./creator.CoOCr85O.js');
2411
2418
  await create();
2412
2419
  }
2413
2420
  async function collect(cliFilters, options) {
2414
2421
  try {
2415
- const { prepareVitest, processCollected, outputFileList } = await import('./cli-api.DE22LIzq.js').then(function (n) { return n.j; });
2422
+ const { prepareVitest, processCollected, outputFileList } = await import('./cli-api.D6E8EtSi.js').then(function (n) { return n.j; });
2416
2423
  const ctx = await prepareVitest({
2417
2424
  ...normalizeCliOptions(cliFilters, options),
2418
2425
  watch: false,
@@ -2431,10 +2438,10 @@ async function collect(cliFilters, options) {
2431
2438
  return;
2432
2439
  }
2433
2440
  processCollected(ctx, tests, options);
2434
- } else outputFileList(await ctx.getRelevantTestSpecifications(cliFilters.map(normalize)), options);
2441
+ } else outputFileList(await ctx._shardSpecifications(await ctx.getRelevantTestSpecifications(cliFilters.map(normalize))), options);
2435
2442
  await ctx.close();
2436
2443
  } catch (e) {
2437
- const { errorBanner } = await import('./utils.DSfl_w8V.js').then(function (n) { return n.u; });
2444
+ const { errorBanner } = await import('./utils.sAsh2ClK.js').then(function (n) { return n.u; });
2438
2445
  console.error(`\n${errorBanner("Collect Error")}`);
2439
2446
  console.error(e);
2440
2447
  console.error("\n\n");