vitest 3.1.3 → 3.2.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 (42) hide show
  1. package/dist/browser.d.ts +2 -2
  2. package/dist/browser.js +1 -1
  3. package/dist/chunks/{base.DslwPSCy.js → base.SfTiRNZf.js} +1 -1
  4. package/dist/chunks/{cac.BN2e7cE1.js → cac.TfX2-DVH.js} +9 -7
  5. package/dist/chunks/{cli-api.Bti1vevt.js → cli-api.2970Nj9J.js} +908 -847
  6. package/dist/chunks/{coverage.87S59-Sl.js → coverage.z0LVMxgb.js} +3 -1
  7. package/dist/chunks/{environment.d.Dmw5ulng.d.ts → environment.d.D8YDy2v5.d.ts} +2 -1
  8. package/dist/chunks/{global.d.CXRAxnWc.d.ts → global.d.BCOHQEpR.d.ts} +7 -2
  9. package/dist/chunks/{globals.CZAEe_Gf.js → globals.Cg4NtV4P.js} +2 -2
  10. package/dist/chunks/{index.B0uVAVvx.js → index.BPc7M5ni.js} +1 -1
  11. package/dist/chunks/{index.De2FqGmR.js → index.CUacZlWG.js} +14 -8
  12. package/dist/chunks/{index.Cu2UlluP.js → index.DbWBPwtH.js} +2 -2
  13. package/dist/chunks/{reporters.d.DG9VKi4m.d.ts → reporters.d.DGm4k1Wx.d.ts} +51 -11
  14. package/dist/chunks/{runBaseTests.BV8m0B-u.js → runBaseTests.CguliJB5.js} +5 -5
  15. package/dist/chunks/{setup-common.AQcDs321.js → setup-common.BP6KrF_Z.js} +1 -1
  16. package/dist/chunks/{utils.Cc45eY3L.js → utils.8gfOgtry.js} +19 -12
  17. package/dist/chunks/{vi.ClIskdbk.js → vi.BFR5YIgu.js} +3 -0
  18. package/dist/chunks/{vite.d.D3ndlJcw.d.ts → vite.d.DjP_ALCZ.d.ts} +1 -1
  19. package/dist/chunks/{worker.d.CHGSOG0s.d.ts → worker.d.CoCI7hzP.d.ts} +1 -1
  20. package/dist/chunks/{worker.d.C-KN07Ls.d.ts → worker.d.D5Xdi-Zr.d.ts} +1 -1
  21. package/dist/cli.js +1 -1
  22. package/dist/config.cjs +3 -0
  23. package/dist/config.d.ts +8 -5
  24. package/dist/config.js +3 -0
  25. package/dist/coverage.d.ts +3 -3
  26. package/dist/coverage.js +1 -1
  27. package/dist/environments.d.ts +2 -2
  28. package/dist/execute.d.ts +2 -2
  29. package/dist/index.d.ts +45 -10
  30. package/dist/index.js +2 -2
  31. package/dist/node.d.ts +8 -8
  32. package/dist/node.js +7 -7
  33. package/dist/reporters.d.ts +3 -3
  34. package/dist/reporters.js +2 -2
  35. package/dist/runners.d.ts +1 -1
  36. package/dist/runners.js +2 -2
  37. package/dist/workers/forks.js +1 -1
  38. package/dist/workers/runVmTests.js +5 -5
  39. package/dist/workers/threads.js +1 -1
  40. package/dist/workers.d.ts +3 -3
  41. package/dist/workers.js +1 -1
  42. package/package.json +11 -11
