vitest 4.1.5 → 5.0.0-beta.2

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 (80) hide show
  1. package/LICENSE.md +7 -0
  2. package/dist/browser.d.ts +9 -9
  3. package/dist/browser.js +4 -4
  4. package/dist/chunks/{base.RR7zL1h0.js → base.Opc_YHkk.js} +10 -11
  5. package/dist/chunks/browser.d.BUhkKcDl.d.ts +899 -0
  6. package/dist/chunks/{cac.DJJmV0dT.js → cac.8N4bOkkB.js} +23 -11
  7. package/dist/chunks/{cli-api.Cjt90eJu.js → cli-api.B0RFke2g.js} +5799 -353
  8. package/dist/chunks/{config.d.A1h_Y6Jt.d.ts → config.d.D91DHYaD.d.ts} +11 -3
  9. package/dist/chunks/{console.3WNpx0tS.js → console.B3IRP8fX.js} +3 -1
  10. package/dist/chunks/{constants.CPYnjOGj.js → constants.-juJ8b_4.js} +1 -1
  11. package/dist/chunks/{coverage.d.BZtK59WP.d.ts → coverage.d.g2xbl2sP.d.ts} +4 -0
  12. package/dist/chunks/{creator.DgVhQm5q.js → creator.BqL2U_x4.js} +1 -1
  13. package/dist/chunks/{defaults.9aQKnqFk.js → defaults.szbHWQun.js} +4 -2
  14. package/dist/chunks/environment.d-DOJxxZV9.d.DOJxxZV9.d.ts +17 -0
  15. package/dist/chunks/general.d.DFAHgpC2.d.ts +247 -0
  16. package/dist/chunks/{global.d.DVsSRdQ5.d.ts → global.d.DhbKSQoV.d.ts} +4 -5
  17. package/dist/chunks/{globals.Dj1TGiMC.js → globals.EHmmu0nC.js} +15 -14
  18. package/dist/chunks/{index.DXx9Dtk7.js → index.CViWo__T.js} +5 -5
  19. package/dist/chunks/{startVitestModuleRunner.bRl2_oI_.js → index.CbgUM9E5.js} +731 -5
  20. package/dist/chunks/{test.DNmyFkvJ.js → index.D_7-4CaB.js} +2659 -14
  21. package/dist/chunks/{init-forks.UV3ZQGQH.js → init-forks.DMge3WTt.js} +1 -1
  22. package/dist/chunks/{init-threads.D3eCsY76.js → init-threads.eIoyCTon.js} +1 -1
  23. package/dist/chunks/{init.D98-gwRW.js → init.BVd7SaCA.js} +3 -5
  24. package/dist/chunks/{nativeModuleMocker.BRN2oBJd.js → nativeModuleMocker.DKpFw0pk.js} +3 -2
  25. package/dist/chunks/{index.BCY_7LL2.js → nativeModuleRunner.BOeMnHl4.js} +43 -12
  26. package/dist/chunks/node.CwFbQqI1.js +47 -0
  27. package/dist/chunks/{reporters.d.CEnv6XRv.d.ts → plugin.d.cIKZEZ16.d.ts} +306 -19
  28. package/dist/chunks/plugins.DrsmdUE2.js +37 -0
  29. package/dist/chunks/{rpc.MzXet3jl.js → rpc.DFRWVnRh.js} +16 -1
  30. package/dist/chunks/{rpc.d.B_8sPU0w.d.ts → rpc.d.7JZuxZ8u.d.ts} +19 -3
  31. package/dist/chunks/{setup-common.DYx3LtFI.js → setup-common.Hpq30zVk.js} +7 -3
  32. package/dist/chunks/{utils.BS4fH3nR.js → utils.DKODp04v.js} +3 -4
  33. package/dist/chunks/{vm.DVLYObm9.js → vm.2okbRRME.js} +6 -6
  34. package/dist/chunks/{worker.d.ZpHpO4yb.d.ts → worker.d.Bu1kXGw4.d.ts} +3 -3
  35. package/dist/cli.js +2 -2
  36. package/dist/config.cjs +4 -2
  37. package/dist/config.d.ts +21 -18
  38. package/dist/config.js +2 -2
  39. package/dist/index.d.ts +84 -22
  40. package/dist/index.js +15 -13
  41. package/dist/module-evaluator.d.ts +5 -3
  42. package/dist/module-evaluator.js +1 -1
  43. package/dist/node.d.ts +114 -19
  44. package/dist/node.js +21 -26
  45. package/dist/runtime.d.ts +40 -4
  46. package/dist/runtime.js +5 -6
  47. package/dist/{chunks/traces.DT5aQ62U.js → traces.js} +1 -1
  48. package/dist/worker.d.ts +5 -5
  49. package/dist/worker.js +21 -23
  50. package/dist/workers/forks.js +21 -23
  51. package/dist/workers/runVmTests.js +17 -16
  52. package/dist/workers/threads.js +21 -23
  53. package/dist/workers/vmForks.js +7 -9
  54. package/dist/workers/vmThreads.js +7 -9
  55. package/package.json +21 -38
  56. package/dist/chunks/benchmark.CX_oY03V.js +0 -40
  57. package/dist/chunks/benchmark.d.DAaHLpsq.d.ts +0 -24
  58. package/dist/chunks/browser.d.BcoexmFG.d.ts +0 -62
  59. package/dist/chunks/coverage.DM_a_rWm.js +0 -1087
  60. package/dist/chunks/evaluatedModules.Dg1zASAC.js +0 -17
  61. package/dist/chunks/index.DC7d2Pf8.js +0 -729
  62. package/dist/chunks/index.DdgEv5B1.js +0 -42
  63. package/dist/chunks/index.UpGiHP7g.js +0 -4255
  64. package/dist/chunks/nativeModuleRunner.BIakptoF.js +0 -36
  65. package/dist/chunks/node.COQbm6gK.js +0 -14
  66. package/dist/chunks/plugin.d.BM2TCi12.d.ts +0 -38
  67. package/dist/chunks/suite.d.udJtyAgw.d.ts +0 -10
  68. package/dist/chunks/traces.d.D2T_R8rx.d.ts +0 -60
  69. package/dist/coverage.d.ts +0 -123
  70. package/dist/coverage.js +0 -27
  71. package/dist/environments.d.ts +0 -22
  72. package/dist/environments.js +0 -5
  73. package/dist/reporters.d.ts +0 -27
  74. package/dist/reporters.js +0 -26
  75. package/dist/runners.d.ts +0 -70
  76. package/dist/runners.js +0 -19
  77. package/dist/snapshot.d.ts +0 -9
  78. package/dist/snapshot.js +0 -6
  79. package/dist/suite.d.ts +0 -5
  80. package/dist/suite.js +0 -8
