vitest 5.0.3 → 5.0.5

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 (72) hide show
  1. package/LICENSE.md +1 -1
  2. package/dist/browser.d.ts +4 -4
  3. package/dist/browser.js +11 -11
  4. package/dist/chunks/{base.DhkQeZwd.js → base.CzXt2BO_.js} +40 -15
  5. package/dist/chunks/{browser.d.3cffPS1V.d.ts → browser.d.FGQ9_rK6.d.ts} +3 -3
  6. package/dist/chunks/{cac.DfDGTQ9W.js → cac.CLrZKo1g.js} +21 -23
  7. package/dist/chunks/cli-api.De07GUeT.js +13894 -0
  8. package/dist/chunks/{config.d.BxjInJat.d.ts → config.d.QBNYCgFU.d.ts} +20 -9
  9. package/dist/chunks/{console.RBA5x-0t.js → console.DtI4yxfN.js} +5 -5
  10. package/dist/chunks/{coverage.S6Dao4g-.js → coverage.-bm5IxnW.js} +1 -1
  11. package/dist/chunks/{coverage._yXj5zeb.js → coverage.cTDc4uSS.js} +1 -1
  12. package/dist/chunks/{creator.203NYCo3.js → creator.C5g4egeG.js} +43 -53
  13. package/dist/chunks/{defaults.D2ip7f-X.js → defaults.B1FCaFfh.js} +2 -2
  14. package/dist/chunks/{display.CXBnkt9a.js → display.BlTmubjj.js} +1 -1
  15. package/dist/chunks/{doctor.CpHPRoza.js → doctor.BK86Cncq.js} +40 -41
  16. package/dist/chunks/{env.DzFJjrmK.js → env.BKKtU2WC.js} +1 -1
  17. package/dist/chunks/{environment.d.DAj1Vt__.d.ts → environment.d.BY56MoGs.d.ts} +1 -1
  18. package/dist/chunks/{globals.9QtHn8Sr.js → globals.CXEE6_2C.js} +10 -10
  19. package/dist/chunks/{index.DpLw24bj.js → index.1TqnEahn.js} +7209 -19488
  20. package/dist/chunks/{index.DXQx-kDM.js → index.BoyTG_B7.js} +9 -4
  21. package/dist/chunks/{index.k8L_ZRzq.js → index.CK-t0WMg.js} +60 -53
  22. package/dist/chunks/{index.ggMXe2IF.js → index.CoUIxZd4.js} +7 -5
  23. package/dist/chunks/{index.cx-_w29y.js → index.D0heQG4v.js} +5 -3
  24. package/dist/chunks/{index.C4tKZ0yW.js → index.aTZaPVhf.js} +88 -68
  25. package/dist/chunks/{init-forks.hzLs7kMZ.js → init-forks.CRxIPOJR.js} +1 -1
  26. package/dist/chunks/{init-threads.COb0VD5D.js → init-threads.Dv3kwST_.js} +1 -1
  27. package/dist/chunks/{init.D0qF-GGk.js → init.PvxYpuCm.js} +7 -6
  28. package/dist/chunks/module-dependencies.CwNPkcV4.js +71 -0
  29. package/dist/chunks/{native.CBlba4VV.js → native.cdzHIdmv.js} +47 -33
  30. package/dist/chunks/{nativeModuleMocker.CXSh3m91.js → nativeModuleMocker.BxrHJNAF.js} +26 -5
  31. package/dist/chunks/{nativeModuleRunner.jwZPY3dg.js → nativeModuleRunner.xi64Afb2.js} +1 -1
  32. package/dist/chunks/{node.BzimPqT5.js → node.uQulW0ei.js} +1 -1
  33. package/dist/chunks/{pathe.M-eThtNZ.CknpM8Or.js → pathe.M-eThtNZ.Ba-7h1rE.js} +8 -6
  34. package/dist/chunks/{plugin.d.BsjqSb4-.d.ts → plugin.d.C8mmycim.d.ts} +88 -53
  35. package/dist/chunks/{plugins.D2ut1V9b.js → plugins.DPQHVT0p.js} +1 -1
  36. package/dist/chunks/{resolver.fbW9AUvG.js → resolver.CtCcxIy1.js} +1 -1
  37. package/dist/chunks/{rpc.BTmCtPly.js → rpc.DpkUyY1N.js} +2 -2
  38. package/dist/chunks/{rpc.d.BPFHl-HE.d.ts → rpc.d.Cft1biqy.d.ts} +2 -1
  39. package/dist/chunks/{run.BTlFXlnv.js → run.BPv-BBRv.js} +134 -110
  40. package/dist/chunks/{setup-common.BglbuAHD.js → setup-common.HGAqWOnX.js} +3 -3
  41. package/dist/chunks/{source-map.DUxvo12T.js → source-map.DdKI5IHB.js} +13 -4
  42. package/dist/chunks/{source-map.d.BLHtC2OB.d.ts → source-map.d.kzFtk_dj.d.ts} +1 -1
  43. package/dist/chunks/{spy.DgMTfhrK.js → spy.DDMXghXv.js} +45 -16
  44. package/dist/chunks/{task-utils.d.C-IeGxLU.d.ts → task-utils.d.PFh2BV6Q.d.ts} +1 -1
  45. package/dist/chunks/tinyrainbow.Do8I1XRG.js +88 -0
  46. package/dist/chunks/{utils.RcGwuOc_.js → utils.DSfl_w8V.js} +44 -42
  47. package/dist/chunks/{vm.vTyZj_02.js → vm.FGl2rw_t.js} +14 -11
  48. package/dist/chunks/{worker.d.Bt2A2mmi.d.ts → worker.d.BH-r1bPu.d.ts} +8 -3
  49. package/dist/cli.js +4 -4
  50. package/dist/config.cjs +1 -1
  51. package/dist/config.d.ts +9 -10
  52. package/dist/config.js +2 -2
  53. package/dist/index.d.ts +10 -10
  54. package/dist/index.js +10 -10
  55. package/dist/module-evaluator.d.ts +2 -2
  56. package/dist/module-evaluator.js +16 -12
  57. package/dist/node.d.ts +9 -10
  58. package/dist/node.js +26 -25
  59. package/dist/runtime.d.ts +4 -4
  60. package/dist/runtime.js +4 -4
  61. package/dist/spy.js +1 -1
  62. package/dist/task-utils.js +6 -4
  63. package/dist/worker.d.ts +4 -4
  64. package/dist/worker.js +21 -20
  65. package/dist/workers/forks.js +19 -18
  66. package/dist/workers/runVmTests.js +24 -14
  67. package/dist/workers/threads.js +19 -18
  68. package/dist/workers/vmForks.js +13 -13
  69. package/dist/workers/vmThreads.js +13 -13
  70. package/package.json +28 -27
  71. package/dist/chunks/cli-api.C4x4GGip.js +0 -528
  72. package/dist/chunks/tinyrainbow.Ht9iggcq.js +0 -95