@@ -7605,7 +7605,7 @@ function getDefaultPoolName(project) {
7605
7605
  function getFilePoolName(project, file) {
7606
7606
  for (const [glob, pool] of project.config.poolMatchGlobs) {
7607
7607
  if (pool === "browser") {
7608
- throw new Error("Since Vitest 0.31.0 \"browser\" pool is not supported in \"poolMatchGlobs\". You can create a workspace to run some of your tests in browser in parallel. Read more: https://vitest.dev/guide/workspace");
7608
+ throw new Error("Since Vitest 0.31.0 \"browser\" pool is not supported in \"poolMatchGlobs\". You can create a project to run some of your tests in browser in parallel. Read more: https://vitest.dev/guide/projects");
7609
7609
  }
7610
7610
  if (mm.isMatch(file, glob, { cwd: project.config.root })) {
7611
7611
  return pool;
@@ -7872,6 +7872,8 @@ function resolveConfig$1(vitest, options, viteConfig) {
7872
7872
  };
7873
7873
  resolved.project = toArray(resolved.project);
7874
7874
  resolved.provide ??= {};
7875
+ resolved.name = typeof options.name === "string" ? options.name : options.name?.label || "";
7876
+ resolved.color = typeof options.name !== "string" ? options.name?.color : undefined;
7875
7877
  const inspector = resolved.inspect || resolved.inspectBrk;
7876
7878
  resolved.inspector = {
7877
7879
  ...resolved.inspector,
@@ -36,6 +36,7 @@ interface ModuleGraphData {
36
36
  inlined: string[];
37
37
  }
38
38
  interface ProvidedContext {}
39
+ type LabelColor = "black" | "red" | "green" | "yellow" | "blue" | "magenta" | "cyan" | "white";
39
40
 
40
41
  type HappyDOMOptions = Omit<NonNullable<ConstructorParameters<typeof happyDomTypes.Window>[0]>, "console">;
41
42
 
@@ -114,4 +115,4 @@ interface ResolvedTestEnvironment {
114
115
  options: Record<string, any> | null;
115
116
  }
116
117
 
117
- export type { AfterSuiteRunMeta as A, Constructable as C, Environment as E, HappyDOMOptions as H, JSDOMOptions as J, ModuleGraphData as M, Nullable as N, ProvidedContext as P, ResolvedTestEnvironment as R, TransformMode as T, UserConsoleLog as U, VmEnvironmentReturn as V, EnvironmentReturn as a, Awaitable as b, Arrayable as c, ArgumentsType as d, MutableArray as e, EnvironmentOptions as f, ModuleCache as g };
118
+ export type { AfterSuiteRunMeta as A, Constructable as C, Environment as E, HappyDOMOptions as H, JSDOMOptions as J, LabelColor as L, ModuleGraphData as M, Nullable as N, ProvidedContext as P, ResolvedTestEnvironment as R, TransformMode as T, UserConsoleLog as U, VmEnvironmentReturn as V, EnvironmentReturn as a, Awaitable as b, Arrayable as c, ArgumentsType as d, MutableArray as e, EnvironmentOptions as f, ModuleCache as g };
@@ -2,7 +2,7 @@ import { PromisifyAssertion, Tester, ExpectStatic } from '@vitest/expect';
2
2
  import { Plugin } from '@vitest/pretty-format';
3
3
  import { SnapshotState } from '@vitest/snapshot';
4
4
  import { B as BenchmarkResult } from './benchmark.d.BwvBVTda.js';
5
- import { U as UserConsoleLog } from './environment.d.Dmw5ulng.js';
5
+ import { U as UserConsoleLog } from './environment.d.D8YDy2v5.js';
6
6
 
7
7
  type RawErrsMap = Map<string, TscErrorInfo[]>;
8
8
  interface TscErrorInfo {
@@ -105,7 +105,12 @@ declare module "@vitest/expect" {
105
105
  }
106
106
  declare module "@vitest/runner" {
107
107
  interface TestContext {
108
- expect: ExpectStatic;
108
+ /**
109
+ * `expect` instance bound to the current test.
110
+ *
111
+ * This API is useful for running snapshot tests concurrently because global expect cannot track them.
112
+ */
113
+ readonly expect: ExpectStatic;
109
114
  }
110
115
  interface TaskMeta {
111
116
  typecheck?: boolean;
@@ -1,6 +1,6 @@
1
1
  import { g as globalApis } from './constants.BZZyIeIE.js';
2
- import { V as VitestIndex } from './index.B0uVAVvx.js';
3
- import './vi.ClIskdbk.js';
2
+ import { V as VitestIndex } from './index.BPc7M5ni.js';
3
+ import './vi.BFR5YIgu.js';
4
4
  import '@vitest/expect';
5
5
  import '@vitest/runner';
6
6
  import '@vitest/runner/utils';
@@ -1,4 +1,4 @@
1
- import { c as createExpect, a as globalExpect, i as inject, v as vi, b as vitest } from './vi.ClIskdbk.js';
1
+ import { c as createExpect, a as globalExpect, i as inject, v as vi, b as vitest } from './vi.BFR5YIgu.js';
2
2
  import { i as isFirstRun, a as runOnce } from './run-once.Dimr7O9f.js';
3
3
  import { b as bench } from './benchmark.BoF7jW0Q.js';
4
4
  import { expectTypeOf } from 'expect-type';
@@ -3,7 +3,7 @@ import { getTestName, hasFailed, getFullName, getTests, getSuites, getTasks } fr
3
3
  import * as pathe from 'pathe';
4
4
  import { relative, normalize, resolve, dirname } from 'pathe';
5
5
  import c from 'tinyrainbow';
6
- import { t as truncateString, e as errorBanner, F as F_POINTER, d as divider, f as formatTimeString, a as taskFail, b as F_CHECK, g as getStateSymbol, c as formatProjectName, h as F_RIGHT, w as withLabel, r as renderSnapshotSummary, p as padSummaryTitle, i as getStateString$1, j as formatTime, k as countTestErrors, l as F_TREE_NODE_END, m as F_TREE_NODE_MIDDLE } from './utils.Cc45eY3L.js';
6
+ import { t as truncateString, e as errorBanner, F as F_POINTER, d as divider, f as formatTimeString, a as taskFail, b as F_CHECK, g as getStateSymbol, c as formatProjectName, h as F_RIGHT, w as withLabel, r as renderSnapshotSummary, p as padSummaryTitle, i as getStateString$1, j as formatTime, k as countTestErrors, l as F_TREE_NODE_END, m as F_TREE_NODE_MIDDLE } from './utils.8gfOgtry.js';
7
7
  import { stripVTControlCharacters } from 'node:util';
8
8
  import { positionToOffset, lineSplitRE, isPrimitive, inspect, toArray, notNullish } from '@vitest/utils';
9
9
  import { performance as performance$1 } from 'node:perf_hooks';
@@ -687,7 +687,7 @@ class BaseReporter {
687
687
  title += ` ${c.bgBlue(c.bold(" TS "))}`;
688
688
  }
689
689
  if (testModule.project.name) {
690
- title += ` ${formatProjectName(testModule.project.name, "")}`;
690
+ title += ` ${formatProjectName(testModule.project, "")}`;
691
691
  }
692
692
  return ` ${title} ${testModule.task.name} ${suffix}`;
693
693
  }
@@ -893,7 +893,8 @@ class BaseReporter {
893
893
  continue;
894
894
  }
895
895
  const groupName = getFullName(group, c.dim(" > "));
896
- this.log(` ${formatProjectName(bench.file.projectName)}${bench.name}${c.dim(` - ${groupName}`)}`);
896
+ const project = this.ctx.projects.find((p) => p.name === bench.file.projectName);
897
+ this.log(` ${formatProjectName(project)}${bench.name}${c.dim(` - ${groupName}`)}`);
897
898
  const siblings = group.tasks.filter((i) => i.meta.benchmark && i.result?.benchmark && i !== bench).sort((a, b) => a.result.benchmark.rank - b.result.benchmark.rank);
898
899
  for (const sibling of siblings) {
899
900
  const number = (sibling.result.benchmark.mean / bench.result.benchmark.mean).toFixed(2);
@@ -928,11 +929,12 @@ class BaseReporter {
928
929
  for (const task of tasks) {
929
930
  const filepath = task?.filepath || "";
930
931
  const projectName = task?.projectName || task.file?.projectName || "";
932
+ const project = this.ctx.projects.find((p) => p.name === projectName);
931
933
  let name = getFullName(task, c.dim(" > "));
932
934
  if (filepath) {
933
935
  name += c.dim(` [ ${this.relative(filepath)} ]`);
934
936
  }
935
- this.ctx.logger.error(`${c.bgRed(c.bold(" FAIL "))} ${formatProjectName(projectName)}${name}`);
937
+ this.ctx.logger.error(`${c.bgRed(c.bold(" FAIL "))} ${formatProjectName(project)}${name}`);
936
938
  }
937
939
  const screenshotPaths = tasks.map((t) => t.meta?.failScreenshotPath).filter((screenshot) => screenshot != null);
938
940
  this.ctx.logger.printError(error, {
@@ -958,7 +960,7 @@ class BasicReporter extends BaseReporter {
958
960
  }
959
961
  onInit(ctx) {
960
962
  super.onInit(ctx);
961
- ctx.logger.log(c.bold(c.bgYellow(" DEPRECATED ")), c.yellow(`'basic' reporter is deprecated and will be removed in Vitest v3.\n` + `Remove 'basic' from 'reporters' option. To match 'basic' reporter 100%, use configuration:\n${JSON.stringify({ test: { reporters: [["default", { summary: false }]] } }, null, 2)}`));
963
+ ctx.logger.deprecate(`'basic' reporter is deprecated and will be removed in Vitest v3.\n` + `Remove 'basic' from 'reporters' option. To match 'basic' reporter 100%, use configuration:\n${JSON.stringify({ test: { reporters: [["default", { summary: false }]] } }, null, 2)}`);
962
964
  }
963
965
  reportSummary(files, errors) {
964
966
  this.ctx.logger.log();
@@ -1292,7 +1294,10 @@ class SummaryReporter {
1292
1294
  const summary = [""];
1293
1295
  for (const testFile of Array.from(this.runningModules.values()).sort(sortRunningModules)) {
1294
1296
  const typecheck = testFile.typecheck ? `${c.bgBlue(c.bold(" TS "))} ` : "";
1295
- summary.push(c.bold(c.yellow(` ${F_POINTER} `)) + formatProjectName(testFile.projectName) + typecheck + testFile.filename + c.dim(!testFile.completed && !testFile.total ? " [queued]" : ` ${testFile.completed}/${testFile.total}`));
1297
+ summary.push(c.bold(c.yellow(` ${F_POINTER} `)) + formatProjectName({
1298
+ name: testFile.projectName,
1299
+ color: testFile.projectColor
1300
+ }) + typecheck + testFile.filename + c.dim(!testFile.completed && !testFile.total ? " [queued]" : ` ${testFile.completed}/${testFile.total}`));
1296
1301
  const slowTasks = [testFile.hook, ...Array.from(testFile.tests.values())].filter((t) => t != null && t.visible);
1297
1302
  for (const [index, task] of slowTasks.entries()) {
1298
1303
  const elapsed = this.currentTime - task.startTime;
@@ -1366,6 +1371,7 @@ function initializeStats(module) {
1366
1371
  completed: 0,
1367
1372
  filename: module.task.name,
1368
1373
  projectName: module.project.name,
1374
+ projectColor: module.project.color,
1369
1375
  tests: new Map(),
1370
1376
  typecheck: !!module.task.meta.typecheck
1371
1377
  };
@@ -2112,7 +2118,7 @@ class VerboseReporter extends DefaultReporter {
2112
2118
  }
2113
2119
  let title = ` ${getStateSymbol(test.task)} `;
2114
2120
  if (test.project.name) {
2115
- title += formatProjectName(test.project.name);
2121
+ title += formatProjectName(test.project);
2116
2122
  }
2117
2123
  title += getFullName(test.task, c.dim(" > "));
2118
2124
  title += this.getDurationPrefix(test.task);
@@ -2377,7 +2383,7 @@ class BenchmarkReporter extends DefaultReporter {
2377
2383
  const benches = testTask.task.tasks.filter((t) => t.meta.benchmark);
2378
2384
  const duration = testTask.task.result?.duration || 0;
2379
2385
  if (benches.length > 0 && benches.every((t) => t.result?.state !== "run" && t.result?.state !== "queued")) {
2380
- let title = `\n ${getStateSymbol(testTask.task)} ${formatProjectName(testTask.project.name)}${getFullName(testTask.task, c.dim(" > "))}`;
2386
+ let title = `\n ${getStateSymbol(testTask.task)} ${formatProjectName(testTask.project)}${getFullName(testTask.task, c.dim(" > "))}`;
2381
2387
  if (duration != null && duration > this.ctx.config.slowTestThreshold) {
2382
2388
  title += c.yellow(` ${Math.round(duration)}${c.dim("ms")}`);
2383
2389
  }
@@ -1,6 +1,6 @@
1
1
  import * as chai from 'chai';
2
2
  import { resolve } from 'node:path';
3
- import { l as loadDiffConfig, b as loadSnapshotSerializers, t as takeCoverageInsideWorker } from './setup-common.AQcDs321.js';
3
+ import { l as loadDiffConfig, b as loadSnapshotSerializers, t as takeCoverageInsideWorker } from './setup-common.BP6KrF_Z.js';
4
4
  import { distDir } from '../path.js';
5
5
  import { r as rpc } from './rpc.D9_013TY.js';
6
6
  import { g as getWorkerState } from './utils.CgTj3MsC.js';
@@ -93,7 +93,7 @@ async function resolveTestRunner(config, executor) {
93
93
  const currentFailures = 1 + previousFailures;
94
94
  if (currentFailures >= config.bail) {
95
95
  rpc().onCancel("test-failure");
96
- testRunner.onCancel?.("test-failure");
96
+ testRunner.cancel?.("test-failure");
97
97
  }
98
98
  }
99
99
  await originalOnAfterRunTask?.call(testRunner, test);
@@ -1,12 +1,12 @@
1
1
  import { Task, TaskMeta, Suite, File, TaskResultPack, SequenceSetupFiles, SequenceHooks, CancelReason } from '@vitest/runner';
2
- import { b as Awaitable, U as UserConsoleLog, c as Arrayable$1, A as AfterSuiteRunMeta, f as EnvironmentOptions, P as ProvidedContext } from './environment.d.Dmw5ulng.js';
2
+ import { b as Awaitable, U as UserConsoleLog, c as Arrayable$1, A as AfterSuiteRunMeta, L as LabelColor, f as EnvironmentOptions, P as ProvidedContext } from './environment.d.D8YDy2v5.js';
3
3
  import { ParsedStack, TestError, SerializedError, ErrorWithDiff, Arrayable, Awaitable as Awaitable$1 } from '@vitest/utils';
4
4
  import { Writable } from 'node:stream';
5
5
  import { TransformResult as TransformResult$1, UserConfig as UserConfig$1, DepOptimizationConfig, ServerOptions, ConfigEnv, AliasOptions, ViteDevServer, ModuleNode } from 'vite';
6
6
  import { Console } from 'node:console';
7
7
  import { MockedModule } from '@vitest/mocker';
8
8
  import { StackTraceParserOptions } from '@vitest/utils/source-map';
9
- import { T as TestExecutionMethod } from './worker.d.CHGSOG0s.js';
9
+ import { T as TestExecutionMethod } from './worker.d.CoCI7hzP.js';
10
10
  import { a as SerializedConfig, F as FakeTimerInstallOpts } from './config.d.UqE-KR0o.js';
11
11
  import { PrettyFormatOptions } from '@vitest/pretty-format';
12
12
  import { SnapshotSummary, SnapshotStateOptions } from '@vitest/snapshot';
@@ -51,6 +51,7 @@ declare class Logger {
51
51
  clearScreen(message: string, force?: boolean): void;
52
52
  private _clearScreen;
53
53
  printError(err: unknown, options?: ErrorOptions): void;
54
+ deprecate(message: string): void;
54
55
  clearHighlightCache(filename?: string): void;
55
56
  highlight(filename: string, source: string): string;
56
57
  printNoTestFound(filters?: string[]): void;
@@ -1065,6 +1066,11 @@ interface TestSequencerConstructor {
1065
1066
  new (ctx: Vitest): TestSequencer;
1066
1067
  }
1067
1068
 
1069
+ interface WatcherTriggerPattern {
1070
+ pattern: RegExp;
1071
+ testsToRun: (file: string, match: RegExpMatchArray) => string[] | string | null | undefined | void;
1072
+ }
1073
+
1068
1074
  interface BenchmarkUserOptions {
1069
1075
  /**
1070
1076
  * Include globs for benchmark test files
@@ -1377,8 +1383,21 @@ interface CoverageIstanbulOptions extends BaseCoverageOptions {
1377
1383
  interface CoverageV8Options extends BaseCoverageOptions {
1378
1384
  /**
1379
1385
  * Ignore empty lines, comments and other non-runtime code, e.g. Typescript types
1386
+ * - Requires `experimentalAstAwareRemapping: false`
1380
1387
  */
1381
1388
  ignoreEmptyLines?: boolean;
1389
+ /**
1390
+ * Remap coverage with experimental AST based analysis
1391
+ * - Provides more accurate results compared to default mode
1392
+ */
1393
+ experimentalAstAwareRemapping?: boolean;
1394
+ /**
1395
+ * Set to array of class method names to ignore for coverage.
1396
+ * - Requires `experimentalAstAwareRemapping: true`
1397
+ *
1398
+ * @default []
1399
+ */
1400
+ ignoreClassMethods?: string[];
1382
1401
  }
1383
1402
  interface CustomProviderOptions extends Pick<BaseCoverageOptions, FieldsWithDefaultValues> {
1384
1403
  /** Name of the module or path to a file to load the custom provider from */
@@ -1412,6 +1431,10 @@ type CSSModuleScopeStrategy = "stable" | "scoped" | "non-scoped";
1412
1431
  type ApiConfig = Pick<ServerOptions, "port" | "strictPort" | "host" | "middlewareMode">;
1413
1432
 
1414
1433
  type VitestRunMode = "test" | "benchmark";
1434
+ interface ProjectName {
1435
+ label: string;
1436
+ color?: LabelColor;
1437
+ }
1415
1438
  interface SequenceOptions {
1416
1439
  /**
1417
1440
  * Class that handles sorting and sharding algorithm.
@@ -1578,7 +1601,7 @@ interface InlineConfig {
1578
1601
  /**
1579
1602
  * Name of the project. Will be used to display in the reporter.
1580
1603
  */
1581
- name?: string;
1604
+ name?: string | ProjectName;
1582
1605
  /**
1583
1606
  * Benchmark options.
1584
1607
  *
@@ -1643,7 +1666,7 @@ interface InlineConfig {
1643
1666
  *
1644
1667
  * Format: [glob, environment-name]
1645
1668
  *
1646
- * @deprecated use [`workspace`](https://vitest.dev/config/#environmentmatchglobs) instead
1669
+ * @deprecated use [`projects`](https://vitest.dev/config/#projects) instead
1647
1670
  * @default []
1648
1671
  * @example [
1649
1672
  * // all tests in tests/dom will run in jsdom
@@ -1694,7 +1717,7 @@ interface InlineConfig {
1694
1717
  *
1695
1718
  * Format: [glob, pool-name]
1696
1719
  *
1697
- * @deprecated use [`workspace`](https://vitest.dev/config/#poolmatchglobs) instead
1720
+ * @deprecated use [`projects`](https://vitest.dev/config/#projects) instead
1698
1721
  * @default []
1699
1722
  * @example [
1700
1723
  * // all tests in "forks" directory will run using "poolOptions.forks" API
@@ -1705,7 +1728,12 @@ interface InlineConfig {
1705
1728
  */
1706
1729
  poolMatchGlobs?: [string, Exclude<Pool, "browser">][];
1707
1730
  /**
1731
+ * Options for projects
1732
+ */
1733
+ projects?: TestProjectConfiguration[];
1734
+ /**
1708
1735
  * Path to a workspace configuration file
1736
+ * @deprecated use `projects` instead
1709
1737
  */
1710
1738
  workspace?: string | TestProjectConfiguration[];
1711
1739
  /**
@@ -1787,6 +1815,11 @@ interface InlineConfig {
1787
1815
  */
1788
1816
  forceRerunTriggers?: string[];
1789
1817
  /**
1818
+ * Pattern configuration to rerun only the tests that are affected
1819
+ * by the changes of specific files in the repository.
1820
+ */
1821
+ watchTriggerPatterns?: WatcherTriggerPattern[];
1822
+ /**
1790
1823
  * Coverage options
1791
1824
  */
1792
1825
  coverage?: CoverageOptions;
@@ -2201,8 +2234,10 @@ interface UserConfig extends InlineConfig {
2201
2234
  */
2202
2235
  mergeReports?: string;
2203
2236
  }
2204
- interface ResolvedConfig extends Omit<Required<UserConfig>, "project" | "config" | "filters" | "browser" | "coverage" | "testNamePattern" | "related" | "api" | "reporters" | "resolveSnapshotPath" | "benchmark" | "shard" | "cache" | "sequence" | "typecheck" | "runner" | "poolOptions" | "pool" | "cliExclude" | "diff" | "setupFiles" | "snapshotEnvironment" | "bail"> {
2237
+ interface ResolvedConfig extends Omit<Required<UserConfig>, "project" | "config" | "filters" | "browser" | "coverage" | "testNamePattern" | "related" | "api" | "reporters" | "resolveSnapshotPath" | "benchmark" | "shard" | "cache" | "sequence" | "typecheck" | "runner" | "poolOptions" | "pool" | "cliExclude" | "diff" | "setupFiles" | "snapshotEnvironment" | "bail" | "name"> {
2205
2238
  mode: VitestRunMode;
2239
+ name: ProjectName["label"];
2240
+ color?: ProjectName["color"];
2206
2241
  base?: string;
2207
2242
  diff?: string | SerializedDiffOptions;
2208
2243
  bail?: number;
@@ -2250,7 +2285,7 @@ interface ResolvedConfig extends Omit<Required<UserConfig>, "project" | "config"
2250
2285
  maxWorkers: number;
2251
2286
  minWorkers: number;
2252
2287
  }
2253
- type NonProjectOptions = "shard" | "watch" | "run" | "cache" | "update" | "reporters" | "outputFile" | "teardownTimeout" | "silent" | "forceRerunTriggers" | "testNamePattern" | "ui" | "open" | "uiBase" | "snapshotFormat" | "resolveSnapshotPath" | "passWithNoTests" | "onConsoleLog" | "onStackTrace" | "dangerouslyIgnoreUnhandledErrors" | "slowTestThreshold" | "inspect" | "inspectBrk" | "coverage" | "maxWorkers" | "minWorkers" | "fileParallelism" | "workspace";
2288
+ type NonProjectOptions = "shard" | "watch" | "run" | "cache" | "update" | "reporters" | "outputFile" | "teardownTimeout" | "silent" | "forceRerunTriggers" | "testNamePattern" | "ui" | "open" | "uiBase" | "snapshotFormat" | "resolveSnapshotPath" | "passWithNoTests" | "onConsoleLog" | "onStackTrace" | "dangerouslyIgnoreUnhandledErrors" | "slowTestThreshold" | "inspect" | "inspectBrk" | "coverage" | "maxWorkers" | "minWorkers" | "fileParallelism" | "workspace" | "watchTriggerPatterns";
2254
2289
  type ProjectConfig = Omit<InlineConfig, NonProjectOptions | "sequencer" | "deps" | "poolOptions"> & {
2255
2290
  mode?: string
2256
2291
  sequencer?: Omit<SequenceOptions, "sequencer" | "seed">
@@ -2313,12 +2348,13 @@ interface BrowserProviderModule {
2313
2348
  }
2314
2349
  interface BrowserProviderOptions {}
2315
2350
  type BrowserBuiltinProvider = "webdriverio" | "playwright" | "preview";
2316
- type UnsupportedProperties = "browser" | "typecheck" | "alias" | "sequence" | "root" | "pool" | "poolOptions" | "runner" | "api" | "deps" | "testTransformMode" | "poolMatchGlobs" | "environmentMatchGlobs" | "environment" | "environmentOptions" | "server" | "benchmark";
2351
+ type UnsupportedProperties = "browser" | "typecheck" | "alias" | "sequence" | "root" | "pool" | "poolOptions" | "runner" | "api" | "deps" | "testTransformMode" | "poolMatchGlobs" | "environmentMatchGlobs" | "environment" | "environmentOptions" | "server" | "benchmark" | "name";
2317
2352
  interface BrowserInstanceOption extends BrowserProviderOptions, Omit<ProjectConfig, UnsupportedProperties>, Pick<BrowserConfigOptions, "headless" | "locators" | "viewport" | "testerHtmlPath" | "screenshotDirectory" | "screenshotFailures"> {
2318
2353
  /**
2319
2354
  * Name of the browser
2320
2355
  */
2321
2356
  browser: string;
2357
+ name?: string;
2322
2358
  }
2323
2359
  interface BrowserConfigOptions {
2324
2360
  /**
@@ -2588,6 +2624,10 @@ declare class TestProject {
2588
2624
  */
2589
2625
  get name(): string;
2590
2626
  /**
2627
+ * The color used when reporting tasks of this project.
2628
+ */
2629
+ get color(): ProjectName["color"];
2630
+ /**
2591
2631
  * Serialized project configuration. This is the config that tests receive.
2592
2632
  */
2593
2633
  get serializedConfig(): SerializedConfig;
@@ -2889,7 +2929,7 @@ declare class Vitest {
2889
2929
  */
2890
2930
  import<T>(moduleId: string): Promise<T>;
2891
2931
  private resolveWorkspaceConfigPath;
2892
- private resolveWorkspace;
2932
+ private resolveProjects;
2893
2933
  /**
2894
2934
  * Glob test files in every project and create a TestSpecification for each file and pool.
2895
2935
  * @param filters String filters to match the test files.
@@ -3053,5 +3093,5 @@ declare class Vitest {
3053
3093
  type OnServerRestartHandler = (reason?: string) => Promise<void> | void;
3054
3094
  type OnTestsRerunHandler = (testFiles: TestSpecification[]) => Promise<void> | void;
3055
3095
 
3056
- export { CoverageMap as C, TestSpecification as J, TestModule as K, Logger as L, VitestPackageInstaller as Q, TestProject as T, Vitest as V, getFilePoolName as Z, TestCase as a3, TestCollection as a4, BasicReporter as aB, BenchmarkReporter as aC, BenchmarkReportsMap as aD, DefaultReporter as aE, DotReporter as aF, GithubActionsReporter as aG, HangingProcessReporter as aH, JsonReporter as aI, JUnitReporter as aJ, ReportersMap as aK, TapFlatReporter as aL, TapReporter as aM, VerboseBenchmarkReporter as aN, VerboseReporter as aO, BaseReporter as aP, TestSuite as ac };
3057
- export type { HTMLOptions as $, ApiConfig as A, BaseCoverageOptions as B, DepsOptimizationOptions as D, BenchmarkUserOptions as E, BrowserTesterOptions as F, VitestOptions as G, TestSequencer as H, InlineConfig as I, ModuleDiagnostic as M, OnTestsRerunHandler as N, OnServerRestartHandler as O, Pool as P, ResolvedCoverageOptions as R, SerializedTestSpecification as S, UserWorkspaceConfig as U, WorkspaceProjectConfiguration as W, ProcessPool as X, WorkspaceSpec as Y, SerializedTestProject as _, ReportContext as a, JsonOptions$1 as a0, JUnitOptions as a1, TaskOptions as a2, TestDiagnostic as a5, TestModuleState as a6, TestResult as a7, TestResultFailed as a8, TestResultPassed as a9, TestRunEndReason as aA, BenchmarkBuiltinReporters as aQ, BuiltinReporterOptions as aR, BuiltinReporters as aS, JsonAssertionResult as aT, JsonTestResult as aU, JsonTestResults as aV, TestResultSkipped as aa, TestState as ab, TestSuiteState as ad, TestSequencerConstructor as ae, BrowserBuiltinProvider as af, BrowserCommand as ag, BrowserCommandContext as ah, BrowserInstanceOption as ai, BrowserModuleMocker as aj, BrowserOrchestrator as ak, BrowserProvider as al, BrowserProviderInitializationOptions as am, BrowserProviderModule as an, BrowserProviderOptions as ao, BrowserServerState as ap, BrowserServerStateSession as aq, CDPSession as ar, ParentProjectBrowser as as, ProjectBrowser as at, ResolvedBrowserOptions as au, ResolvedProjectConfig as av, ResolveSnapshotPathHandler as aw, ResolveSnapshotPathHandlerContext as ax, TestRunResult as ay, ReportedHookContext as az, TestProjectConfiguration as b, CoverageV8Options as c, UserProjectConfigFn as d, UserProjectConfigExport as e, TestProjectInlineConfiguration as f, CoverageProvider as g, CoverageProviderModule as h, CoverageReporter as i, CoverageProviderName as j, CoverageOptions as k, CoverageIstanbulOptions as l, CustomProviderOptions as m, Reporter as n, BrowserScript as o, BrowserConfigOptions as p, BuiltinEnvironment as q, VitestEnvironment as r, PoolOptions as s, CSSModuleScopeStrategy as t, VitestRunMode as u, TransformModePatterns as v, TypecheckConfig as w, UserConfig as x, ResolvedConfig as y, ProjectConfig as z };
3096
+ export { CoverageMap as C, TestSpecification as K, Logger as L, TestModule as M, TestProject as T, Vitest as V, VitestPackageInstaller as X, getFilePoolName as _, TestCase as a4, TestCollection as a5, BasicReporter as aC, BenchmarkReporter as aD, BenchmarkReportsMap as aE, DefaultReporter as aF, DotReporter as aG, GithubActionsReporter as aH, HangingProcessReporter as aI, JsonReporter as aJ, JUnitReporter as aK, ReportersMap as aL, TapFlatReporter as aM, TapReporter as aN, VerboseBenchmarkReporter as aO, VerboseReporter as aP, BaseReporter as aQ, TestSuite as ad };
3097
+ export type { SerializedTestProject as $, ApiConfig as A, BaseCoverageOptions as B, DepsOptimizationOptions as D, ProjectConfig as E, BenchmarkUserOptions as F, BrowserTesterOptions as G, VitestOptions as H, InlineConfig as I, TestSequencer as J, ModuleDiagnostic as N, OnServerRestartHandler as O, Pool as P, OnTestsRerunHandler as Q, ResolvedCoverageOptions as R, SerializedTestSpecification as S, UserWorkspaceConfig as U, WorkspaceProjectConfiguration as W, ProcessPool as Y, WorkspaceSpec as Z, ReportContext as a, HTMLOptions as a0, JsonOptions$1 as a1, JUnitOptions as a2, TaskOptions as a3, TestDiagnostic as a6, TestModuleState as a7, TestResult as a8, TestResultFailed as a9, ReportedHookContext as aA, TestRunEndReason as aB, BenchmarkBuiltinReporters as aR, BuiltinReporterOptions as aS, BuiltinReporters as aT, JsonAssertionResult as aU, JsonTestResult as aV, JsonTestResults as aW, TestResultPassed as aa, TestResultSkipped as ab, TestState as ac, TestSuiteState as ae, TestSequencerConstructor as af, BrowserBuiltinProvider as ag, BrowserCommand as ah, BrowserCommandContext as ai, BrowserInstanceOption as aj, BrowserModuleMocker as ak, BrowserOrchestrator as al, BrowserProvider as am, BrowserProviderInitializationOptions as an, BrowserProviderModule as ao, BrowserProviderOptions as ap, BrowserServerState as aq, BrowserServerStateSession as ar, CDPSession as as, ParentProjectBrowser as at, ProjectBrowser as au, ResolvedBrowserOptions as av, ResolvedProjectConfig as aw, ResolveSnapshotPathHandler as ax, ResolveSnapshotPathHandlerContext as ay, TestRunResult as az, TestProjectConfiguration as b, CoverageV8Options as c, UserProjectConfigFn as d, UserProjectConfigExport as e, TestProjectInlineConfiguration as f, WatcherTriggerPattern as g, CoverageProvider as h, CoverageProviderModule as i, CoverageReporter as j, CoverageProviderName as k, CoverageOptions as l, CoverageIstanbulOptions as m, CustomProviderOptions as n, Reporter as o, BrowserScript as p, BrowserConfigOptions as q, BuiltinEnvironment as r, VitestEnvironment as s, PoolOptions as t, CSSModuleScopeStrategy as u, VitestRunMode as v, TransformModePatterns as w, TypecheckConfig as x, UserConfig as y, ResolvedConfig as z };
@@ -1,8 +1,8 @@
1
1
  import { performance } from 'node:perf_hooks';
2
2
  import { startTests, collectTests } from '@vitest/runner';
3
- import { a as resolveSnapshotEnvironment, s as setupChaiConfig, r as resolveTestRunner } from './index.Cu2UlluP.js';
4
- import { c as setupCommonEnv, s as startCoverageInsideWorker, a as stopCoverageInsideWorker } from './setup-common.AQcDs321.js';
5
- import { a as globalExpect, v as vi } from './vi.ClIskdbk.js';
3
+ import { a as resolveSnapshotEnvironment, s as setupChaiConfig, r as resolveTestRunner } from './index.DbWBPwtH.js';
4
+ import { c as setupCommonEnv, s as startCoverageInsideWorker, a as stopCoverageInsideWorker } from './setup-common.BP6KrF_Z.js';
5
+ import { a as globalExpect, v as vi } from './vi.BFR5YIgu.js';
6
6
  import { c as closeInspector } from './inspector.DbDkSkFn.js';
7
7
  import { createRequire } from 'node:module';
8
8
  import timers from 'node:timers';
@@ -11,7 +11,7 @@ import util from 'node:util';
11
11
  import { getSafeTimers } from '@vitest/utils';
12
12
  import { KNOWN_ASSET_TYPES } from 'vite-node/constants';
13
13
  import { installSourcemapsSupport } from 'vite-node/source-map';
14
- import { V as VitestIndex } from './index.B0uVAVvx.js';
14
+ import { V as VitestIndex } from './index.BPc7M5ni.js';
15
15
  import { g as getWorkerState, r as resetModules } from './utils.CgTj3MsC.js';
16
16
  import 'chai';
17
17
  import 'node:path';
@@ -106,7 +106,7 @@ async function run(method, files, config, environment, executor) {
106
106
  const runner = await resolveTestRunner(config, executor);
107
107
  workerState.onCancel.then((reason) => {
108
108
  closeInspector(config);
109
- runner.onCancel?.(reason);
109
+ runner.cancel?.(reason);
110
110
  });
111
111
  workerState.durations.prepare = performance.now() - workerState.durations.prepare;
112
112
  workerState.durations.environment = performance.now();
@@ -36,7 +36,7 @@ async function setupCommonEnv(config) {
36
36
  globalSetup = true;
37
37
  setSafeTimers();
38
38
  if (config.globals) {
39
- (await import('./globals.CZAEe_Gf.js')).registerApiGlobally();
39
+ (await import('./globals.Cg4NtV4P.js')).registerApiGlobally();
40
40
  }
41
41
  }
42
42
  function setupDefines(defines) {
@@ -21,6 +21,12 @@ const testPass = c.green(F_CHECK);
21
21
  const taskFail = c.red(F_CROSS);
22
22
  const suiteFail = c.red(F_POINTER);
23
23
  const pending = c.gray("·");
24
+ const labelDefaultColors = [
25
+ c.bgYellow,
26
+ c.bgCyan,
27
+ c.bgGreen,
28
+ c.bgMagenta
29
+ ];
24
30
  function getCols(delta = 0) {
25
31
  let length = process.stdout?.columns;
26
32
  if (!length || Number.isNaN(length)) {
@@ -142,21 +148,19 @@ function formatTime(time) {
142
148
  }
143
149
  return `${Math.round(time)}ms`;
144
150
  }
145
- function formatProjectName(name, suffix = " ") {
146
- if (!name) {
151
+ function formatProjectName(project, suffix = " ") {
152
+ if (!project?.name) {
147
153
  return "";
148
154
  }
149
155
  if (!c.isColorSupported) {
150
- return `|${name}|${suffix}`;
151
- }
152
- const index = name.split("").reduce((acc, v, idx) => acc + v.charCodeAt(0) + idx, 0);
153
- const colors = [
154
- c.bgYellow,
155
- c.bgCyan,
156
- c.bgGreen,
157
- c.bgMagenta
158
- ];
159
- return c.black(colors[index % colors.length](` ${name} `)) + suffix;
156
+ return `|${project.name}|${suffix}`;
157
+ }
158
+ let background = project.color && c[`bg${capitalize(project.color)}`];
159
+ if (!background) {
160
+ const index = project.name.split("").reduce((acc, v, idx) => acc + v.charCodeAt(0) + idx, 0);
161
+ background = labelDefaultColors[index % labelDefaultColors.length];
162
+ }
163
+ return c.black(background(` ${project.name} `)) + suffix;
160
164
  }
161
165
  function withLabel(color, label, message) {
162
166
  const bgColor = `bg${color.charAt(0).toUpperCase()}${color.slice(1)}`;
@@ -172,6 +176,9 @@ function truncateString(text, maxLength) {
172
176
  }
173
177
  return `${plainText.slice(0, maxLength - 1)}…`;
174
178
  }
179
+ function capitalize(text) {
180
+ return `${text[0].toUpperCase()}${text.slice(1)}`;
181
+ }
175
182
 
176
183
  var utils = /*#__PURE__*/Object.freeze({
177
184
  __proto__: null,
@@ -4032,6 +4032,9 @@ function createVitest() {
4032
4032
  async importMock(path) {
4033
4033
  return _mocker().importMock(path, getImporter("importMock"));
4034
4034
  },
4035
+ mockObject(value) {
4036
+ return _mocker().mockObject({ value }).value;
4037
+ },
4035
4038
  mocked(item, _options = {}) {
4036
4039
  return item;
4037
4040
  },
@@ -1,5 +1,5 @@
1
1
  import { HookHandler } from 'vite';
2
- import { V as Vitest, T as TestProject, b as TestProjectConfiguration, I as InlineConfig } from './reporters.d.DG9VKi4m.js';
2
+ import { V as Vitest, T as TestProject, b as TestProjectConfiguration, I as InlineConfig } from './reporters.d.DGm4k1Wx.js';
3
3
 
4
4
  interface VitestPluginContext {
5
5
  vitest: Vitest;
@@ -1,7 +1,7 @@
1
1
  import { File, TaskResultPack, TaskEventPack, CancelReason, FileSpecification, Task } from '@vitest/runner';
2
2
  import { ViteNodeResolveId, ModuleCacheMap, ModuleExecutionInfo } from 'vite-node';
3
3
  import { a as SerializedConfig } from './config.d.UqE-KR0o.js';
4
- import { T as TransformMode, U as UserConsoleLog, A as AfterSuiteRunMeta, E as Environment } from './environment.d.Dmw5ulng.js';
4
+ import { T as TransformMode, U as UserConsoleLog, A as AfterSuiteRunMeta, E as Environment } from './environment.d.D8YDy2v5.js';
5
5
  import { SnapshotResult } from '@vitest/snapshot';
6
6
 
7
7
  type ArgumentsType<T> = T extends (...args: infer A) => any ? A : never;
@@ -1,5 +1,5 @@
1
1
  import { MessagePort } from 'node:worker_threads';
2
- import { C as ContextRPC } from './worker.d.CHGSOG0s.js';
2
+ import { C as ContextRPC } from './worker.d.CoCI7hzP.js';
3
3
 
4
4
  interface WorkerContext extends ContextRPC {
5
5
  port: MessagePort;
package/dist/cli.js CHANGED
@@ -1,4 +1,4 @@
1
- import { c as createCLI } from './chunks/cac.BN2e7cE1.js';
1
+ import { c as createCLI } from './chunks/cac.TfX2-DVH.js';
2
2
  import '@vitest/utils';
3
3
  import 'events';
4
4
  import 'pathe';
package/dist/config.cjs CHANGED
@@ -124,6 +124,9 @@ function defineConfig(config) {
124
124
  function defineProject(config) {
125
125
  return config;
126
126
  }
127
+ /**
128
+ * @deprecated use the `projects` field in the root config instead
129
+ */
127
130
  function defineWorkspace(config) {
128
131
  return config;
129
132
  }
package/dist/config.d.ts CHANGED
@@ -1,18 +1,18 @@
1
1
  import { UserConfig as UserConfig$1, ConfigEnv } from 'vite';
2
2
  export { ConfigEnv, Plugin, UserConfig as ViteUserConfig, mergeConfig } from 'vite';
3
- import { c as CoverageV8Options, R as ResolvedCoverageOptions, U as UserWorkspaceConfig, d as UserProjectConfigFn, e as UserProjectConfigExport, b as TestProjectConfiguration } from './chunks/reporters.d.DG9VKi4m.js';
4
- export { f as TestProjectInlineConfiguration, W as WorkspaceProjectConfiguration } from './chunks/reporters.d.DG9VKi4m.js';
5
- import './chunks/vite.d.D3ndlJcw.js';
3
+ import { c as CoverageV8Options, R as ResolvedCoverageOptions, U as UserWorkspaceConfig, d as UserProjectConfigFn, e as UserProjectConfigExport, b as TestProjectConfiguration } from './chunks/reporters.d.DGm4k1Wx.js';
4
+ export { f as TestProjectInlineConfiguration, g as WatcherTriggerPattern, W as WorkspaceProjectConfiguration } from './chunks/reporters.d.DGm4k1Wx.js';
5
+ import './chunks/vite.d.DjP_ALCZ.js';
6
6
  import { F as FakeTimerInstallOpts } from './chunks/config.d.UqE-KR0o.js';
7
7
  import '@vitest/runner';
8
- import './chunks/environment.d.Dmw5ulng.js';
8
+ import './chunks/environment.d.D8YDy2v5.js';
9
9
  import 'vitest/optional-types.js';
10
10
  import '@vitest/utils';
11
11
  import 'node:stream';
12
12
  import 'node:console';
13
13
  import '@vitest/mocker';
14
14
  import '@vitest/utils/source-map';
15
- import './chunks/worker.d.CHGSOG0s.js';
15
+ import './chunks/worker.d.CoCI7hzP.js';
16
16
  import 'vite-node';
17
17
  import '@vitest/snapshot';
18
18
  import '@vitest/pretty-format';
@@ -90,6 +90,9 @@ declare function defineProject(config: UserWorkspaceConfig): UserWorkspaceConfig
90
90
  declare function defineProject(config: Promise<UserWorkspaceConfig>): Promise<UserWorkspaceConfig>;
91
91
  declare function defineProject(config: UserProjectConfigFn): UserProjectConfigFn;
92
92
  declare function defineProject(config: UserProjectConfigExport): UserProjectConfigExport;
93
+ /**
94
+ * @deprecated use the `projects` field in the root config instead
95
+ */
93
96
  declare function defineWorkspace(config: TestProjectConfiguration[]): TestProjectConfiguration[];
94
97
 
95
98
  export { TestProjectConfiguration, UserProjectConfigExport, UserProjectConfigFn, UserWorkspaceConfig, configDefaults, coverageConfigDefaults, defaultBrowserPort, defaultExclude, defaultInclude, defineConfig, defineProject, defineWorkspace, extraInlineDeps };
package/dist/config.js CHANGED
@@ -11,6 +11,9 @@ function defineConfig(config) {
11
11
  function defineProject(config) {
12
12
  return config;
13
13
  }
14
+ /**
15
+ * @deprecated use the `projects` field in the root config instead
16
+ */
14
17
  function defineWorkspace(config) {
15
18
  return config;
16
19
  }
@@ -1,13 +1,13 @@
1
- import { R as ResolvedCoverageOptions, V as Vitest, C as CoverageMap, a as ReportContext } from './chunks/reporters.d.DG9VKi4m.js';
1
+ import { R as ResolvedCoverageOptions, V as Vitest, C as CoverageMap, a as ReportContext } from './chunks/reporters.d.DGm4k1Wx.js';
2
2
  import { TransformResult } from 'vite';
3
- import { A as AfterSuiteRunMeta } from './chunks/environment.d.Dmw5ulng.js';
3
+ import { A as AfterSuiteRunMeta } from './chunks/environment.d.D8YDy2v5.js';
4
4
  import '@vitest/runner';
5
5
  import '@vitest/utils';
6
6
  import 'node:stream';
7
7
  import 'node:console';
8
8
  import '@vitest/mocker';
9
9
  import '@vitest/utils/source-map';
10
- import './chunks/worker.d.CHGSOG0s.js';
10
+ import './chunks/worker.d.CoCI7hzP.js';
11
11
  import 'vite-node';
12
12
  import './chunks/config.d.UqE-KR0o.js';
13
13
  import '@vitest/pretty-format';
package/dist/coverage.js CHANGED
@@ -1,4 +1,4 @@
1
- export { B as BaseCoverageProvider } from './chunks/coverage.87S59-Sl.js';
1
+ export { B as BaseCoverageProvider } from './chunks/coverage.z0LVMxgb.js';
2
2
  import 'node:fs';
3
3
  import './chunks/_commonjsHelpers.BFTU3MAI.js';
4
4
  import 'util';
@@ -1,5 +1,5 @@
1
- import { E as Environment } from './chunks/environment.d.Dmw5ulng.js';
2
- export { a as EnvironmentReturn, V as VmEnvironmentReturn } from './chunks/environment.d.Dmw5ulng.js';
1
+ import { E as Environment } from './chunks/environment.d.D8YDy2v5.js';
2
+ export { a as EnvironmentReturn, V as VmEnvironmentReturn } from './chunks/environment.d.D8YDy2v5.js';
3
3
  import 'vitest/optional-types.js';
4
4
 
5
5
  declare const environments: {
package/dist/execute.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { ViteNodeRunnerOptions } from 'vite-node';
2
2
  import { ViteNodeRunner, ModuleExecutionInfo } from 'vite-node/client';
3
- import { R as RuntimeRPC, W as WorkerGlobalState } from './chunks/worker.d.CHGSOG0s.js';
3
+ import { R as RuntimeRPC, W as WorkerGlobalState } from './chunks/worker.d.CoCI7hzP.js';
4
4
  import vm from 'node:vm';
5
5
  import { MockedModule, MockedModuleType } from '@vitest/mocker';
6
6
  import { P as PendingSuiteMock, b as MockFactory, a as MockOptions } from './chunks/mocker.d.BE_2ls6u.js';
@@ -10,7 +10,7 @@ import '@vitest/pretty-format';
10
10
  import '@vitest/snapshot';
11
11
  import '@vitest/snapshot/environment';
12
12
  import '@vitest/utils/diff';
13
- import './chunks/environment.d.Dmw5ulng.js';
13
+ import './chunks/environment.d.D8YDy2v5.js';
14
14
  import 'vitest/optional-types.js';
15
15
 
16
16
  declare class FileMap {