@@ -1,8 +1,8 @@
1
1
  import { PrettyFormatOptions } from '@vitest/pretty-format';
2
2
  import { SequenceHooks, SequenceSetupFiles, SerializableRetry, TestTagDefinition } from '@vitest/runner';
3
- import { SnapshotUpdateState, SnapshotEnvironment } from '@vitest/snapshot';
3
+ import { L as LabelColor, g as SnapshotUpdateState } from './general.d.DFAHgpC2.js';
4
+ import { S as SnapshotEnvironment } from './environment.d-DOJxxZV9.d.DOJxxZV9.js';
4
5
  import { SerializedDiffOptions } from '@vitest/utils/diff';
5
- import { L as LabelColor } from './traces.d.D2T_R8rx.js';
6
6
 
7
7
  /**
8
8
  * Names of clock methods that may be faked by install.
@@ -139,6 +139,7 @@ interface SerializedConfig {
139
139
  showDiff?: boolean;
140
140
  truncateThreshold?: number;
141
141
  } | undefined;
142
+ taskTitleValueFormatTruncate: number;
142
143
  api: {
143
144
  allowExec: boolean | undefined;
144
145
  allowWrite: boolean | undefined;
@@ -175,6 +176,11 @@ interface SerializedConfig {
175
176
  actionTimeout?: number;
176
177
  };
177
178
  trace: BrowserTraceViewMode;
179
+ traceView: {
180
+ enabled: boolean;
181
+ recordCanvas: boolean;
182
+ inlineImages: boolean;
183
+ };
178
184
  trackUnhandledErrors: boolean;
179
185
  detailsPanelPosition: "right" | "bottom";
180
186
  };
@@ -208,6 +214,7 @@ interface SerializedConfig {
208
214
  tags: TestTagDefinition[];
209
215
  tagsFilter: string[] | undefined;
210
216
  strictTags: boolean;
217
+ mergeReportsLabel: string | undefined;
211
218
  slowTestThreshold: number | undefined;
212
219
  isAgent: boolean;
213
220
  }
@@ -217,6 +224,7 @@ interface SerializedCoverageConfig {
217
224
  htmlDir: string | undefined;
218
225
  enabled: boolean;
219
226
  customProviderModule: string | undefined;
227
+ autoAttachSubprocess: boolean;
220
228
  }
221
229
  interface SerializedRootConfig extends SerializedConfig {
222
230
  projects: SerializedConfig[];
@@ -229,4 +237,4 @@ type RuntimeConfig = Pick<SerializedConfig, "allowOnly" | "testTimeout" | "hookT
229
237
  type RuntimeOptions = Partial<RuntimeConfig>;
230
238
  type BrowserTraceViewMode = "on" | "off" | "on-first-retry" | "on-all-retries" | "retain-on-failure";
231
239
 
232
- export type { BrowserTraceViewMode as B, FakeTimerInstallOpts as F, RuntimeOptions as R, SerializedConfig as S, SerializedCoverageConfig as a, SerializedRootConfig as b, RuntimeConfig as c };
240
+ export type { BrowserTraceViewMode as B, FakeTimerInstallOpts as F, RuntimeOptions as R, SerializedRootConfig as S, SerializedConfig as a, RuntimeConfig as b, SerializedCoverageConfig as c };
@@ -3,8 +3,10 @@ import { relative } from 'node:path';
3
3
  import { Writable } from 'node:stream';
4
4
  import { getSafeTimers } from '@vitest/utils/timers';
5
5
  import c from 'tinyrainbow';
6
- import { R as RealDate } from './rpc.MzXet3jl.js';
6
+ import { R as RealDate } from './rpc.DFRWVnRh.js';
7
7
  import { g as getWorkerState } from './utils.BX5Fg8C4.js';
8
+ import 'pathe';
9
+ import 'vite/module-runner';
8
10
  import './index.Chj8NDwU.js';
9
11
 
10
12
  const UNKNOWN_TEST_ID = "__vitest__unknown_test__";
@@ -35,4 +35,4 @@ const globalApis = [
35
35
  "aroundAll"
36
36
  ];
37
37
 
38
- export { API_PATH as A, defaultInspectPort as a, defaultPort as b, configFiles as c, defaultBrowserPort as d, globalApis as g };
38
+ export { API_PATH as A, defaultPort as a, defaultInspectPort as b, configFiles as c, defaultBrowserPort as d, globalApis as g };
@@ -17,6 +17,10 @@ interface RuntimeCoverageProviderModule {
17
17
  */