@@ -0,0 +1,88 @@
1
+ // src/index.ts
2
+ var d = (e) => String(e);
3
+ d.open = d.close = "";
4
+ var i = () => d, t = "\x1B[39m", o = "\x1B[49m", F = (e, r, a, n, l) => {
5
+ let m = "", g = 0;
6
+ do
7
+ m += e.substring(g, n) + a, g = n + l, n = e.indexOf(r, g);
8
+ while (~n);
9
+ return m + e.substring(g);
10
+ }, u = (e, r, a = e, n = e.length) => {
11
+ let l = r.length, m = (g) => {
12
+ let s = g + "", x = s.indexOf(r, n);
13
+ return ~x ? e + F(s, r, a, x, l) + r : e + s + r;
14
+ };
15
+ return m.open = e, m.close = r, m;
16
+ }, B = (e, r) => u(e, r, e, 5), c = (e) => {
17
+ let r = e.charCodeAt(0) === 35 ? e.slice(1) : e, a = parseInt(r, 16) || 0;
18
+ return r.length < 6 ? `${(a >> 8 & 15) * 17};${(a >> 4 & 15) * 17};${(a & 15) * 17}` : `${a >> 16 & 255};${a >> 8 & 255};${a & 255}`;
19
+ };
20
+ function y(e) {
21
+ let r = e ? u : i;
22
+ return {
23
+ isColorSupported: e,
24
+ reset: r("\x1B[0m", "\x1B[0m"),
25
+ bold: r("\x1B[1m", "\x1B[22m", "\x1B[22m\x1B[1m"),
26
+ dim: r("\x1B[2m", "\x1B[22m", "\x1B[22m\x1B[2m"),
27
+ italic: r("\x1B[3m", "\x1B[23m"),
28
+ underline: r("\x1B[4m", "\x1B[24m"),
29
+ inverse: r("\x1B[7m", "\x1B[27m"),
30
+ hidden: r("\x1B[8m", "\x1B[28m"),
31
+ strikethrough: r("\x1B[9m", "\x1B[29m"),
32
+ black: r("\x1B[30m", t),
33
+ red: r("\x1B[31m", t),
34
+ green: r("\x1B[32m", t),
35
+ yellow: r("\x1B[33m", t),
36
+ blue: r("\x1B[34m", t),
37
+ magenta: r("\x1B[35m", t),
38
+ cyan: r("\x1B[36m", t),
39
+ white: r("\x1B[37m", t),
40
+ gray: r("\x1B[90m", t),
41
+ bgBlack: r("\x1B[40m", o),
42
+ bgRed: r("\x1B[41m", o),
43
+ bgGreen: r("\x1B[42m", o),
44
+ bgYellow: r("\x1B[43m", o),
45
+ bgBlue: r("\x1B[44m", o),
46
+ bgMagenta: r("\x1B[45m", o),
47
+ bgCyan: r("\x1B[46m", o),
48
+ bgWhite: r("\x1B[47m", o),
49
+ blackBright: r("\x1B[90m", t),
50
+ redBright: r("\x1B[91m", t),
51
+ greenBright: r("\x1B[92m", t),
52
+ yellowBright: r("\x1B[93m", t),
53
+ blueBright: r("\x1B[94m", t),
54
+ magentaBright: r("\x1B[95m", t),
55
+ cyanBright: r("\x1B[96m", t),
56
+ whiteBright: r("\x1B[97m", t),
57
+ bgBlackBright: r("\x1B[100m", o),
58
+ bgRedBright: r("\x1B[101m", o),
59
+ bgGreenBright: r("\x1B[102m", o),
60
+ bgYellowBright: r("\x1B[103m", o),
61
+ bgBlueBright: r("\x1B[104m", o),
62
+ bgMagentaBright: r("\x1B[105m", o),
63
+ bgCyanBright: r("\x1B[106m", o),
64
+ bgWhiteBright: r("\x1B[107m", o),
65
+ rgb: e ? (n, l, m) => B(`\x1B[38;2;${n};${l};${m}m`, t) : i,
66
+ bgRgb: e ? (n, l, m) => B(`\x1B[48;2;${n};${l};${m}m`, o) : i,
67
+ hex: e ? (n) => B(`\x1B[38;2;${c(n)}m`, t) : i,
68
+ bgHex: e ? (n) => B(`\x1B[48;2;${c(n)}m`, o) : i
69
+ };
70
+ }
71
+ function f() {
72
+ return y(false);
73
+ }
74
+ function C() {
75
+ let e = typeof process != "undefined" ? process : void 0, r = (e == null ? void 0 : e.env) || {}, a = r.FORCE_TTY !== "false", n = (e == null ? void 0 : e.argv) || [];
76
+ return !("NO_COLOR" in r || n.includes("--no-color")) && ("FORCE_COLOR" in r || n.includes("--color") || (e == null ? void 0 : e.platform) === "win32" || a && r.TERM !== "dumb" || "CI" in r) || typeof window != "undefined" && !!window.chrome;
77
+ }
78
+ function h({ force: e } = {}) {
79
+ let r = e || C();
80
+ return y(r);
81
+ }
82
+ var b = h();
83
+ function w() {
84
+ Object.assign(b, f());
85
+ }
86
+ var $ = b;
87
+
88
+ export { $, w };
@@ -1,7 +1,7 @@
1
1
  import { stripVTControlCharacters } from 'node:util';
2
- import { t as truncateString$1 } from './display.CXBnkt9a.js';
3
- import { i as isAbsolute, a as relative, d as dirname, b as basename, s as slash } from './pathe.M-eThtNZ.CknpM8Or.js';
4
- import { y } from './tinyrainbow.Ht9iggcq.js';
2
+ import { t as truncateString$1 } from './display.BlTmubjj.js';
3
+ import { i as isAbsolute, a as relative, d as dirname, b as basename, s as slash } from './pathe.M-eThtNZ.Ba-7h1rE.js';
4
+ import { $ } from './tinyrainbow.Do8I1XRG.js';
5
5
 
6
6
  const F_RIGHT = "→";
7
7
  const F_DOWN = "↓";
@@ -15,20 +15,20 @@ const F_TODO = "□";
15
15
  const F_TREE_NODE_MIDDLE = "├──";
16
16
  const F_TREE_NODE_END = "└──";
17
17
 
18
- const pointer = y.yellow(F_POINTER);
19
- const skipped = y.dim(y.gray(F_DOWN));
20
- const todo = y.dim(y.gray(F_TODO));
21
- const benchmarkPass = y.green(F_DOT);
22
- const testPass = y.green(F_CHECK);
23
- const taskFail = y.red(F_CROSS);
24
- const suiteFail = y.red(F_POINTER);
25
- const pending = y.gray("·");
26
- const separator = y.dim(" > ");
18
+ const pointer = $.yellow(F_POINTER);
19
+ const skipped = $.dim($.gray(F_DOWN));
20
+ const todo = $.dim($.gray(F_TODO));
21
+ const benchmarkPass = $.green(F_DOT);
22
+ const testPass = $.green(F_CHECK);
23
+ const taskFail = $.red(F_CROSS);
24
+ const suiteFail = $.red(F_POINTER);
25
+ const pending = $.gray("·");
26
+ const separator = $.dim(" > ");
27
27
  const labelDefaultColors = [
28
- y.bgYellow,
29
- y.bgCyan,
30
- y.bgGreen,
31
- y.bgMagenta
28
+ $.bgYellow,
29
+ $.bgCyan,
30
+ $.bgGreen,
31
+ $.bgMagenta
32
32
  ];