18
18
  startCoverage?: (runtimeOptions: {
19
19
  isolate: boolean;
20
+ /** @internal */
21
+ autoAttachSubprocess: boolean;
22
+ /** @internal */
23
+ reportsDirectory: string;
20
24
  }) => unknown | Promise<unknown>;
21
25
  /**
22
26
  * Executed on after each run in the worker thread. Possible to return a payload passed to the provider
@@ -5,7 +5,7 @@ import { detectPackageManager, installPackage } from './index.CMESou6r.js';
5
5
  import { p as prompt, a as any } from './index.og1WyBLx.js';
6
6
  import { x } from 'tinyexec';
7
7
  import c from 'tinyrainbow';
8
- import { c as configFiles } from './constants.CPYnjOGj.js';
8
+ import { c as configFiles } from './constants.-juJ8b_4.js';
9
9
  import 'node:process';
10
10
  import 'node:module';
11
11
  import 'node:url';
@@ -36,7 +36,8 @@ const coverageConfigDefaults = {
36
36
  functions: [50, 80],
37
37
  branches: [50, 80],
38
38
  lines: [50, 80]
39
- }
39
+ },
40
+ autoAttachSubprocess: false
40
41
  };
41
42
  const fakeTimersDefaults = {
42
43
  loopLimit: 1e4,
@@ -58,7 +59,7 @@ const configDefaults = Object.freeze({
58
59
  teardownTimeout: 1e4,
59
60
  forceRerunTriggers: ["**/package.json/**", "**/{vitest,vite}.config.*/**"],
60
61
  update: false,
61
- reporters: [],
62
+ reporters: [isAgent ? "minimal" : "default", ...process.env.GITHUB_ACTIONS === "true" ? ["github-actions"] : []],
62
63
  silent: false,
63
64
  hideSkippedTests: false,
64
65
  api: false,
@@ -76,6 +77,7 @@ const configDefaults = Object.freeze({
76
77
  exclude: defaultExclude
77
78
  },
78
79
  slowTestThreshold: 300,
80
+ taskTitleValueFormatTruncate: 40,
79
81
  disableConsoleIntercept: false,
80
82
  detectAsyncLeaks: false
81
83
  });
@@ -0,0 +1,17 @@
1
+ import { ParsedStack } from '@vitest/utils';
2
+
3
+ interface SnapshotEnvironment {
4
+ getVersion: () => string;
5
+ getHeader: () => string;
6
+ resolvePath: (filepath: string) => Promise<string>;
7
+ resolveRawPath: (testPath: string, rawPath: string) => Promise<string>;
8
+ saveSnapshotFile: (filepath: string, snapshot: string) => Promise<void>;
9
+ readSnapshotFile: (filepath: string) => Promise<string | null>;
10
+ removeSnapshotFile: (filepath: string) => Promise<void>;
11
+ processStackTrace?: (stack: ParsedStack) => ParsedStack;
12
+ }
13
+ interface SnapshotEnvironmentOptions {
14
+ snapshotsDirName?: string;
15
+ }
16
+
17
+ export type { SnapshotEnvironment as S, SnapshotEnvironmentOptions as a };
@@ -0,0 +1,247 @@
1
+ import { OptionsReceived, Plugin } from '@vitest/pretty-format';
2
+ import { ParsedStack } from '@vitest/utils';
3
+ import { S as SnapshotEnvironment } from './environment.d-DOJxxZV9.d.DOJxxZV9.js';
4
+
5
+ interface DomainMatchResult {
6
+ pass: boolean;
7
+ message?: string;
8
+ /**
9
+ * The captured value viewed through the template's lens.
10
+ *
11
+ * Where the template uses patterns (e.g. regexes) or omits details,
12
+ * the resolved string adopts those patterns. Where the template doesn't
13
+ * match, the resolved string uses literal captured values instead.
14
+ *
15
+ * Used for two purposes:
16
+ * - **Diff display** (actual side): compared against `expected`
17
+ * so the diff highlights only genuine mismatches, not pattern-vs-literal noise.
18
+ * - **Snapshot update** (`--update`): written as the new snapshot content,
19
+ * preserving user-edited patterns from matched regions while incorporating
20
+ * actual values for mismatched regions.
21
+ *
22
+ * When omitted, falls back to `render(capture(received))` (the raw rendered value).
23
+ */
24
+ resolved?: string;
25
+ /**
26
+ * The stored template re-rendered as a string, representing what the user
27
+ * originally wrote or last saved.
28
+ *
29
+ * Used as the expected side in diff display.
30
+ *
31
+ * When omitted, falls back to the raw snapshot string from the snap file
32
+ * or inline snapshot.
33
+ */
34
+ expected?: string;
35
+ }
36
+ interface DomainSnapshotAdapter<
37
+ Captured = unknown,
38
+ Expected = unknown
39
+ > {
40
+ name: string;
41
+ capture: (received: unknown) => Captured;
42
+ render: (captured: Captured) => string;
43
+ parseExpected: (input: string) => Expected;
44
+ match: (captured: Captured, expected: Expected) => DomainMatchResult;
45
+ }
46
+
47
+ /**
48
+ * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
49
+ *
50
+ * This source code is licensed under the MIT license found in the
51
+ * LICENSE file in the root directory of this source tree.
52
+ */
53
+
54
+ declare class DefaultMap<
55
+ K,
56
+ V
57
+ > extends Map<K, V> {
58
+ private defaultFn;
59
+ constructor(defaultFn: (key: K) => V, entries?: Iterable<readonly [K, V]>);
60
+ get(key: K): V;
61
+ }
62
+ declare class CounterMap<K> extends DefaultMap<K, number> {
63
+ constructor();
64
+ _total: number | undefined;
65
+ valueOf(): number;
66
+ increment(key: K): void;
67
+ total(): number;
68
+ }
69
+
70
+ interface SnapshotReturnOptions {
71
+ actual: string;
72
+ count: number;
73
+ expected?: string;
74
+ key: string;
75
+ pass: boolean;
76
+ }
77
+ interface SaveStatus {
78
+ deleted: boolean;
79
+ saved: boolean;
80
+ }
81
+ interface ExpectedSnapshot {
82
+ key: string;
83
+ count: number;
84
+ data?: string;
85
+ markAsChecked: () => void;
86
+ }
87
+ declare class SnapshotState {
88
+ testFilePath: string;
89
+ snapshotPath: string;
90
+ private _counters;
91
+ private _dirty;
92
+ private _updateSnapshot;
93
+ private _snapshotData;
94
+ private _initialData;
95
+ private _inlineSnapshots;
96
+ private _inlineSnapshotStacks;
97
+ private _testIdToKeys;
98
+ private _rawSnapshots;
99
+ private _uncheckedKeys;
100
+ private _snapshotFormat;
101
+ private _environment;
102
+ private _fileExists;
103
+ expand: boolean;
104
+ private _added;
105
+ private _matched;
106
+ private _unmatched;
107
+ private _updated;
108
+ get added(): CounterMap<string>;
109
+ set added(value: number);
110
+ get matched(): CounterMap<string>;
111
+ set matched(value: number);
112
+ get unmatched(): CounterMap<string>;
113
+ set unmatched(value: number);
114
+ get updated(): CounterMap<string>;
115
+ set updated(value: number);
116
+ private constructor();
117
+ static create(testFilePath: string, options: SnapshotStateOptions): Promise<SnapshotState>;
118
+ get snapshotUpdateState(): SnapshotUpdateState;
119
+ get environment(): SnapshotEnvironment;
120
+ markSnapshotsAsCheckedForTest(testName: string): void;
121
+ clearTest(testId: string): void;
122
+ protected _inferInlineSnapshotStack(stacks: ParsedStack[]): ParsedStack | null;
123
+ private _addSnapshot;
124
+ private _resolveKey;
125
+ private _resolveInlineStack;
126
+ private _reconcile;
127
+ save(): Promise<SaveStatus>;
128
+ getUncheckedCount(): number;
129
+ getUncheckedKeys(): Array<string>;
130
+ removeUncheckedKeys(): void;
131
+ probeExpectedSnapshot(options: Pick<SnapshotMatchOptions, "testName" | "testId" | "isInline" | "inlineSnapshot">): ExpectedSnapshot;
132
+ match({ testId, testName, received, key, inlineSnapshot, isInline, error, rawSnapshot, assertionName }: SnapshotMatchOptions): SnapshotReturnOptions;
133
+ processDomainSnapshot({ testId, received, expectedSnapshot, matchResult, isInline, error, assertionName }: ProcessDomainSnapshotOptions): SnapshotReturnOptions;
134
+ pack(): Promise<SnapshotResult>;
135
+ }
136
+
137
+ type SnapshotData = Record<string, string>;
138
+ type SnapshotUpdateState = "all" | "new" | "none";
139
+ type SnapshotSerializer = Plugin;
140
+ interface SnapshotStateOptions {
141
+ updateSnapshot: SnapshotUpdateState;
142
+ snapshotEnvironment: SnapshotEnvironment;
143
+ expand?: boolean;
144
+ snapshotFormat?: OptionsReceived;
145
+ resolveSnapshotPath?: (path: string, extension: string, context?: any) => string;
146
+ }
147
+ interface SnapshotMatchOptions {
148
+ testId: string;
149
+ testName: string;
150
+ received: unknown;
151
+ key?: string;
152
+ inlineSnapshot?: string;
153
+ isInline: boolean;
154
+ error?: Error;
155
+ rawSnapshot?: RawSnapshotInfo;
156
+ assertionName?: string;
157
+ }
158
+ interface ProcessDomainSnapshotOptions {
159
+ testId: string;
160
+ received: string;
161
+ expectedSnapshot: ExpectedSnapshot;
162
+ matchResult?: DomainMatchResult;
163
+ isInline?: boolean;
164
+ assertionName?: string;
165
+ error?: Error;
166
+ }
167
+ interface SnapshotResult {
168
+ filepath: string;
169
+ added: number;
170
+ fileDeleted: boolean;
171
+ matched: number;
172
+ unchecked: number;
173
+ uncheckedKeys: Array<string>;
174
+ unmatched: number;
175
+ updated: number;
176
+ }
177
+ interface UncheckedSnapshot {
178
+ filePath: string;
179
+ keys: Array<string>;
180
+ }
181
+ interface SnapshotSummary {
182
+ added: number;
183
+ didUpdate: boolean;
184
+ failure: boolean;
185
+ filesAdded: number;
186
+ filesRemoved: number;
187
+ filesRemovedList: Array<string>;
188
+ filesUnmatched: number;
189
+ filesUpdated: number;
190
+ matched: number;
191
+ total: number;
192
+ unchecked: number;
193
+ uncheckedKeysByFile: Array<UncheckedSnapshot>;
194
+ unmatched: number;
195
+ updated: number;
196
+ }
197
+
198
+ interface RawSnapshotInfo {
199
+ file: string;
200
+ readonly?: boolean;
201
+ content?: string;
202
+ }
203
+
204
+ interface AfterSuiteRunMeta {
205
+ coverage?: unknown;
206
+ testFiles: string[];
207
+ environment: string;
208
+ projectName?: string;
209
+ }
210
+ interface UserConsoleLog {
211
+ content: string;
212
+ origin?: string;
213
+ browser?: boolean;
214
+ type: "stdout" | "stderr";
215
+ taskId?: string;
216
+ time: number;
217
+ size: number;
218
+ }
219
+ interface ModuleGraphData {
220
+ graph: Record<string, string[]>;
221
+ externalized: string[];
222
+ inlined: string[];
223
+ }
224
+ interface ProvidedContext {}
225
+ interface ResolveFunctionResult {
226
+ id: string;
227
+ file: string;
228
+ url: string;
229
+ }
230
+ interface FetchCachedFileSystemResult {
231
+ cached: true;
232
+ tmp: string;
233
+ id: string;
234
+ file: string | null;
235
+ url: string;
236
+ invalidate: boolean;
237
+ }
238
+ type LabelColor = "black" | "red" | "green" | "yellow" | "blue" | "magenta" | "cyan" | "white";
239
+ interface AsyncLeak {
240
+ filename: string;
241
+ projectName: string;
242
+ stack: string;
243
+ type: string;
244
+ }
245
+
246
+ export { SnapshotState as i };
247
+ export type { AfterSuiteRunMeta as A, DomainSnapshotAdapter as D, FetchCachedFileSystemResult as F, LabelColor as L, ModuleGraphData as M, ProvidedContext as P, ResolveFunctionResult as R, SnapshotData as S, UserConsoleLog as U, DomainMatchResult as a, SnapshotMatchOptions as b, SnapshotResult as c, SnapshotSerializer as d, SnapshotStateOptions as e, SnapshotSummary as f, SnapshotUpdateState as g, UncheckedSnapshot as h, AsyncLeak as j };
@@ -1,9 +1,7 @@
1
- import { PromisifyAssertion, Tester, ExpectStatic } from '@vitest/expect';
1
+ import { P as PromisifyAssertion, T as Tester, E as ExpectStatic, l as BenchmarkResult } from './browser.d.BUhkKcDl.js';
2
2
  import { Plugin } from '@vitest/pretty-format';
3
3
  import { Test } from '@vitest/runner';
4
- import { SnapshotState } from '@vitest/snapshot';
5
- import { B as BenchmarkResult } from './benchmark.d.DAaHLpsq.js';
6
- import { U as UserConsoleLog } from './traces.d.D2T_R8rx.js';
4
+ import { i as SnapshotState, U as UserConsoleLog } from './general.d.DFAHgpC2.js';
7
5
 
8
6
  interface SnapshotMatcher<T> {
9
7
  <U extends { [P in keyof T] : any }>(snapshot: Partial<U>, hint?: string): void;
@@ -13,7 +11,7 @@ interface InlineSnapshotMatcher<T> {
13
11
  <U extends { [P in keyof T] : any }>(properties: Partial<U>, snapshot?: string, hint?: string): void;
14
12
  (hint?: string): void;
15
13
  }
16
- declare module "@vitest/expect" {
14
+ declare module "vitest" {
17
15
  interface MatcherState {
18
16
  environment: string;
19
17
  snapshotState: SnapshotState;
@@ -86,6 +84,7 @@ declare module "@vitest/runner" {
86
84
  interface TaskMeta {
87
85
  typecheck?: boolean;
88
86
  benchmark?: boolean;
87
+ __vitest_label__?: string;
89
88
  }
90
89
  interface File {
91
90
  prepareDuration?: number;
@@ -1,24 +1,25 @@
1
- import { g as globalApis } from './constants.CPYnjOGj.js';
2
- import { i as index } from './index.DdgEv5B1.js';
3
- import './test.DNmyFkvJ.js';
1
+ import { g as globalApis } from './constants.-juJ8b_4.js';
2
+ import { i as index } from './index.D_7-4CaB.js';
4
3
  import '@vitest/runner';
5
- import '@vitest/utils/helpers';
6
- import '@vitest/utils/timers';
7
- import './benchmark.CX_oY03V.js';
8
- import '@vitest/runner/utils';
9
4
  import './utils.BX5Fg8C4.js';
10
- import '@vitest/expect';
11
- import '@vitest/utils/error';
12
- import 'pathe';
5
+ import '@vitest/utils/timers';
13
6
  import '@vitest/spy';
7
+ import '@vitest/utils/helpers';
14
8
  import '@vitest/utils/offset';
15
9
  import '@vitest/utils/source-map';
16
10
  import './_commonjsHelpers.D26ty3Ew.js';
17
- import './rpc.MzXet3jl.js';
18
- import './index.Chj8NDwU.js';
19
- import '@vitest/snapshot';
20
- import './evaluatedModules.Dg1zASAC.js';
11
+ import './rpc.DFRWVnRh.js';
12
+ import 'pathe';
21
13
  import 'vite/module-runner';
14
+ import './index.Chj8NDwU.js';
15
+ import 'chai';
16
+ import '@vitest/runner/utils';
17
+ import '@vitest/utils/error';
18
+ import './plugins.DrsmdUE2.js';
19
+ import '@vitest/pretty-format';
20
+ import '@vitest/utils/diff';
21
+ import '@vitest/utils/display';
22
+ import 'tinyrainbow';
22
23
  import 'expect-type';
23
24
 
24
25
  function registerApiGlobally() {
@@ -1,9 +1,9 @@
1
- import { chai } from '@vitest/expect';
1
+ import * as chai from 'chai';
2
2
  import { createHook } from 'node:async_hooks';
3
- import { l as loadDiffConfig, a as loadSnapshotSerializers, t as takeCoverageInsideWorker } from './setup-common.DYx3LtFI.js';
4
- import { r as rpc } from './rpc.MzXet3jl.js';
3
+ import { l as loadDiffConfig, a as loadSnapshotSerializers, t as takeCoverageInsideWorker } from './setup-common.Hpq30zVk.js';
4
+ import { r as rpc } from './rpc.DFRWVnRh.js';
5
5
  import { g as getWorkerState } from './utils.BX5Fg8C4.js';
6
- import { T as TestRunner, N as NodeBenchmarkRunner } from './test.DNmyFkvJ.js';
6
+ import { T as TestRunner, N as NodeBenchmarkRunner } from './index.D_7-4CaB.js';
7
7
 
8
8
  function setupChaiConfig(config) {
9
9
  Object.assign(chai.config, config);
@@ -11,7 +11,7 @@ function setupChaiConfig(config) {
11
11
 
12
12
  async function resolveSnapshotEnvironment(config, moduleRunner) {
13
13
  if (!config.snapshotEnvironment) {
14
- const { VitestNodeSnapshotEnvironment } = await import('./node.COQbm6gK.js');
14
+ const { VitestNodeSnapshotEnvironment } = await import('./node.CwFbQqI1.js');
15
15
  return new VitestNodeSnapshotEnvironment();
16
16
  }
17
17
  const mod = await moduleRunner.import(config.snapshotEnvironment);