33
33
  function getCols(delta = 0) {
34
34
  let length = process.stdout?.columns;
@@ -36,7 +36,7 @@ function getCols(delta = 0) {
36
36
  return Math.max(length + delta, 0);
37
37
  }
38
38
  function errorBanner(message) {
39
- return divider(y.bold(y.bgRed(` ${message} `)), null, null, y.red);
39
+ return divider($.bold($.bgRed(` ${message} `)), null, null, $.red);
40
40
  }
41
41
  function divider(text, left, right, color) {
42
42
  const cols = getCols();
@@ -59,28 +59,30 @@ function formatTestPath(root, path) {
59
59
  const dir = dirname(path);
60
60
  const ext = path.match(/(\.(spec|test)\.[cm]?[tj]sx?)$/)?.[0] || "";
61
61
  const base = basename(path, ext);
62
- return slash(y.dim(`${dir}/`) + y.bold(base)) + y.dim(ext);
62
+ return slash($.dim(`${dir}/`) + $.bold(base)) + $.dim(ext);
63
63
  }
64
64
  function renderSnapshotSummary(rootDir, snapshots) {
65
65
  const summary = [];
66
- if (snapshots.added) summary.push(y.bold(y.green(`${snapshots.added} written`)));
67
- if (snapshots.unmatched) summary.push(y.bold(y.red(`${snapshots.unmatched} failed`)));
68
- if (snapshots.updated) summary.push(y.bold(y.green(`${snapshots.updated} updated `)));
69
- if (snapshots.filesRemoved) if (snapshots.didUpdate) summary.push(y.bold(y.green(`${snapshots.filesRemoved} files removed `)));
70
- else summary.push(y.bold(y.yellow(`${snapshots.filesRemoved} files obsolete `)));
66
+ if (snapshots.added) summary.push($.bold($.green(`${snapshots.added} written`)));
67
+ if (snapshots.unmatched) summary.push($.bold($.red(`${snapshots.unmatched} failed`)));
68
+ if (snapshots.updated) summary.push($.bold($.green(`${snapshots.updated} updated `)));
69
+ if (snapshots.filesRemoved) {
70
+ if (snapshots.didUpdate) summary.push($.bold($.green(`${snapshots.filesRemoved} files removed `)));
71
+ else summary.push($.bold($.yellow(`${snapshots.filesRemoved} files obsolete `)));
72
+ }
71
73
  if (snapshots.filesRemovedList && snapshots.filesRemovedList.length) {
72
74
  const [head, ...tail] = snapshots.filesRemovedList;
73
- summary.push(`${y.gray(F_DOWN_RIGHT)} ${formatTestPath(rootDir, head)}`);
75
+ summary.push(`${$.gray(F_DOWN_RIGHT)} ${formatTestPath(rootDir, head)}`);
74
76
  tail.forEach((key) => {
75
- summary.push(` ${y.gray(F_DOT)} ${formatTestPath(rootDir, key)}`);
77
+ summary.push(` ${$.gray(F_DOT)} ${formatTestPath(rootDir, key)}`);
76
78
  });
77
79
  }
78
80
  if (snapshots.unchecked) {
79
- if (snapshots.didUpdate) summary.push(y.bold(y.green(`${snapshots.unchecked} removed`)));
80
- else summary.push(y.bold(y.yellow(`${snapshots.unchecked} obsolete`)));
81
+ if (snapshots.didUpdate) summary.push($.bold($.green(`${snapshots.unchecked} removed`)));
82
+ else summary.push($.bold($.yellow(`${snapshots.unchecked} obsolete`)));
81
83
  snapshots.uncheckedKeysByFile.forEach((uncheckedFile) => {
82
- summary.push(`${y.gray(F_DOWN_RIGHT)} ${formatTestPath(rootDir, uncheckedFile.filePath)}`);
83
- uncheckedFile.keys.forEach((key) => summary.push(` ${y.gray(F_DOT)} ${key}`));
84
+ summary.push(`${$.gray(F_DOWN_RIGHT)} ${formatTestPath(rootDir, uncheckedFile.filePath)}`);
85
+ uncheckedFile.keys.forEach((key) => summary.push(` ${$.gray(F_DOT)} ${key}`));
84
86
  });
85
87
  }
86
88
  return summary;
@@ -89,7 +91,7 @@ function countTestErrors(tasks) {
89
91
  return tasks.reduce((c, i) => c + (i.result?.errors?.length || 0), 0);
90
92
  }
91
93
  function getStateString(tasks, name = "tests", showTotal = true) {
92
- if (tasks.length === 0) return y.dim(`no ${name}`);
94
+ if (tasks.length === 0) return $.dim(`no ${name}`);
93
95
  const passed = tasks.reduce((acc, i) => {
94
96
  // Exclude expected failures from passed count
95
97
  if (i.result?.state === "pass" && i.type === "test" && i.fails) return acc;
@@ -104,12 +106,12 @@ function getStateString(tasks, name = "tests", showTotal = true) {
104
106
  return acc;
105
107
  }, 0);
106
108
  return [
107
- failed ? y.bold(y.red(`${failed} failed`)) : null,
108
- passed ? y.bold(y.green(`${passed} passed`)) : null,
109
- expectedFail ? y.cyan(`${expectedFail} expected fail`) : null,
110
- skipped ? y.yellow(`${skipped} skipped`) : null,
111
- todo ? y.gray(`${todo} todo`) : null
112
- ].filter(Boolean).join(y.dim(" | ")) + (showTotal ? y.gray(` (${tasks.length})`) : "");
109
+ failed ? $.bold($.red(`${failed} failed`)) : null,
110
+ passed ? $.bold($.green(`${passed} passed`)) : null,
111
+ expectedFail ? $.cyan(`${expectedFail} expected fail`) : null,
112
+ skipped ? $.yellow(`${skipped} skipped`) : null,
113
+ todo ? $.gray(`${todo} todo`) : null
114
+ ].filter(Boolean).join($.dim(" | ")) + (showTotal ? $.gray(` (${tasks.length})`) : "");
113
115
  }
114
116
  function getStateSymbol(task) {
115
117
  if (task.mode === "todo") return todo;
@@ -131,20 +133,20 @@ function formatTime(time) {
131
133
  }
132
134
  function formatProjectName(project, suffix = " ") {
133
135
  if (!project?.name) return "";
134
- if (!y.isColorSupported) return `|${project.name}|${suffix}`;
135
- let background = project.color && y[`bg${capitalize(project.color)}`];
136
+ if (!$.isColorSupported) return `|${project.name}|${suffix}`;
137
+ let background = project.color && $[`bg${capitalize(project.color)}`];
136
138
  if (!background) {
137
139
  const index = project.name.split("").reduce((acc, v, idx) => acc + v.charCodeAt(0) + idx, 0);
138
140
  background = labelDefaultColors[index % labelDefaultColors.length];
139
141
  }
140
- return y.black(background(` ${project.name} `)) + suffix;
142
+ return $.black(background(` ${project.name} `)) + suffix;
141
143
  }
142
144
  function withLabel(color, label, message) {
143
145
  const bgColor = `bg${color.charAt(0).toUpperCase()}${color.slice(1)}`;
144
- return `${y.bold(y.black(y[bgColor](` ${label} `)))} ${message ? y[color](message) : ""}`;
146
+ return `${$.bold($.black($[bgColor](` ${label} `)))} ${message ? $[color](message) : ""}`;
145
147
  }
146
148
  function padSummaryTitle(str) {
147
- return y.dim(`${str.padStart(11)} `);
149
+ return $.dim(`${str.padStart(11)} `);
148
150
  }
149
151
  function truncateString(text, maxLength) {
150
152
  return truncateString$1(stripVTControlCharacters(text), maxLength);
@@ -179,4 +181,4 @@ var utils = /*#__PURE__*/Object.freeze({
179
181
  withLabel: withLabel
180
182
  });
181
183
 
182
- export { F_POINTER as F, formatTimeString as a, taskFail as b, F_CHECK as c, divider as d, errorBanner as e, formatProjectName as f, F_DOWN_RIGHT as g, getStateSymbol as h, getStateString as i, formatTime as j, countTestErrors as k, F_TREE_NODE_END as l, F_TREE_NODE_MIDDLE as m, noun as n, F_RIGHT as o, padSummaryTitle as p, renderSnapshotSummary as r, separator as s, truncateString as t, utils as u, withLabel as w };
184
+ export { F_CHECK as F, F_POINTER as a, F_DOWN_RIGHT as b, formatProjectName as c, getStateString as d, formatTime as e, formatTimeString as f, getStateSymbol as g, countTestErrors as h, errorBanner as i, divider as j, F_TREE_NODE_END as k, F_TREE_NODE_MIDDLE as l, F_RIGHT as m, noun as n, truncateString as o, padSummaryTitle as p, renderSnapshotSummary as r, separator as s, taskFail as t, utils as u, withLabel as w };
@@ -1,18 +1,18 @@
1
1
  import { fileURLToPath, pathToFileURL } from 'node:url';
2
2
  import v8 from 'node:v8';
3
3
  import vm, { isContext, runInContext } from 'node:vm';
4
- import { l as loadEnvironment, a as listenForErrors, e as emitModuleRunner } from './init.D0qF-GGk.js';
4
+ import { l as loadEnvironment, a as listenForErrors, e as emitModuleRunner } from './init.PvxYpuCm.js';
5
5
  import { distDir } from '../path.js';
6
- import { createCustomConsole } from './console.RBA5x-0t.js';
6
+ import { createCustomConsole } from './console.DtI4yxfN.js';
7
7
  import fs__default from 'node:fs';
8
8
  import { createRequire, Module, isBuiltin } from 'node:module';
9
- import { d as dirname, f as extname, b as basename, C as CSS_LANGS_RE, h as KNOWN_ASSET_RE, t as toArray, k as splitFileAndPostfix, n as normalize, l as isBareImport, r as resolve } from './pathe.M-eThtNZ.CknpM8Or.js';
10
- import { l as lookupPackageScopeType } from './resolver.fbW9AUvG.js';
9
+ import { d as dirname, f as extname, b as basename, C as CSS_LANGS_RE, h as KNOWN_ASSET_RE, t as toArray, k as splitFileAndPostfix, n as normalize, l as isBareImport, r as resolve } from './pathe.M-eThtNZ.Ba-7h1rE.js';
10
+ import { l as lookupPackageScopeType } from './resolver.CtCcxIy1.js';
11
11
  import { initSync, parse } from 'es-module-lexer';
12
12
  import { dirname as dirname$1 } from 'node:path';
13
- import { V as VITEST_VM_CONTEXT_SYMBOL, s as startVitestModuleRunner, c as createNodeImportMeta } from './index.k8L_ZRzq.js';
13
+ import { V as VITEST_VM_CONTEXT_SYMBOL, s as startVitestModuleRunner, c as createNodeImportMeta } from './index.CK-t0WMg.js';
14
14
  import { getDefaultRequestStubs } from '../module-evaluator.js';
15
- import { b as setupEnv } from './setup-common.BglbuAHD.js';
15
+ import { b as setupEnv } from './setup-common.HGAqWOnX.js';
16
16
  import { p as provideWorkerState } from './utils.DYj33du9.js';
17
17
 
18
18
  /**
@@ -289,7 +289,7 @@ class CommonjsExecutor {
289
289
  const __dirname = dirname(filename);
290
290
  executor.requireCache.set(filename, this);
291
291
  try {
292
- fn(this.exports, this.require, this, filename, __dirname);
292
+ fn.call(this.exports, this.exports, this.require, this, filename, __dirname);
293
293
  return this.exports;
294
294
  } finally {
295
295
  this.loaded = true;
@@ -1166,9 +1166,11 @@ class ExternalModulesExecutor {
1166
1166
  }
1167
1167
  }
1168
1168
  get isNetworkSupported() {
1169
- if (this.#networkSupported == null) if (process.execArgv.includes("--experimental-network-imports")) this.#networkSupported = true;
1170
- else if (process.env.NODE_OPTIONS?.includes("--experimental-network-imports")) this.#networkSupported = true;
1171
- else this.#networkSupported = false;
1169
+ if (this.#networkSupported == null) {
1170
+ if (process.execArgv.includes("--experimental-network-imports")) this.#networkSupported = true;
1171
+ else if (process.env.NODE_OPTIONS?.includes("--experimental-network-imports")) this.#networkSupported = true;
1172
+ else this.#networkSupported = false;
1173
+ }
1172
1174
  return this.#networkSupported;
1173
1175
  }
1174
1176
  }
@@ -1209,8 +1211,9 @@ const moduleInfoCache = /* @__PURE__ */ new Map();
1209
1211
  async function runVmTests(method, state, traces) {
1210
1212
  const { ctx, rpc } = state;
1211
1213
  const beforeEnvironmentTime = performance.now();
1212
- const { environment } = await loadEnvironment(ctx.environment.name, ctx.config.root, rpc, traces, true);
1214
+ const { environment, loader } = await loadEnvironment(ctx.environment.name, ctx.config.root, rpc, traces, true);
1213
1215
  state.environment = environment;
1216
+ loader?.evaluatedModules.idToModuleMap.forEach((_, id) => state.dependencies?.add(id));
1214
1217
  // let the server transform this file's import graph while this worker is
1215
1218
  // busy setting up the environment (jsdom takes ~0.5s per worker) —
1216
1219
  // the server is otherwise idle during that window on a cold start.
@@ -1,7 +1,7 @@
1
1
  import { EvaluatedModules } from 'vite/module-runner';
2
- import { F as FileSpecification, b as SerializedConfig, X as Task, Y as CancelReason } from './config.d.BxjInJat.js';
3
- import { a as RuntimeRPC, R as RunnerRPC, G as GetterTracker } from './rpc.d.BPFHl-HE.js';
4
- import { E as Environment } from './environment.d.DAj1Vt__.js';
2
+ import { F as FileSpecification, b as SerializedConfig, X as Task, Y as CancelReason } from './config.d.QBNYCgFU.js';
3
+ import { a as RuntimeRPC, R as RunnerRPC, G as GetterTracker } from './rpc.d.Cft1biqy.js';
4
+ import { E as Environment } from './environment.d.BY56MoGs.js';
5
5
 
6
6
  //#region src/messages.d.ts
7
7
  declare const TYPE_REQUEST: "q";
@@ -246,6 +246,11 @@ interface WorkerGlobalState {
246
246
  evaluatedModules: EvaluatedModules;
247
247
  resolvingModules: Set<string>;
248
248
  moduleExecutionInfo: Map<string, any>;
249
+ /**
250
+ * Module ids and file paths loaded by the current test file. Only set when
251
+ * `experimental.recordDependencies` is enabled.
252
+ */
253
+ dependencies?: Set<string>;
249
254
  getterTracker?: GetterTracker;
250
255
  onCancel: (listener: (reason: CancelReason) => unknown) => () => void;
251
256
  onCleanup: (listener: () => unknown) => void;
package/dist/cli.js CHANGED
@@ -1,8 +1,8 @@
1
- import { c as createCLI } from './chunks/cac.DfDGTQ9W.js';
2
- import './chunks/pathe.M-eThtNZ.CknpM8Or.js';
1
+ import { c as createCLI } from './chunks/cac.CLrZKo1g.js';
2
+ import './chunks/pathe.M-eThtNZ.Ba-7h1rE.js';
3
3
  import 'events';
4
- import './chunks/tinyrainbow.Ht9iggcq.js';
5
- import './chunks/env.DzFJjrmK.js';
4
+ import './chunks/tinyrainbow.Do8I1XRG.js';
5
+ import './chunks/env.BKKtU2WC.js';
6
6
  import 'std-env';
7
7
  import './chunks/constants.-juJ8b_4.js';
8
8
  import 'node:assert';
package/dist/config.cjs CHANGED
@@ -31,7 +31,7 @@ const coverageConfigDefaults = {
31
31
  ],
32
32
  allowExternal: false,
33
33
  excludeAfterRemap: false,
34
- processingConcurrency: Math.min(20, os.availableParallelism?.() ?? os.cpus().length),
34
+ processingConcurrency: Math.min(20, os.availableParallelism()),
35
35
  ignoreClassMethods: [],
36
36
  skipFull: false,
37
37
  watermarks: {
package/dist/config.d.ts CHANGED
@@ -1,25 +1,24 @@
1
1
  import { HookHandler, UserConfig, ConfigEnv } from 'vite';
2
2
  export { ConfigEnv, Plugin, UserConfig as ViteUserConfig, mergeConfig } from 'vite';
3
- import { F as FieldsWithDefaultValues, U as UserWorkspaceConfig, a as UserProjectConfigFn, b as UserProjectConfigExport } from './chunks/plugin.d.BsjqSb4-.js';
3
+ import { F as FieldsWithDefaultValues, U as UserWorkspaceConfig, a as UserProjectConfigFn, b as UserProjectConfigExport } from './chunks/plugin.d.C8mmycim.js';
4
4
  import { InlineConfig, ResolvedConfig, VitestPluginContext, CoverageOptions } from './node.js';
5
- export { T as TestProjectConfiguration, c as TestProjectInlineConfiguration, d as TestUserConfig, W as WatcherTriggerPattern } from './chunks/plugin.d.BsjqSb4-.js';
6
- import { C as Config } from './chunks/config.d.BxjInJat.js';
7
- export { e as TestTagDefinition } from './chunks/config.d.BxjInJat.js';
5
+ export { T as TestProjectConfiguration, c as TestProjectInlineConfiguration, d as TestUserConfig, W as WatcherTriggerPattern } from './chunks/plugin.d.C8mmycim.js';
6
+ import { C as Config } from './chunks/config.d.QBNYCgFU.js';
7
+ export { e as TestTagDefinition } from './chunks/config.d.QBNYCgFU.js';
8
8
  import 'node:stream';
9
- import './chunks/browser.d.3cffPS1V.js';
10
- import './chunks/rpc.d.BPFHl-HE.js';
9
+ import './chunks/browser.d.FGQ9_rK6.js';
10
+ import './chunks/rpc.d.Cft1biqy.js';
11
11
  import 'vite/module-runner';
12
- import './chunks/worker.d.Bt2A2mmi.js';
13
- import './chunks/environment.d.DAj1Vt__.js';
12
+ import './chunks/worker.d.BH-r1bPu.js';
13
+ import './chunks/environment.d.BY56MoGs.js';
14
14
  import 'chai';
15
15
  import 'vitest/optional-types.js';
16
16
  import '@vitest/mocker';
17
- import './chunks/source-map.d.BLHtC2OB.js';
17
+ import './chunks/source-map.d.kzFtk_dj.js';
18
18
  import 'vitest/browser';
19
19
  import 'node:path';
20
20
  import 'node:console';
21
21
  import 'node:fs/promises';
22
- import 'node:fs';
23
22
  import 'vitest/optional-runtime-types.js';
24
23
  import 'tinybench';
25
24
 
package/dist/config.js CHANGED
@@ -1,8 +1,8 @@
1
- export { c as configDefaults, a as coverageConfigDefaults, d as defaultExclude, b as defaultInclude } from './chunks/defaults.D2ip7f-X.js';
1
+ export { c as configDefaults, a as coverageConfigDefaults, d as defaultExclude, b as defaultInclude } from './chunks/defaults.B1FCaFfh.js';
2
2
  export { mergeConfig } from 'vite';
3
3
  export { d as defaultBrowserPort } from './chunks/constants.-juJ8b_4.js';
4
4
  import 'node:os';
5
- import './chunks/env.DzFJjrmK.js';
5
+ import './chunks/env.BKKtU2WC.js';
6
6
  import 'std-env';
7
7
 
8
8
  function defineConfig(config) {
package/dist/index.d.ts CHANGED
@@ -1,21 +1,21 @@
1
- import { a as File, A as Awaitable, g as TestAnnotation, h as TestArtifact, j as TaskResultPack, k as TaskEventPack, U as UserConsoleLog, l as SerializedRootConfig, L as LabelColor, M as ModuleGraphData, m as Test, n as TaskPopulated, E as ExpectStatic, o as ProvidedContext, p as MatcherState, q as SyncExpectationResult, r as AsyncExpectationResult, t as DomainSnapshotAdapter, u as ExpectationResult, v as Procedure, w as Mock, C as Config, x as spyOn, y as fn, z as MaybeMockedDeep, B as MaybeMocked, G as MaybePartiallyMocked, H as MaybePartiallyMockedDeep, I as MockInstance, R as RuntimeOptions, J as TestAPI, K as SuiteCollector, N as SuiteAPI, O as Suite, Q as SuiteHooks, V as VitestRunner, b as SerializedConfig, W as VitestRunnerImportSource, X as Task, Y as CancelReason, Z as TestTryOptions, $ as TestContext, a0 as ImportDuration, a1 as createChainable } from './chunks/config.d.BxjInJat.js';
2
- export { a2 as AfterSuiteRunMeta, a3 as Assertion, a4 as AsymmetricMatchersContaining, a5 as BaselineData, a6 as Bench, a7 as BenchFn, a8 as BenchFnOptions, a9 as BenchFromSource, aa as BenchOptions, ab as BenchRegistration, ac as BenchRegistrationInput, ad as BenchResult, ae as BenchRunOptions, af as BenchStorage, ag as BenchmarkGroup, ah as BenchmarkProvider, ai as BrowserTraceArtifact, aj as DeeplyAllowMatchers, D as DiffOptions, ak as DomainMatchResult, al as FailureScreenshotArtifact, am as JestAssertion, an as Matcher, ao as Matchers, ap as MatchersObject, aq as MockContext, ar as MockResult, as as MockResultIncomplete, at as MockResultReturn, au as MockResultThrow, av as MockSettledResult, aw as MockSettledResultFulfilled, ax as MockSettledResultIncomplete, ay as MockSettledResultRejected, az as Mocked, aA as MockedClass, aB as MockedFunction, aC as MockedObject, aD as OnTestFailedHandler, aE as OnTestFinishedHandler, P as ParsedStack, aF as RunMode, aG as RunnerTaskBase, aH as RunnerTaskResult, aI as RuntimeConfig, S as SerializedCoverageConfig, aJ as SerializedError, aK as SnapshotData, aL as SnapshotMatchOptions, aM as SnapshotResult, aN as SnapshotSerializer, aO as SnapshotStateOptions, aP as SnapshotSummary, aQ as SnapshotUpdateState, aR as SuiteFactory, aS as SuiteOptions, aT as TaskCustomOptions, aU as TaskMeta, aV as TaskState, aW as TestAnnotationArtifact, aX as TestAnnotationLocation, aY as TestArtifactBase, aZ as TestArtifactLocation, a_ as TestArtifactRegistry, a$ as TestAttachment, b0 as TestBenchmark, b1 as TestBenchmarkTask, T as TestError, b2 as TestFunction, b3 as TestOptions, e as TestTagDefinition, b4 as TestTags, b5 as UncheckedSnapshot, b6 as VisualRegressionArtifact, b7 as afterAll, b8 as afterEach, b9 as aroundAll, ba as aroundEach, bb as beforeAll, bc as beforeEach, bd as onTestFailed, be as onTestFinished } from './chunks/config.d.BxjInJat.js';
3
- 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.3cffPS1V.js';
4
- export { B as BrowserTesterOptions } from './chunks/browser.d.3cffPS1V.js';
5
- import { c as createFileTask } from './chunks/task-utils.d.C-IeGxLU.js';
6
- import { B as BirpcReturn } from './chunks/worker.d.Bt2A2mmi.js';
7
- export { C as ContextRPC, a as ContextTestEnvironment, T as TestExecutionMethod, W as WorkerGlobalState } from './chunks/worker.d.Bt2A2mmi.js';
1
+ import { a as File, A as Awaitable, g as TestAnnotation, h as TestArtifact, j as TaskResultPack, k as TaskEventPack, U as UserConsoleLog, l as SerializedRootConfig, L as LabelColor, M as ModuleGraphData, m as Test, n as TaskPopulated, E as ExpectStatic, o as ProvidedContext, p as MatcherState, q as SyncExpectationResult, r as AsyncExpectationResult, t as DomainSnapshotAdapter, u as ExpectationResult, v as Procedure, w as Mock, C as Config, x as spyOn, y as fn, z as MaybeMockedDeep, B as MaybeMocked, G as MaybePartiallyMocked, H as MaybePartiallyMockedDeep, I as MockInstance, R as RuntimeOptions, J as TestAPI, K as SuiteCollector, N as SuiteAPI, O as Suite, Q as SuiteHooks, V as VitestRunner, b as SerializedConfig, W as VitestRunnerImportSource, X as Task, Y as CancelReason, Z as TestTryOptions, $ as TestContext, a0 as ImportDuration, a1 as createChainable } from './chunks/config.d.QBNYCgFU.js';
2
+ export { a2 as AfterSuiteRunMeta, a3 as Assertion, a4 as AsymmetricMatchersContaining, a5 as BaselineData, a6 as Bench, a7 as BenchFn, a8 as BenchFnOptions, a9 as BenchFromSource, aa as BenchOptions, ab as BenchRegistration, ac as BenchRegistrationInput, ad as BenchResult, ae as BenchRunOptions, af as BenchStorage, ag as BenchmarkGroup, ah as BenchmarkProvider, ai as BrowserTraceArtifact, aj as DeeplyAllowMatchers, D as DiffOptions, ak as DomainMatchResult, al as FailureScreenshotArtifact, am as JestAssertion, an as Matcher, ao as Matchers, ap as MatchersObject, aq as MockContext, ar as MockResult, as as MockResultIncomplete, at as MockResultReturn, au as MockResultThrow, av as MockSettledResult, aw as MockSettledResultFulfilled, ax as MockSettledResultIncomplete, ay as MockSettledResultRejected, az as Mocked, aA as MockedClass, aB as MockedFunction, aC as MockedObject, aD as OnTestFailedHandler, aE as OnTestFinishedHandler, P as ParsedStack, aF as RunMode, aG as RunnerTaskBase, aH as RunnerTaskResult, aI as RuntimeConfig, S as SerializedCoverageConfig, aJ as SerializedError, aK as SnapshotData, aL as SnapshotMatchOptions, aM as SnapshotResult, aN as SnapshotSerializer, aO as SnapshotStateOptions, aP as SnapshotSummary, aQ as SnapshotUpdateState, aR as SuiteFactory, aS as SuiteOptions, aT as TaskCustomOptions, aU as TaskMeta, aV as TaskState, aW as TestAnnotationArtifact, aX as TestAnnotationLocation, aY as TestArtifactBase, aZ as TestArtifactLocation, a_ as TestArtifactRegistry, a$ as TestAttachment, b0 as TestBenchmark, b1 as TestBenchmarkTask, T as TestError, b2 as TestFunction, b3 as TestOptions, e as TestTagDefinition, b4 as TestTags, b5 as UncheckedSnapshot, b6 as VisualRegressionArtifact, b7 as afterAll, b8 as afterEach, b9 as aroundAll, ba as aroundEach, bb as beforeAll, bc as beforeEach, bd as onTestFailed, be as onTestFinished } from './chunks/config.d.QBNYCgFU.js';
3
+ 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.FGQ9_rK6.js';
4
+ export { B as BrowserTesterOptions } from './chunks/browser.d.FGQ9_rK6.js';
5
+ import { c as createFileTask } from './chunks/task-utils.d.PFh2BV6Q.js';
6
+ import { B as BirpcReturn } from './chunks/worker.d.BH-r1bPu.js';
7
+ export { C as ContextRPC, a as ContextTestEnvironment, T as TestExecutionMethod, W as WorkerGlobalState } from './chunks/worker.d.BH-r1bPu.js';
8
8
  import { Disposable } from 'vitest/optional-runtime-types.js';
9
9
  import { ModuleMockFactoryWithHelper, ModuleMockOptions } from '@vitest/mocker';
10
10
  export { V as EvaluatedModules } from './chunks/evaluatedModules.d.BxJ5omdx.js';
11
- import { T as Traces } from './chunks/rpc.d.BPFHl-HE.js';
12
- export { R as RunnerRPC, a as RuntimeRPC } from './chunks/rpc.d.BPFHl-HE.js';
11
+ import { T as Traces } from './chunks/rpc.d.Cft1biqy.js';
12
+ export { R as RunnerRPC, a as RuntimeRPC } from './chunks/rpc.d.Cft1biqy.js';
13
13
  export { ExpectTypeOf, expectTypeOf } from 'expect-type';
14
14
  export { BenchOptions as BenchCompareOptions } from 'tinybench';
15
15
  import * as chai from 'chai';
16
16
  export { chai };
17
17
  import 'vite/module-runner';
18
- import './chunks/environment.d.DAj1Vt__.js';
18
+ import './chunks/environment.d.BY56MoGs.js';
19
19
 
20
20
  interface SourceMap {
21
21
  file: string;
package/dist/index.js CHANGED
@@ -1,18 +1,18 @@
1
- export { S as Snapshots, T as TestRunner, a as assert, b as assertType, c as createExpect, g as expect, d as inject, s as should, v as vi, e as vitest } from './chunks/index.C4tKZ0yW.js';
2
- export { V as EvaluatedModules } from './chunks/rpc.BTmCtPly.js';
3
- export { j as afterAll, k as afterEach, l as aroundAll, n as aroundEach, o as beforeAll, q as beforeEach, r as describe, t as it, u as onTestFailed, v as onTestFinished, w as recordArtifact, x as suite, y as test } from './chunks/run.BTlFXlnv.js';
1
+ export { S as Snapshots, T as TestRunner, a as assert, b as assertType, c as createExpect, g as expect, d as inject, s as should, v as vi, e as vitest } from './chunks/index.aTZaPVhf.js';
2
+ export { V as EvaluatedModules } from './chunks/rpc.DpkUyY1N.js';
3
+ export { j as afterAll, k as afterEach, l as aroundAll, n as aroundEach, o as beforeAll, q as beforeEach, r as describe, t as it, u as onTestFailed, v as onTestFinished, w as recordArtifact, x as suite, y as test } from './chunks/run.BPv-BBRv.js';
4
4
  export { expectTypeOf } from 'expect-type';
5
5
  import * as chai from 'chai';
6
6
  export { chai };
7
7
  import './chunks/utils.DYj33du9.js';
8
- import './chunks/source-map.DUxvo12T.js';
9
- import './chunks/index.cx-_w29y.js';
10
- import './chunks/tinyrainbow.Ht9iggcq.js';
11
- import './chunks/pathe.M-eThtNZ.CknpM8Or.js';
12
- import './chunks/spy.DgMTfhrK.js';
13
- import './chunks/display.CXBnkt9a.js';
8
+ import './chunks/source-map.DdKI5IHB.js';
9
+ import './chunks/index.D0heQG4v.js';
10
+ import './chunks/tinyrainbow.Do8I1XRG.js';
11
+ import './chunks/pathe.M-eThtNZ.Ba-7h1rE.js';
12
+ import './chunks/spy.DDMXghXv.js';
13
+ import './chunks/display.BlTmubjj.js';
14
14
  import './task-utils.js';
15
- import './chunks/plugins.D2ut1V9b.js';
15
+ import './chunks/plugins.DPQHVT0p.js';
16
16
  import './chunks/offset.Dy-5Fdfn.js';
17
17
  import 'tinybench';
18
18
  import 'vite/module-runner';
@@ -1,9 +1,9 @@
1
1
  import { ModuleEvaluator, ModuleRunnerImportMeta, ModuleRunnerContext, EvaluatedModuleNode } from 'vite/module-runner';
2
- import { G as GetterTracker } from './chunks/rpc.d.BPFHl-HE.js';
2
+ import { G as GetterTracker } from './chunks/rpc.d.Cft1biqy.js';
3
3
  import { RuntimeRPC } from './index.js';
4
4
  import { EvaluatedModules as VitestEvaluatedModules } from './index.js';
5
5
  import vm from 'node:vm';
6
- import './chunks/config.d.BxjInJat.js';
6
+ import './chunks/config.d.QBNYCgFU.js';
7
7
  import 'vitest/optional-runtime-types.js';
8
8
  import 'tinybench';
9
9
 
@@ -325,19 +325,23 @@ function removeStyle(id) {
325
325
  const sheet = document.querySelector(`[data-vite-dev-id="${id}"]`);
326
326
  if (sheet) document.head.removeChild(sheet);
327
327
  }
328
+ function createHotContext() {
329
+ return {
330
+ data: {},
331
+ accept: () => {},
332
+ acceptExports: () => {},
333
+ prune: () => {},
334
+ dispose: () => {},
335
+ decline: () => {},
336
+ invalidate: () => {},
337
+ on: () => {},
338
+ off: () => {},
339
+ send: () => {}
340
+ };
341
+ }
328
342
  const defaultClientStub = {
329
343
  injectQuery: (id) => id,
330
- createHotContext: () => {
331
- return {
332
- accept: () => {},
333
- prune: () => {},
334
- dispose: () => {},
335
- decline: () => {},
336
- invalidate: () => {},
337
- on: () => {},
338
- send: () => {}
339
- };
340
- },
344
+ createHotContext,
341
345
  updateStyle: () => {},
342
346
  removeStyle: () => {}
343
347
  };
@@ -347,7 +351,7 @@ function getDefaultRequestStubs(context) {
347
351
  updateStyle,
348
352
  removeStyle
349
353
  } };
350
- return { "/@vite/client": vm.runInContext(`(defaultClient) => ({ ...defaultClient, updateStyle: ${updateStyle.toString()}, removeStyle: ${removeStyle.toString()} })`, context)(defaultClientStub) };
354
+ return { "/@vite/client": vm.runInContext(`(defaultClient) => ({ ...defaultClient, createHotContext: ${createHotContext.toString()}, updateStyle: ${updateStyle.toString()}, removeStyle: ${removeStyle.toString()} })`, context)(defaultClientStub) };
351
355
  }
352
356
  function exportAll(exports, sourceModule) {
353
357
  // #1120 when a module exports itself it causes
package/dist/node.d.ts CHANGED
@@ -3,32 +3,31 @@ import { UserConfig as UserConfig$1, ResolvedConfig as ResolvedConfig$1, Transfo
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 CliOptions, d as UserConfig, L as Logger, A as ApiConfig, P as PluginHarness, f as Vitest, g as ResolvedCoverageOptions, h as CoverageMap, i as ReportContext, j as TestProject, k as VitestOptions, l as VitestRunMode, m as TestSpecification, n as PoolWorker, o as PoolOptions, p as WorkerRequest, q as TestSequencer } from './chunks/plugin.d.BsjqSb4-.js';
7
- export { M as AgentReporter, B as BaseCoverageOptions, r as BaseReporter, s as BenchmarkUserOptions, t as BrowserBuiltinProvider, u as BrowserCommand, v as BrowserCommandContext, w as BrowserConfigOptions, x as BrowserInstanceOption, y as BrowserModuleMocker, z as BrowserOrchestrator, D as BrowserProvider, E as BrowserProviderOption, G as BrowserScript, H as BrowserServerContribution, J as BrowserServerFactory, K as BrowserServerState, N as BrowserServerStateSession, O as BrowserTraceViewOptions, Q as BuiltinEnvironment, S as BuiltinReporterOptions, X as BuiltinReporters, Y as CSSModuleScopeStrategy, Z as CacheKeyIdGenerator, _ as CacheKeyIdGeneratorContext, $ as CoverageInstrumenter, a0 as CoverageIstanbulOptions, C as CoverageOptions, a1 as CoverageProvider, a2 as CoverageProviderModule, a3 as CoverageReporter, a4 as CoverageV8Options, a5 as CustomProviderOptions, a6 as DefaultReporter, a7 as DepsOptimizationOptions, a8 as DotReporter, a9 as EnvironmentOptions, aa as GithubActionsReporter, ab as HTMLOptions, ac as HangingProcessReporter, I as InlineConfig, ad as InstrumenterOptions, ae as JUnitOptions, af as JUnitReporter, ag as JsonAssertionResult, ah as JsonOptions, ai as JsonReporter, aj as JsonTestResult, ak as JsonTestResults, M as MinimalReporter, al as ModuleDiagnostic, am as OnServerRestartHandler, an as OnTestsRerunHandler, ao as ParentProjectBrowser, ap as Pool, aq as PoolRunnerInitializer, ar as PoolTask, as as ProjectBrowser, at as ProjectConfig, au as Report, av as ReportedHookContext, aw as Reporter, ax as ReportersMap, ay as ResolveSnapshotPathHandler, az as ResolveSnapshotPathHandlerContext, aA as ResolvedBrowserOptions, aB as ResolvedProjectConfig, aC as SerializedTestProject, aD as SuiteNameTemplateVariables, aE as TapFlatReporter, aF as TapReporter, aG as TaskOptions, aH as TestCase, aI as TestCollection, aJ as TestDiagnostic, aK as TestModule, aL as TestModuleState, aM as TestResult, aN as TestResultFailed, aO as TestResultPassed, aP as TestResultPending, aQ as TestResultSkipped, aR as TestRunEndReason, aS as TestRunResult, aT as TestSequencerConstructor, aU as TestSpecificationOptions, aV as TestState, aW as TestSuite, aX as TestSuiteState, aY as ToMatchScreenshotComparators, aZ as ToMatchScreenshotOptions, a_ as TypecheckConfig, U as UserWorkspaceConfig, a$ as VerboseReporter, b0 as VitestEnvironment, b1 as VitestPackageInstaller, V as VitestPluginContext, W as WatcherTriggerPattern, b2 as WorkerResponse, b3 as _BrowserNames, b4 as experimental_getRunnerTask, b5 as startVitest } from './chunks/plugin.d.BsjqSb4-.js';
6
+ import { R as ResolvedConfig, e as CliOptions, d as UserConfig, L as Logger, A as ApiConfig, P as PluginHarness, f as Vitest, g as ResolvedCoverageOptions, h as CoverageMap, i as ReportContext, j as TestProject, k as VitestOptions, l as VitestRunMode, m as TestSpecification, n as PoolWorker, o as PoolOptions, p as WorkerRequest, q as TestSequencer } from './chunks/plugin.d.C8mmycim.js';
7
+ export { M as AgentReporter, B as BaseCoverageOptions, r as BaseReporter, s as BenchmarkUserOptions, t as BrowserBuiltinProvider, u as BrowserCommand, v as BrowserCommandContext, w as BrowserConfigOptions, x as BrowserInstanceOption, y as BrowserModuleMocker, z as BrowserOrchestrator, D as BrowserProvider, E as BrowserProviderCloseOptions, G as BrowserProviderOption, H as BrowserScript, J as BrowserServerContribution, K as BrowserServerFactory, N as BrowserServerState, O as BrowserServerStateSession, Q as BrowserTraceViewOptions, S as BuiltinEnvironment, X as BuiltinReporterOptions, Y as BuiltinReporters, Z as CSSModuleScopeStrategy, _ as CacheKeyIdGenerator, $ as CacheKeyIdGeneratorContext, a0 as CachedTestFileResult, a1 as CoverageInstrumenter, a2 as CoverageIstanbulOptions, C as CoverageOptions, a3 as CoverageProvider, a4 as CoverageProviderModule, a5 as CoverageReporter, a6 as CoverageV8Options, a7 as CustomProviderOptions, a8 as DefaultReporter, a9 as DepsOptimizationOptions, aa as DotReporter, ab as EnvironmentOptions, ac as GithubActionsReporter, ad as HTMLOptions, ae as HangingProcessReporter, I as InlineConfig, af as InstrumenterOptions, ag as JUnitOptions, ah as JUnitReporter, ai as JsonAssertionResult, aj as JsonOptions, ak as JsonReporter, al as JsonTestResult, am as JsonTestResults, M as MinimalReporter, an as ModuleDiagnostic, ao as OnServerRestartHandler, ap as OnTestsRerunHandler, aq as ParentProjectBrowser, ar as Pool, as as PoolRunnerInitializer, at as PoolTask, au as ProjectBrowser, av as ProjectConfig, aw as Report, ax as ReportedHookContext, ay as Reporter, az as ReportersMap, aA as ResolveSnapshotPathHandler, aB as ResolveSnapshotPathHandlerContext, aC as ResolvedBrowserOptions, aD as ResolvedProjectConfig, aE as SerializedTestProject, aF as SuiteNameTemplateVariables, aG as TapFlatReporter, aH as TapReporter, aI as TaskOptions, aJ as TestCase, aK as TestCollection, aL as TestDiagnostic, aM as TestModule, aN as TestModuleState, aO as TestResult, aP as TestResultFailed, aQ as TestResultPassed, aR as TestResultPending, aS as TestResultSkipped, aT as TestRunEndReason, aU as TestRunResult, aV as TestSequencerConstructor, aW as TestSpecificationOptions, aX as TestState, aY as TestSuite, aZ as TestSuiteState, a_ as ToMatchScreenshotComparators, a$ as ToMatchScreenshotOptions, b0 as TypecheckConfig, b1 as UIOptions, U as UserWorkspaceConfig, b2 as VerboseReporter, b3 as VitestEnvironment, b4 as VitestPackageInstaller, V as VitestPluginContext, W as WatcherTriggerPattern, b5 as WorkerResponse, b6 as _BrowserNames, b7 as experimental_getRunnerTask, b8 as startVitest } from './chunks/plugin.d.C8mmycim.js';
8
8
  import { EventEmitter } from 'events';
9
- import { A as Awaitable } from './chunks/config.d.BxjInJat.js';
9
+ import { A as Awaitable } from './chunks/config.d.QBNYCgFU.js';
10
10
  import { AfterSuiteRunMeta } from './index.js';
11
- export { X as RunnerTask, aH as RunnerTaskResult, j as RunnerTaskResultPack, m as RunnerTestCase, a as RunnerTestFile, O as RunnerTestSuite, aI as RuntimeConfig, bf as SequenceHooks, bg as SequenceSetupFiles, aJ as SerializedError, bh as disableDefaultColors } from './chunks/config.d.BxjInJat.js';
11
+ export { X as RunnerTask, aH as RunnerTaskResult, j as RunnerTaskResultPack, m as RunnerTestCase, a as RunnerTestFile, O as RunnerTestSuite, aI as RuntimeConfig, bf as SequenceHooks, bg as SequenceSetupFiles, aJ as SerializedError, bh as disableDefaultColors } from './chunks/config.d.QBNYCgFU.js';
12
12
  import { RuntimeRPC } from './index.js';
13
13
  import { Writable } from 'node:stream';
14
14
  import { ContextRPC } from './index.js';
15
- export { T as TestExecutionType } from './chunks/worker.d.Bt2A2mmi.js';
15
+ export { T as TestExecutionType } from './chunks/worker.d.BH-r1bPu.js';
16
16
  import { Debugger } from 'obug';
17
- export { g as generateFileHash } from './chunks/task-utils.d.C-IeGxLU.js';
17
+ export { g as generateFileHash } from './chunks/task-utils.d.PFh2BV6Q.js';
18
18
  export { CDPSession } from 'vitest/browser';
19
- import './chunks/browser.d.3cffPS1V.js';
19
+ import './chunks/browser.d.FGQ9_rK6.js';
20
20
  import 'chai';
21
21
  import 'vitest/optional-types.js';
22
22
  import '@vitest/mocker';
23
- import './chunks/source-map.d.BLHtC2OB.js';
23
+ import './chunks/source-map.d.kzFtk_dj.js';
24
24
  import 'node:path';
25
25
  import 'node:console';
26
26
  import 'node:fs/promises';
27
- import 'node:fs';
28
27
  import 'vitest/optional-runtime-types.js';
29
28
  import 'tinybench';
30
29
  import 'vite/module-runner';
31
- import './chunks/environment.d.DAj1Vt__.js';
30
+ import './chunks/environment.d.BY56MoGs.js';
32
31
 
33
32
  declare function escapeTestName(label: string, dynamic: boolean): string;
34
33