vitest 3.0.6 → 3.0.7

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 (32) hide show
  1. package/dist/browser.d.ts +1 -1
  2. package/dist/browser.js +1 -1
  3. package/dist/chunks/{base.B2NLWv2w.js → base.BgUWWWYp.js} +2 -2
  4. package/dist/chunks/{cac.mNJBJcT7.js → cac.87F_onld.js} +3 -3
  5. package/dist/chunks/{cli-api.Dkt_XoKq.js → cli-api.BZbq1zTX.js} +195 -186
  6. package/dist/chunks/{execute.DNQad00_.js → execute.Bhwls1-Z.js} +6 -1
  7. package/dist/chunks/{globals.DrEiwfS1.js → globals.BCtI_nQG.js} +2 -2
  8. package/dist/chunks/{index.SduP00mx.js → index.B8haHJlQ.js} +1 -1
  9. package/dist/chunks/{index.DC3HGwr0.js → index.BmFFzXX_.js} +1 -1
  10. package/dist/chunks/{reporters.DTtkbAtP.d.ts → reporters.QZ837uWx.d.ts} +0 -2
  11. package/dist/chunks/{runBaseTests.Cr-AyqFv.js → runBaseTests.9XCQcSZC.js} +4 -4
  12. package/dist/chunks/{setup-common.IrcyRZ8C.js → setup-common.wObu9a36.js} +1 -1
  13. package/dist/chunks/{vi.DrftpPF8.js → vi.DT3m61kS.js} +3 -3
  14. package/dist/chunks/{vite.BmCIRnbq.d.ts → vite.vM3UZq1q.d.ts} +1 -1
  15. package/dist/chunks/{vm.ku9l48hv.js → vm.6kNys9FN.js} +1 -1
  16. package/dist/cli.js +1 -1
  17. package/dist/config.d.ts +3 -3
  18. package/dist/coverage.d.ts +1 -1
  19. package/dist/execute.js +1 -1
  20. package/dist/index.d.ts +2 -2
  21. package/dist/index.js +2 -2
  22. package/dist/node.d.ts +3 -3
  23. package/dist/node.js +7 -7
  24. package/dist/reporters.d.ts +1 -1
  25. package/dist/runners.js +1 -1
  26. package/dist/workers/forks.js +2 -2
  27. package/dist/workers/runVmTests.js +4 -4
  28. package/dist/workers/threads.js +2 -2
  29. package/dist/workers/vmForks.js +2 -2
  30. package/dist/workers/vmThreads.js +2 -2
  31. package/dist/workers.js +3 -3
  32. package/package.json +16 -16
package/dist/browser.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { b as CoverageModuleLoader, c as CoverageProvider } from './chunks/reporters.DTtkbAtP.js';
1
+ import { b as CoverageModuleLoader, c as CoverageProvider } from './chunks/reporters.QZ837uWx.js';
2
2
  import { a as SerializedCoverageConfig, S as SerializedConfig } from './chunks/config.BRtC-JeT.js';
3
3
  import * as spy$1 from '@vitest/spy';
4
4
  import { SerializedDiffOptions } from '@vitest/utils/diff';
package/dist/browser.js CHANGED
@@ -1,6 +1,6 @@
1
1
  export { g as getCoverageProvider, s as startCoverageInsideWorker, a as stopCoverageInsideWorker, t as takeCoverageInsideWorker } from './chunks/coverage.DnNIv-kJ.js';
2
2
  export { s as SpyModule } from './chunks/spy.Cf_4R5Oe.js';
3
- export { l as loadDiffConfig, a as loadSnapshotSerializers, s as setupCommonEnv } from './chunks/setup-common.IrcyRZ8C.js';
3
+ export { l as loadDiffConfig, a as loadSnapshotSerializers, s as setupCommonEnv } from './chunks/setup-common.wObu9a36.js';
4
4
  export { collectTests, processError, startTests } from '@vitest/runner';
5
5
  import '@vitest/spy';
6
6
  import '@vitest/snapshot';
@@ -1,5 +1,5 @@
1
1
  import { ModuleCacheMap } from 'vite-node/client';
2
- import { g as getDefaultRequestStubs, s as startVitestExecutor } from './execute.DNQad00_.js';
2
+ import { g as getDefaultRequestStubs, s as startVitestExecutor } from './execute.Bhwls1-Z.js';
3
3
  import { p as provideWorkerState } from './utils.C8RiOc4B.js';
4
4
 
5
5
  let _viteNode;
@@ -28,7 +28,7 @@ async function runBaseTests(method, state) {
28
28
  ));
29
29
  const [executor, { run }] = await Promise.all([
30
30
  startViteNode({ state, requestStubs: getDefaultRequestStubs() }),
31
- import('./runBaseTests.Cr-AyqFv.js')
31
+ import('./runBaseTests.9XCQcSZC.js')
32
32
  ]);
33
33
  const fileSpecs = ctx.files.map(
34
34
  (f) => typeof f === "string" ? { filepath: f, testLocations: void 0 } : f
@@ -618,7 +618,7 @@ class CAC extends EventEmitter {
618
618
 
619
619
  const cac = (name = "") => new CAC(name);
620
620
 
621
- var version = "3.0.6";
621
+ var version = "3.0.7";
622
622
 
623
623
  const apiConfig = (port) => ({
624
624
  port: {
@@ -1567,7 +1567,7 @@ async function start(mode, cliFilters, options) {
1567
1567
  } catch {
1568
1568
  }
1569
1569
  try {
1570
- const { startVitest } = await import('./cli-api.Dkt_XoKq.js').then(function (n) { return n.f; });
1570
+ const { startVitest } = await import('./cli-api.BZbq1zTX.js').then(function (n) { return n.f; });
1571
1571
  const ctx = await startVitest(mode, cliFilters.map(normalize), normalizeCliOptions(cliFilters, options));
1572
1572
  if (!ctx.shouldKeepServer()) {
1573
1573
  await ctx.exit();
@@ -1598,7 +1598,7 @@ async function collect(mode, cliFilters, options) {
1598
1598
  } catch {
1599
1599
  }
1600
1600
  try {
1601
- const { prepareVitest, processCollected, outputFileList } = await import('./cli-api.Dkt_XoKq.js').then(function (n) { return n.f; });
1601
+ const { prepareVitest, processCollected, outputFileList } = await import('./cli-api.BZbq1zTX.js').then(function (n) { return n.f; });
1602
1602
  const ctx = await prepareVitest(mode, {
1603
1603
  ...normalizeCliOptions(cliFilters, options),
1604
1604
  watch: false,
@@ -11,19 +11,19 @@ import { generateFileHash, createFileTask, limitConcurrency, hasFailed, getTasks
11
11
  import { SnapshotManager } from '@vitest/snapshot/manager';
12
12
  import { ViteNodeRunner } from 'vite-node/client';
13
13
  import { ViteNodeServer } from 'vite-node/server';
14
- import { v as version$1 } from './cac.mNJBJcT7.js';
14
+ import { v as version$1 } from './cac.87F_onld.js';
15
15
  import { c as createBirpc } from './index.68735LiX.js';
16
16
  import { p as parse, s as stringify, g as printError, h as generateCodeFrame, b as BenchmarkReportsMap, R as ReportersMap, i as BlobReporter, r as readBlobs, H as HangingProcessReporter } from './index.C1f-_gvH.js';
17
- import require$$0 from 'stream';
18
- import require$$0$1 from 'zlib';
19
- import require$$0$2 from 'buffer';
20
- import require$$1 from 'crypto';
21
17
  import require$$0$3 from 'events';
22
18
  import require$$1$1 from 'https';
23
19
  import require$$2 from 'http';
24
20
  import require$$3 from 'net';
25
21
  import require$$4 from 'tls';
22
+ import require$$1 from 'crypto';
23
+ import require$$0$2 from 'stream';
26
24
  import require$$7 from 'url';
25
+ import require$$0 from 'zlib';
26
+ import require$$0$1 from 'buffer';
27
27
  import { g as getDefaultExportFromCjs } from './_commonjsHelpers.BFTU3MAI.js';
28
28
  import { parseErrorStacktrace } from '@vitest/utils/source-map';
29
29
  import crypto from 'node:crypto';
@@ -47,175 +47,6 @@ import { serializeError } from '@vitest/utils/error';
47
47
  import readline from 'node:readline';
48
48
  import { stripVTControlCharacters } from 'node:util';
49
49
 
50
- var stream;
51
- var hasRequiredStream;
52
-
53
- function requireStream () {
54
- if (hasRequiredStream) return stream;
55
- hasRequiredStream = 1;
56
-
57
- const { Duplex } = require$$0;
58
-
59
- /**
60
- * Emits the `'close'` event on a stream.
61
- *
62
- * @param {Duplex} stream The stream.
63
- * @private
64
- */
65
- function emitClose(stream) {
66
- stream.emit('close');
67
- }
68
-
69
- /**
70
- * The listener of the `'end'` event.
71
- *
72
- * @private
73
- */
74
- function duplexOnEnd() {
75
- if (!this.destroyed && this._writableState.finished) {
76
- this.destroy();
77
- }
78
- }
79
-
80
- /**
81
- * The listener of the `'error'` event.
82
- *
83
- * @param {Error} err The error
84
- * @private
85
- */
86
- function duplexOnError(err) {
87
- this.removeListener('error', duplexOnError);
88
- this.destroy();
89
- if (this.listenerCount('error') === 0) {
90
- // Do not suppress the throwing behavior.
91
- this.emit('error', err);
92
- }
93
- }
94
-
95
- /**
96
- * Wraps a `WebSocket` in a duplex stream.
97
- *
98
- * @param {WebSocket} ws The `WebSocket` to wrap
99
- * @param {Object} [options] The options for the `Duplex` constructor
100
- * @return {Duplex} The duplex stream
101
- * @public
102
- */
103
- function createWebSocketStream(ws, options) {
104
- let terminateOnDestroy = true;
105
-
106
- const duplex = new Duplex({
107
- ...options,
108
- autoDestroy: false,
109
- emitClose: false,
110
- objectMode: false,
111
- writableObjectMode: false
112
- });
113
-
114
- ws.on('message', function message(msg, isBinary) {
115
- const data =
116
- !isBinary && duplex._readableState.objectMode ? msg.toString() : msg;
117
-
118
- if (!duplex.push(data)) ws.pause();
119
- });
120
-
121
- ws.once('error', function error(err) {
122
- if (duplex.destroyed) return;
123
-
124
- // Prevent `ws.terminate()` from being called by `duplex._destroy()`.
125
- //
126
- // - If the `'error'` event is emitted before the `'open'` event, then
127
- // `ws.terminate()` is a noop as no socket is assigned.
128
- // - Otherwise, the error is re-emitted by the listener of the `'error'`
129
- // event of the `Receiver` object. The listener already closes the
130
- // connection by calling `ws.close()`. This allows a close frame to be
131
- // sent to the other peer. If `ws.terminate()` is called right after this,
132
- // then the close frame might not be sent.
133
- terminateOnDestroy = false;
134
- duplex.destroy(err);
135
- });
136
-
137
- ws.once('close', function close() {
138
- if (duplex.destroyed) return;
139
-
140
- duplex.push(null);
141
- });
142
-
143
- duplex._destroy = function (err, callback) {
144
- if (ws.readyState === ws.CLOSED) {
145
- callback(err);
146
- process.nextTick(emitClose, duplex);
147
- return;
148
- }
149
-
150
- let called = false;
151
-
152
- ws.once('error', function error(err) {
153
- called = true;
154
- callback(err);
155
- });
156
-
157
- ws.once('close', function close() {
158
- if (!called) callback(err);
159
- process.nextTick(emitClose, duplex);
160
- });
161
-
162
- if (terminateOnDestroy) ws.terminate();
163
- };
164
-
165
- duplex._final = function (callback) {
166
- if (ws.readyState === ws.CONNECTING) {
167
- ws.once('open', function open() {
168
- duplex._final(callback);
169
- });
170
- return;
171
- }
172
-
173
- // If the value of the `_socket` property is `null` it means that `ws` is a
174
- // client websocket and the handshake failed. In fact, when this happens, a
175
- // socket is never assigned to the websocket. Wait for the `'error'` event
176
- // that will be emitted by the websocket.
177
- if (ws._socket === null) return;
178
-
179
- if (ws._socket._writableState.finished) {
180
- callback();
181
- if (duplex._readableState.endEmitted) duplex.destroy();
182
- } else {
183
- ws._socket.once('finish', function finish() {
184
- // `duplex` is not destroyed here because the `'end'` event will be
185
- // emitted on `duplex` after this `'finish'` event. The EOF signaling
186
- // `null` chunk is, in fact, pushed when the websocket emits `'close'`.
187
- callback();
188
- });
189
- ws.close();
190
- }
191
- };
192
-
193
- duplex._read = function () {
194
- if (ws.isPaused) ws.resume();
195
- };
196
-
197
- duplex._write = function (chunk, encoding, callback) {
198
- if (ws.readyState === ws.CONNECTING) {
199
- ws.once('open', function open() {
200
- duplex._write(chunk, encoding, callback);
201
- });
202
- return;
203
- }
204
-
205
- ws.send(chunk, callback);
206
- };
207
-
208
- duplex.on('end', duplexOnEnd);
209
- duplex.on('error', duplexOnError);
210
- return duplex;
211
- }
212
-
213
- stream = createWebSocketStream;
214
- return stream;
215
- }
216
-
217
- requireStream();
218
-
219
50
  var bufferUtil = {exports: {}};
220
51
 
221
52
  var constants$1;
@@ -452,7 +283,7 @@ function requirePermessageDeflate () {
452
283
  if (hasRequiredPermessageDeflate) return permessageDeflate;
453
284
  hasRequiredPermessageDeflate = 1;
454
285
 
455
- const zlib = require$$0$1;
286
+ const zlib = require$$0;
456
287
 
457
288
  const bufferUtil = requireBufferUtil();
458
289
  const Limiter = requireLimiter();
@@ -975,7 +806,7 @@ function requireValidation () {
975
806
  if (hasRequiredValidation) return validation.exports;
976
807
  hasRequiredValidation = 1;
977
808
 
978
- const { isUtf8 } = require$$0$2;
809
+ const { isUtf8 } = require$$0$1;
979
810
 
980
811
  const { hasBlob } = requireConstants$1();
981
812
 
@@ -1135,7 +966,7 @@ function requireReceiver () {
1135
966
  if (hasRequiredReceiver) return receiver;
1136
967
  hasRequiredReceiver = 1;
1137
968
 
1138
- const { Writable } = require$$0;
969
+ const { Writable } = require$$0$2;
1139
970
 
1140
971
  const PerMessageDeflate = requirePermessageDeflate();
1141
972
  const {
@@ -1842,8 +1673,6 @@ function requireReceiver () {
1842
1673
  return receiver;
1843
1674
  }
1844
1675
 
1845
- requireReceiver();
1846
-
1847
1676
  /* eslint no-unused-vars: ["error", { "varsIgnorePattern": "^Duplex" }] */
1848
1677
 
1849
1678
  var sender;
@@ -1853,7 +1682,7 @@ function requireSender () {
1853
1682
  if (hasRequiredSender) return sender;
1854
1683
  hasRequiredSender = 1;
1855
1684
 
1856
- const { Duplex } = require$$0;
1685
+ const { Duplex } = require$$0$2;
1857
1686
  const { randomFillSync } = require$$1;
1858
1687
 
1859
1688
  const PerMessageDeflate = requirePermessageDeflate();
@@ -2402,7 +2231,7 @@ function requireSender () {
2402
2231
  /**
2403
2232
  * Sends a frame.
2404
2233
  *
2405
- * @param {Buffer[]} list The frame to send
2234
+ * @param {(Buffer | String)[]} list The frame to send
2406
2235
  * @param {Function} [cb] Callback
2407
2236
  * @private
2408
2237
  */
@@ -2454,8 +2283,6 @@ function requireSender () {
2454
2283
  return sender;
2455
2284
  }
2456
2285
 
2457
- requireSender();
2458
-
2459
2286
  var eventTarget;
2460
2287
  var hasRequiredEventTarget;
2461
2288
 
@@ -2982,7 +2809,7 @@ function requireWebsocket () {
2982
2809
  const net = require$$3;
2983
2810
  const tls = require$$4;
2984
2811
  const { randomBytes, createHash } = require$$1;
2985
- const { Duplex, Readable } = require$$0;
2812
+ const { Duplex, Readable } = require$$0$2;
2986
2813
  const { URL } = require$$7;
2987
2814
 
2988
2815
  const PerMessageDeflate = requirePermessageDeflate();
@@ -4363,6 +4190,182 @@ function requireWebsocket () {
4363
4190
  return websocket;
4364
4191
  }
4365
4192
 
4193
+ /* eslint no-unused-vars: ["error", { "varsIgnorePattern": "^WebSocket$" }] */
4194
+
4195
+ var stream;
4196
+ var hasRequiredStream;
4197
+
4198
+ function requireStream () {
4199
+ if (hasRequiredStream) return stream;
4200
+ hasRequiredStream = 1;
4201
+
4202
+ requireWebsocket();
4203
+ const { Duplex } = require$$0$2;
4204
+
4205
+ /**
4206
+ * Emits the `'close'` event on a stream.
4207
+ *
4208
+ * @param {Duplex} stream The stream.
4209
+ * @private
4210
+ */
4211
+ function emitClose(stream) {
4212
+ stream.emit('close');
4213
+ }
4214
+
4215
+ /**
4216
+ * The listener of the `'end'` event.
4217
+ *
4218
+ * @private
4219
+ */
4220
+ function duplexOnEnd() {
4221
+ if (!this.destroyed && this._writableState.finished) {
4222
+ this.destroy();
4223
+ }
4224
+ }
4225
+
4226
+ /**
4227
+ * The listener of the `'error'` event.
4228
+ *
4229
+ * @param {Error} err The error
4230
+ * @private
4231
+ */
4232
+ function duplexOnError(err) {
4233
+ this.removeListener('error', duplexOnError);
4234
+ this.destroy();
4235
+ if (this.listenerCount('error') === 0) {
4236
+ // Do not suppress the throwing behavior.
4237
+ this.emit('error', err);
4238
+ }
4239
+ }
4240
+
4241
+ /**
4242
+ * Wraps a `WebSocket` in a duplex stream.
4243
+ *
4244
+ * @param {WebSocket} ws The `WebSocket` to wrap
4245
+ * @param {Object} [options] The options for the `Duplex` constructor
4246
+ * @return {Duplex} The duplex stream
4247
+ * @public
4248
+ */
4249
+ function createWebSocketStream(ws, options) {
4250
+ let terminateOnDestroy = true;
4251
+
4252
+ const duplex = new Duplex({
4253
+ ...options,
4254
+ autoDestroy: false,
4255
+ emitClose: false,
4256
+ objectMode: false,
4257
+ writableObjectMode: false
4258
+ });
4259
+
4260
+ ws.on('message', function message(msg, isBinary) {
4261
+ const data =
4262
+ !isBinary && duplex._readableState.objectMode ? msg.toString() : msg;
4263
+
4264
+ if (!duplex.push(data)) ws.pause();
4265
+ });
4266
+
4267
+ ws.once('error', function error(err) {
4268
+ if (duplex.destroyed) return;
4269
+
4270
+ // Prevent `ws.terminate()` from being called by `duplex._destroy()`.
4271
+ //
4272
+ // - If the `'error'` event is emitted before the `'open'` event, then
4273
+ // `ws.terminate()` is a noop as no socket is assigned.
4274
+ // - Otherwise, the error is re-emitted by the listener of the `'error'`
4275
+ // event of the `Receiver` object. The listener already closes the
4276
+ // connection by calling `ws.close()`. This allows a close frame to be
4277
+ // sent to the other peer. If `ws.terminate()` is called right after this,
4278
+ // then the close frame might not be sent.
4279
+ terminateOnDestroy = false;
4280
+ duplex.destroy(err);
4281
+ });
4282
+
4283
+ ws.once('close', function close() {
4284
+ if (duplex.destroyed) return;
4285
+
4286
+ duplex.push(null);
4287
+ });
4288
+
4289
+ duplex._destroy = function (err, callback) {
4290
+ if (ws.readyState === ws.CLOSED) {
4291
+ callback(err);
4292
+ process.nextTick(emitClose, duplex);
4293
+ return;
4294
+ }
4295
+
4296
+ let called = false;
4297
+
4298
+ ws.once('error', function error(err) {
4299
+ called = true;
4300
+ callback(err);
4301
+ });
4302
+
4303
+ ws.once('close', function close() {
4304
+ if (!called) callback(err);
4305
+ process.nextTick(emitClose, duplex);
4306
+ });
4307
+
4308
+ if (terminateOnDestroy) ws.terminate();
4309
+ };
4310
+
4311
+ duplex._final = function (callback) {
4312
+ if (ws.readyState === ws.CONNECTING) {
4313
+ ws.once('open', function open() {
4314
+ duplex._final(callback);
4315
+ });
4316
+ return;
4317
+ }
4318
+
4319
+ // If the value of the `_socket` property is `null` it means that `ws` is a
4320
+ // client websocket and the handshake failed. In fact, when this happens, a
4321
+ // socket is never assigned to the websocket. Wait for the `'error'` event
4322
+ // that will be emitted by the websocket.
4323
+ if (ws._socket === null) return;
4324
+
4325
+ if (ws._socket._writableState.finished) {
4326
+ callback();
4327
+ if (duplex._readableState.endEmitted) duplex.destroy();
4328
+ } else {
4329
+ ws._socket.once('finish', function finish() {
4330
+ // `duplex` is not destroyed here because the `'end'` event will be
4331
+ // emitted on `duplex` after this `'finish'` event. The EOF signaling
4332
+ // `null` chunk is, in fact, pushed when the websocket emits `'close'`.
4333
+ callback();
4334
+ });
4335
+ ws.close();
4336
+ }
4337
+ };
4338
+
4339
+ duplex._read = function () {
4340
+ if (ws.isPaused) ws.resume();
4341
+ };
4342
+
4343
+ duplex._write = function (chunk, encoding, callback) {
4344
+ if (ws.readyState === ws.CONNECTING) {
4345
+ ws.once('open', function open() {
4346
+ duplex._write(chunk, encoding, callback);
4347
+ });
4348
+ return;
4349
+ }
4350
+
4351
+ ws.send(chunk, callback);
4352
+ };
4353
+
4354
+ duplex.on('end', duplexOnEnd);
4355
+ duplex.on('error', duplexOnError);
4356
+ return duplex;
4357
+ }
4358
+
4359
+ stream = createWebSocketStream;
4360
+ return stream;
4361
+ }
4362
+
4363
+ requireStream();
4364
+
4365
+ requireReceiver();
4366
+
4367
+ requireSender();
4368
+
4366
4369
  requireWebsocket();
4367
4370
 
4368
4371
  var subprotocol;
@@ -4446,7 +4449,7 @@ function requireWebsocketServer () {
4446
4449
 
4447
4450
  const EventEmitter = require$$0$3;
4448
4451
  const http = require$$2;
4449
- const { Duplex } = require$$0;
4452
+ const { Duplex } = require$$0$2;
4450
4453
  const { createHash } = require$$1;
4451
4454
 
4452
4455
  const extension = requireExtension();
@@ -8686,6 +8689,7 @@ var picomatchExports = /*@__PURE__*/ requirePicomatch();
8686
8689
  var picomatch2 = /*@__PURE__*/getDefaultExportFromCjs(picomatchExports);
8687
8690
 
8688
8691
  // src/index.ts
8692
+ var ONLY_PARENT_DIRECTORIES = /^(\/?\.\.)+$/;
8689
8693
  function getPartialMatcher(patterns, options) {
8690
8694
  const patternsCount = patterns.length;
8691
8695
  const patternsParts = Array(patternsCount);
@@ -8702,6 +8706,9 @@ function getPartialMatcher(patterns, options) {
8702
8706
  }
8703
8707
  return (input) => {
8704
8708
  const inputParts = input.split("/");
8709
+ if (inputParts[0] === ".." && ONLY_PARENT_DIRECTORIES.test(input)) {
8710
+ return true;
8711
+ }
8705
8712
  for (let i = 0; i < patterns.length; i++) {
8706
8713
  const patternParts = patternsParts[i];
8707
8714
  const regex = regexes[i];
@@ -8892,7 +8899,9 @@ function crawl(options, cwd, sync) {
8892
8899
  exclude: options.debug ? (_, p) => {
8893
8900
  const relativePath = processPath(p, cwd, props.root, true, true);
8894
8901
  const skipped = relativePath !== "." && !partialMatcher(relativePath) || ignore(relativePath);
8895
- if (!skipped) {
8902
+ if (skipped) {
8903
+ log(`skipped ${p}`);
8904
+ } else {
8896
8905
  log(`crawling ${p}`);
8897
8906
  }
8898
8907
  return skipped;
@@ -235,7 +235,12 @@ const builtins = /* @__PURE__ */ new Set([
235
235
  "util/types",
236
236
  "wasi"
237
237
  ]);
238
- const prefixedBuiltins = /* @__PURE__ */ new Set(["node:test", "node:sqlite"]);
238
+ const prefixedBuiltins = /* @__PURE__ */ new Set([
239
+ "node:sea",
240
+ "node:sqlite",
241
+ "node:test",
242
+ "node:test/reporters"
243
+ ]);
239
244
  const NODE_BUILTIN_NAMESPACE = "node:";
240
245
  function isNodeBuiltin(id) {
241
246
  if (prefixedBuiltins.has(id)) {
@@ -1,6 +1,6 @@
1
1
  import { g as globalApis } from './constants.fzPh7AOq.js';
2
- import { V as VitestIndex } from './index.SduP00mx.js';
3
- import './vi.DrftpPF8.js';
2
+ import { V as VitestIndex } from './index.B8haHJlQ.js';
3
+ import './vi.DT3m61kS.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.DrftpPF8.js';
1
+ import { c as createExpect, a as globalExpect, i as inject, v as vi, b as vitest } from './vi.DT3m61kS.js';
2
2
  import { i as isFirstRun, a as runOnce } from './run-once.2ogXb3JV.js';
3
3
  import { b as bench } from './benchmark.Cdu9hjj4.js';
4
4
  import { expectTypeOf } from 'expect-type';
@@ -3,7 +3,7 @@ import { resolve } from 'node:path';
3
3
  import { t as takeCoverageInsideWorker } from './coverage.DnNIv-kJ.js';
4
4
  import { distDir } from '../path.js';
5
5
  import { r as rpc } from './rpc.TVf73xOu.js';
6
- import { l as loadDiffConfig, a as loadSnapshotSerializers } from './setup-common.IrcyRZ8C.js';
6
+ import { l as loadDiffConfig, a as loadSnapshotSerializers } from './setup-common.wObu9a36.js';
7
7
  import { g as getWorkerState } from './utils.C8RiOc4B.js';
8
8
 
9
9
  function setupChaiConfig(config) {
@@ -2287,8 +2287,6 @@ interface BrowserProvider {
2287
2287
  */
2288
2288
  supportsParallelism: boolean;
2289
2289
  getSupportedBrowsers: () => readonly string[];
2290
- beforeCommand?: (command: string, args: unknown[]) => Awaitable$1<void>;
2291
- afterCommand?: (command: string, args: unknown[]) => Awaitable$1<void>;
2292
2290
  getCommandsContext: (sessionId: string) => Record<string, unknown>;
2293
2291
  openPage: (sessionId: string, url: string, beforeNavigate?: () => Promise<void>) => Promise<void>;
2294
2292
  getCDPSession?: (sessionId: string) => Promise<CDPSession>;
@@ -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.DC3HGwr0.js';
3
+ import { a as resolveSnapshotEnvironment, s as setupChaiConfig, r as resolveTestRunner } from './index.BmFFzXX_.js';
4
4
  import { s as startCoverageInsideWorker, a as stopCoverageInsideWorker } from './coverage.DnNIv-kJ.js';
5
- import { a as globalExpect, v as vi } from './vi.DrftpPF8.js';
5
+ import { a as globalExpect, v as vi } from './vi.DT3m61kS.js';
6
6
  import { c as closeInspector } from './inspector.DKLceBVD.js';
7
7
  import { createRequire } from 'node:module';
8
8
  import timers from 'node:timers';
@@ -11,8 +11,8 @@ 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.SduP00mx.js';
15
- import { s as setupCommonEnv } from './setup-common.IrcyRZ8C.js';
14
+ import { V as VitestIndex } from './index.B8haHJlQ.js';
15
+ import { s as setupCommonEnv } from './setup-common.wObu9a36.js';
16
16
  import { g as getWorkerState, r as resetModules } from './utils.C8RiOc4B.js';
17
17
  import 'chai';
18
18
  import 'node:path';
@@ -13,7 +13,7 @@ async function setupCommonEnv(config) {
13
13
  globalSetup = true;
14
14
  setSafeTimers();
15
15
  if (config.globals) {
16
- (await import('./globals.DrEiwfS1.js')).registerApiGlobally();
16
+ (await import('./globals.BCtI_nQG.js')).registerApiGlobally();
17
17
  }
18
18
  }
19
19
  function setupDefines(defines) {
@@ -4170,15 +4170,15 @@ function createVitest() {
4170
4170
  return isMockFunction(fn2);
4171
4171
  },
4172
4172
  clearAllMocks() {
4173
- mocks.forEach((spy) => spy.mockClear());
4173
+ [...mocks].reverse().forEach((spy) => spy.mockClear());
4174
4174
  return utils;
4175
4175
  },
4176
4176
  resetAllMocks() {
4177
- mocks.forEach((spy) => spy.mockReset());
4177
+ [...mocks].reverse().forEach((spy) => spy.mockReset());
4178
4178
  return utils;
4179
4179
  },
4180
4180
  restoreAllMocks() {
4181
- mocks.forEach((spy) => spy.mockRestore());
4181
+ [...mocks].reverse().forEach((spy) => spy.mockRestore());
4182
4182
  return utils;
4183
4183
  },
4184
4184
  stubGlobal(name, value) {
@@ -1,4 +1,4 @@
1
- import { I as InlineConfig } from './reporters.DTtkbAtP.js';
1
+ import { I as InlineConfig } from './reporters.QZ837uWx.js';
2
2
 
3
3
  type VitestInlineConfig = InlineConfig;
4
4
  declare module 'vite' {
@@ -3,7 +3,7 @@ import vm, { isContext } from 'node:vm';
3
3
  import { dirname, basename, extname, normalize, join, resolve } from 'pathe';
4
4
  import { distDir } from '../path.js';
5
5
  import { createCustomConsole } from './console.CN7AiMGV.js';
6
- import { g as getDefaultRequestStubs, s as startVitestExecutor } from './execute.DNQad00_.js';
6
+ import { g as getDefaultRequestStubs, s as startVitestExecutor } from './execute.Bhwls1-Z.js';
7
7
  import fs from 'node:fs';
8
8
  import { dirname as dirname$1 } from 'node:path';
9
9
  import { isNodeBuiltin, isPrimitive, toArray, getCachedData, setCacheData } from 'vite-node/utils';
package/dist/cli.js CHANGED
@@ -1,4 +1,4 @@
1
- import { c as createCLI } from './chunks/cac.mNJBJcT7.js';
1
+ import { c as createCLI } from './chunks/cac.87F_onld.js';
2
2
  import '@vitest/utils';
3
3
  import 'events';
4
4
  import 'pathe';
package/dist/config.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  import { UserConfig as UserConfig$1, ConfigEnv } from 'vite';
2
2
  export { ConfigEnv, Plugin, UserConfig as ViteUserConfig, mergeConfig } from 'vite';
3
- import { d as CoverageV8Options, R as ResolvedCoverageOptions, U as UserWorkspaceConfig, e as UserProjectConfigFn, f as UserProjectConfigExport, T as TestProjectConfiguration } from './chunks/reporters.DTtkbAtP.js';
4
- export { W as WorkspaceProjectConfiguration } from './chunks/reporters.DTtkbAtP.js';
5
- import './chunks/vite.BmCIRnbq.js';
3
+ import { d as CoverageV8Options, R as ResolvedCoverageOptions, U as UserWorkspaceConfig, e as UserProjectConfigFn, f as UserProjectConfigExport, T as TestProjectConfiguration } from './chunks/reporters.QZ837uWx.js';
4
+ export { W as WorkspaceProjectConfiguration } from './chunks/reporters.QZ837uWx.js';
5
+ import './chunks/vite.vM3UZq1q.js';
6
6
  import { F as FakeTimerInstallOpts } from './chunks/config.BRtC-JeT.js';
7
7
  import '@vitest/runner';
8
8
  import './chunks/environment.d8YfPkTm.js';
@@ -1,4 +1,4 @@
1
- import { R as ResolvedCoverageOptions, V as Vitest, C as CoverageMap, a as ReportContext } from './chunks/reporters.DTtkbAtP.js';
1
+ import { R as ResolvedCoverageOptions, V as Vitest, C as CoverageMap, a as ReportContext } from './chunks/reporters.QZ837uWx.js';
2
2
  import { TransformResult } from 'vite';
3
3
  import { A as AfterSuiteRunMeta } from './chunks/environment.d8YfPkTm.js';
4
4
  import '@vitest/runner';
package/dist/execute.js CHANGED
@@ -1,4 +1,4 @@
1
- export { V as VitestExecutor } from './chunks/execute.DNQad00_.js';
1
+ export { V as VitestExecutor } from './chunks/execute.Bhwls1-Z.js';
2
2
  import 'node:fs';
3
3
  import 'node:url';
4
4
  import 'node:vm';
package/dist/index.d.ts CHANGED
@@ -1,13 +1,13 @@
1
1
  import { File as File$1, TaskResultPack as TaskResultPack$1, TaskEventPack, TaskPopulated, Suite as Suite$1, Test as Test$1, Custom as Custom$1, Task as Task$1, TaskBase as TaskBase$1, TaskResult as TaskResult$1, DoneCallback as DoneCallback$1, RuntimeContext as RuntimeContext$1, SuiteHooks as SuiteHooks$1, SequenceHooks as SequenceHooks$1, SequenceSetupFiles as SequenceSetupFiles$1 } from '@vitest/runner';
2
2
  export { CancelReason, ExtendedContext, HookCleanupCallback, HookListener, OnTestFailedHandler, OnTestFinishedHandler, RunMode, Custom as RunnerCustomCase, Task as RunnerTask, TaskBase as RunnerTaskBase, TaskResult as RunnerTaskResult, TaskResultPack as RunnerTaskResultPack, Test as RunnerTestCase, File as RunnerTestFile, Suite as RunnerTestSuite, SuiteAPI, SuiteCollector, SuiteFactory, TaskContext, TaskCustomOptions, TaskMeta, TaskState, TestAPI, TestContext, TestFunction, TestOptions, afterAll, afterEach, beforeAll, beforeEach, describe, it, onTestFailed, onTestFinished, suite, test } from '@vitest/runner';
3
- import { S as SerializedTestSpecification, c as CoverageProvider$1, a as ReportContext$1, g as CoverageProviderModule$1, h as CoverageReporter$1, i as CoverageProviderName, j as CoverageOptions$1, R as ResolvedCoverageOptions$1, B as BaseCoverageOptions$1, k as CoverageIstanbulOptions$1, d as CoverageV8Options$1, l as CustomProviderOptions$1, m as Reporter$1, V as Vitest$1, n as BrowserScript$1, o as BrowserConfigOptions$1, p as BuiltinEnvironment$1, q as VitestEnvironment$1, P as Pool$1, r as PoolOptions$1, s as CSSModuleScopeStrategy$1, A as ApiConfig$1, t as VitestRunMode$1, D as DepsOptimizationOptions$1, u as TransformModePatterns$1, I as InlineConfig$1, v as TypecheckConfig$1, w as UserConfig$1, x as ResolvedConfig$1, y as ProjectConfig$1, U as UserWorkspaceConfig$1, z as BenchmarkUserOptions$1 } from './chunks/reporters.DTtkbAtP.js';
3
+ import { S as SerializedTestSpecification, c as CoverageProvider$1, a as ReportContext$1, g as CoverageProviderModule$1, h as CoverageReporter$1, i as CoverageProviderName, j as CoverageOptions$1, R as ResolvedCoverageOptions$1, B as BaseCoverageOptions$1, k as CoverageIstanbulOptions$1, d as CoverageV8Options$1, l as CustomProviderOptions$1, m as Reporter$1, V as Vitest$1, n as BrowserScript$1, o as BrowserConfigOptions$1, p as BuiltinEnvironment$1, q as VitestEnvironment$1, P as Pool$1, r as PoolOptions$1, s as CSSModuleScopeStrategy$1, A as ApiConfig$1, t as VitestRunMode$1, D as DepsOptimizationOptions$1, u as TransformModePatterns$1, I as InlineConfig$1, v as TypecheckConfig$1, w as UserConfig$1, x as ResolvedConfig$1, y as ProjectConfig$1, U as UserWorkspaceConfig$1, z as BenchmarkUserOptions$1 } from './chunks/reporters.QZ837uWx.js';
4
4
  import { W as WorkerContext$1 } from './chunks/worker.B2JXutr8.js';
5
5
  import { R as RawErrsMap$1, T as TscErrorInfo$1, C as CollectLineNumbers$1, a as CollectLines$1, b as RootAndTarget$1, c as Context$1 } from './chunks/global.CnI8_G5V.js';
6
6
  import { b as Awaitable$1, U as UserConsoleLog, M as ModuleGraphData, P as ProvidedContext, N as Nullable$1, c as Arrayable$1, d as ArgumentsType$1, e as MutableArray$1, C as Constructable$1, a as EnvironmentReturn$1, V as VmEnvironmentReturn$1, E as Environment$1, R as ResolvedTestEnvironment$1, J as JSDOMOptions$1, H as HappyDOMOptions$1, f as EnvironmentOptions$1 } from './chunks/environment.d8YfPkTm.js';
7
7
  export { A as AfterSuiteRunMeta, g as ModuleCache } from './chunks/environment.d8YfPkTm.js';
8
8
  import { a as BirpcReturn, b as WorkerRPC$1 } from './chunks/worker.DaAIyCKm.js';
9
9
  export { C as ContextRPC, d as ContextTestEnvironment, e as ResolveIdFunction, c as RunnerRPC, R as RuntimeRPC, W as WorkerGlobalState } from './chunks/worker.DaAIyCKm.js';
10
- import './chunks/vite.BmCIRnbq.js';
10
+ import './chunks/vite.vM3UZq1q.js';
11
11
  import { S as SerializedConfig, F as FakeTimerInstallOpts, R as RuntimeOptions } from './chunks/config.BRtC-JeT.js';
12
12
  export { b as RuntimeConfig, a as SerializedCoverageConfig } from './chunks/config.BRtC-JeT.js';
13
13
  import { ExpectStatic } from '@vitest/expect';
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
- export { c as createExpect, a as expect, i as inject, v as vi, b as vitest } from './chunks/vi.DrftpPF8.js';
1
+ export { c as createExpect, a as expect, i as inject, v as vi, b as vitest } from './chunks/vi.DT3m61kS.js';
2
2
  export { i as isFirstRun, a as runOnce } from './chunks/run-once.2ogXb3JV.js';
3
- export { a as assertType, g as getRunningMode, i as isWatchMode } from './chunks/index.SduP00mx.js';
3
+ export { a as assertType, g as getRunningMode, i as isWatchMode } from './chunks/index.B8haHJlQ.js';
4
4
  export { b as bench } from './chunks/benchmark.Cdu9hjj4.js';
5
5
  export { expectTypeOf } from 'expect-type';
6
6
  export { afterAll, afterEach, beforeAll, beforeEach, describe, it, onTestFailed, onTestFinished, suite, test } from '@vitest/runner';
package/dist/node.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { x as ResolvedConfig, w as UserConfig, t as VitestRunMode, E as VitestOptions, V as Vitest, A as ApiConfig, F as TestProject, G as TestSequencer, H as TestSpecification, L as Logger, J as TestModule, M as ModuleDiagnostic } from './chunks/reporters.DTtkbAtP.js';
2
- export { B as BaseCoverageOptions, z as BenchmarkUserOptions, ae as BrowserBuiltinProvider, af as BrowserCommand, ag as BrowserCommandContext, o as BrowserConfigOptions, ah as BrowserInstanceOption, ai as BrowserOrchestrator, aj as BrowserProvider, ak as BrowserProviderInitializationOptions, al as BrowserProviderModule, am as BrowserProviderOptions, n as BrowserScript, an as BrowserServerState, ao as BrowserServerStateSession, p as BuiltinEnvironment, ap as CDPSession, s as CSSModuleScopeStrategy, k as CoverageIstanbulOptions, j as CoverageOptions, c as CoverageProvider, g as CoverageProviderModule, h as CoverageReporter, d as CoverageV8Options, l as CustomProviderOptions, D as DepsOptimizationOptions, _ as HTMLOptions, I as InlineConfig, a0 as JUnitOptions, $ as JsonOptions, O as OnServerRestartHandler, K as OnTestsRerunHandler, aq as ParentProjectBrowser, P as Pool, r as PoolOptions, Q as ProcessPool, ar as ProjectBrowser, y as ProjectConfig, a as ReportContext, ax as ReportedHookContext, m as Reporter, au as ResolveSnapshotPathHandler, av as ResolveSnapshotPathHandlerContext, as as ResolvedBrowserOptions, R as ResolvedCoverageOptions, at as ResolvedProjectConfig, Z as SerializedTestProject, a1 as TaskOptions, a2 as TestCase, a3 as TestCollection, a4 as TestDiagnostic, a5 as TestModuleState, a6 as TestResult, a7 as TestResultFailed, a8 as TestResultPassed, a9 as TestResultSkipped, ay as TestRunEndReason, aw as TestRunResult, ad as TestSequencerConstructor, aa as TestState, ab as TestSuite, ac as TestSuiteState, u as TransformModePatterns, v as TypecheckConfig, U as UserWorkspaceConfig, q as VitestEnvironment, N as VitestPackageInstaller, X as WorkspaceSpec, Y as getFilePoolName } from './chunks/reporters.DTtkbAtP.js';
1
+ import { x as ResolvedConfig, w as UserConfig, t as VitestRunMode, E as VitestOptions, V as Vitest, A as ApiConfig, F as TestProject, G as TestSequencer, H as TestSpecification, L as Logger, J as TestModule, M as ModuleDiagnostic } from './chunks/reporters.QZ837uWx.js';
2
+ export { B as BaseCoverageOptions, z as BenchmarkUserOptions, ae as BrowserBuiltinProvider, af as BrowserCommand, ag as BrowserCommandContext, o as BrowserConfigOptions, ah as BrowserInstanceOption, ai as BrowserOrchestrator, aj as BrowserProvider, ak as BrowserProviderInitializationOptions, al as BrowserProviderModule, am as BrowserProviderOptions, n as BrowserScript, an as BrowserServerState, ao as BrowserServerStateSession, p as BuiltinEnvironment, ap as CDPSession, s as CSSModuleScopeStrategy, k as CoverageIstanbulOptions, j as CoverageOptions, c as CoverageProvider, g as CoverageProviderModule, h as CoverageReporter, d as CoverageV8Options, l as CustomProviderOptions, D as DepsOptimizationOptions, _ as HTMLOptions, I as InlineConfig, a0 as JUnitOptions, $ as JsonOptions, O as OnServerRestartHandler, K as OnTestsRerunHandler, aq as ParentProjectBrowser, P as Pool, r as PoolOptions, Q as ProcessPool, ar as ProjectBrowser, y as ProjectConfig, a as ReportContext, ax as ReportedHookContext, m as Reporter, au as ResolveSnapshotPathHandler, av as ResolveSnapshotPathHandlerContext, as as ResolvedBrowserOptions, R as ResolvedCoverageOptions, at as ResolvedProjectConfig, Z as SerializedTestProject, a1 as TaskOptions, a2 as TestCase, a3 as TestCollection, a4 as TestDiagnostic, a5 as TestModuleState, a6 as TestResult, a7 as TestResultFailed, a8 as TestResultPassed, a9 as TestResultSkipped, ay as TestRunEndReason, aw as TestRunResult, ad as TestSequencerConstructor, aa as TestState, ab as TestSuite, ac as TestSuiteState, u as TransformModePatterns, v as TypecheckConfig, U as UserWorkspaceConfig, q as VitestEnvironment, N as VitestPackageInstaller, X as WorkspaceSpec, Y as getFilePoolName } from './chunks/reporters.QZ837uWx.js';
3
3
  import { UserConfig as UserConfig$1, Plugin, ResolvedConfig as ResolvedConfig$1, LogLevel, LoggerOptions, Logger as Logger$1, createServer as createServer$1 } from 'vite';
4
4
  import * as vite from 'vite';
5
5
  export { vite as Vite };
@@ -14,7 +14,7 @@ export { Task as RunnerTask, TaskResult as RunnerTaskResult, TaskResultPack as R
14
14
  export { f as EnvironmentOptions, H as HappyDOMOptions, J as JSDOMOptions } from './chunks/environment.d8YfPkTm.js';
15
15
  export { SerializedError } from '@vitest/utils';
16
16
  export { b as RuntimeConfig } from './chunks/config.BRtC-JeT.js';
17
- import './chunks/vite.BmCIRnbq.js';
17
+ import './chunks/vite.vM3UZq1q.js';
18
18
  export { generateFileHash } from '@vitest/runner/utils';
19
19
  import '@vitest/utils/source-map';
20
20
  import '@vitest/pretty-format';
package/dist/node.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { resolveConfig as resolveConfig$1, mergeConfig, createServer as createServer$1 } from 'vite';
2
2
  export { esbuildVersion, isFileServingAllowed, parseAst, parseAstAsync, rollupVersion, version as viteVersion } from 'vite';
3
- import { V as Vitest, a as VitestPlugin, T as TestModule } from './chunks/cli-api.Dkt_XoKq.js';
4
- export { G as GitNotFoundError, F as TestsNotFoundError, b as VitestPackageInstaller, e as createViteLogger, c as createVitest, i as isValidApiRequest, d as registerConsoleShortcuts, r as resolveFsAllow, s as startVitest } from './chunks/cli-api.Dkt_XoKq.js';
5
- export { p as parseCLI } from './chunks/cac.mNJBJcT7.js';
3
+ import { V as Vitest, a as VitestPlugin, T as TestModule } from './chunks/cli-api.BZbq1zTX.js';
4
+ export { G as GitNotFoundError, F as TestsNotFoundError, b as VitestPackageInstaller, e as createViteLogger, c as createVitest, i as isValidApiRequest, d as registerConsoleShortcuts, r as resolveFsAllow, s as startVitest } from './chunks/cli-api.BZbq1zTX.js';
5
+ export { p as parseCLI } from './chunks/cac.87F_onld.js';
6
6
  import { a as resolveConfig$2 } from './chunks/resolveConfig.BbcK25zb.js';
7
7
  export { B as BaseSequencer, d as createMethodsRPC, g as getFilePoolName, b as resolveApiServerConfig } from './chunks/resolveConfig.BbcK25zb.js';
8
8
  import { slash } from '@vitest/utils';
@@ -35,16 +35,16 @@ import 'node:module';
35
35
  import 'fs';
36
36
  import 'node:console';
37
37
  import 'node:stream';
38
- import 'stream';
39
- import 'zlib';
40
- import 'buffer';
41
- import 'crypto';
42
38
  import 'events';
43
39
  import 'https';
44
40
  import 'http';
45
41
  import 'net';
46
42
  import 'tls';
43
+ import 'crypto';
44
+ import 'stream';
47
45
  import 'url';
46
+ import 'zlib';
47
+ import 'buffer';
48
48
  import './chunks/_commonjsHelpers.BFTU3MAI.js';
49
49
  import 'node:crypto';
50
50
  import 'path';
@@ -1,4 +1,4 @@
1
- export { aN as BaseReporter, az as BasicReporter, aO as BenchmarkBuiltinReporters, aA as BenchmarkReporter, aB as BenchmarkReportsMap, aP as BuiltinReporterOptions, aQ as BuiltinReporters, aC as DefaultReporter, aD as DotReporter, aE as GithubActionsReporter, aF as HangingProcessReporter, aH as JUnitReporter, aR as JsonAssertionResult, aG as JsonReporter, aS as JsonTestResult, aT as JsonTestResults, ax as ReportedHookContext, m as Reporter, aI as ReportersMap, aJ as TapFlatReporter, aK as TapReporter, ay as TestRunEndReason, aL as VerboseBenchmarkReporter, aM as VerboseReporter } from './chunks/reporters.DTtkbAtP.js';
1
+ export { aN as BaseReporter, az as BasicReporter, aO as BenchmarkBuiltinReporters, aA as BenchmarkReporter, aB as BenchmarkReportsMap, aP as BuiltinReporterOptions, aQ as BuiltinReporters, aC as DefaultReporter, aD as DotReporter, aE as GithubActionsReporter, aF as HangingProcessReporter, aH as JUnitReporter, aR as JsonAssertionResult, aG as JsonReporter, aS as JsonTestResult, aT as JsonTestResults, ax as ReportedHookContext, m as Reporter, aI as ReportersMap, aJ as TapFlatReporter, aK as TapReporter, ay as TestRunEndReason, aL as VerboseBenchmarkReporter, aM as VerboseReporter } from './chunks/reporters.QZ837uWx.js';
2
2
  import '@vitest/runner';
3
3
  import './chunks/environment.d8YfPkTm.js';
4
4
  import '@vitest/utils';
package/dist/runners.js CHANGED
@@ -4,7 +4,7 @@ import { a as getBenchOptions, g as getBenchFn } from './chunks/benchmark.Cdu9hj
4
4
  import { g as getWorkerState } from './chunks/utils.C8RiOc4B.js';
5
5
  import { setState, GLOBAL_EXPECT, getState } from '@vitest/expect';
6
6
  import { getTests, getNames, getTestName } from '@vitest/runner/utils';
7
- import { g as getSnapshotClient, i as inject, c as createExpect, v as vi } from './chunks/vi.DrftpPF8.js';
7
+ import { g as getSnapshotClient, i as inject, c as createExpect, v as vi } from './chunks/vi.DT3m61kS.js';
8
8
  import { r as rpc } from './chunks/rpc.TVf73xOu.js';
9
9
  import 'chai';
10
10
  import './chunks/_commonjsHelpers.BFTU3MAI.js';
@@ -1,8 +1,8 @@
1
1
  import v8 from 'node:v8';
2
- import { r as runBaseTests } from '../chunks/base.B2NLWv2w.js';
2
+ import { r as runBaseTests } from '../chunks/base.BgUWWWYp.js';
3
3
  import { c as createForksRpcOptions, u as unwrapSerializableConfig } from '../chunks/utils.Cn0zI1t3.js';
4
4
  import 'vite-node/client';
5
- import '../chunks/execute.DNQad00_.js';
5
+ import '../chunks/execute.Bhwls1-Z.js';
6
6
  import 'node:fs';
7
7
  import 'node:url';
8
8
  import 'node:vm';
@@ -6,11 +6,11 @@ import util from 'node:util';
6
6
  import { startTests, collectTests } from '@vitest/runner';
7
7
  import { KNOWN_ASSET_TYPES } from 'vite-node/constants';
8
8
  import { installSourcemapsSupport } from 'vite-node/source-map';
9
- import { s as setupChaiConfig, r as resolveTestRunner, a as resolveSnapshotEnvironment } from '../chunks/index.DC3HGwr0.js';
9
+ import { s as setupChaiConfig, r as resolveTestRunner, a as resolveSnapshotEnvironment } from '../chunks/index.BmFFzXX_.js';
10
10
  import { s as startCoverageInsideWorker, a as stopCoverageInsideWorker } from '../chunks/coverage.DnNIv-kJ.js';
11
- import { V as VitestIndex } from '../chunks/index.SduP00mx.js';
11
+ import { V as VitestIndex } from '../chunks/index.B8haHJlQ.js';
12
12
  import { c as closeInspector } from '../chunks/inspector.DKLceBVD.js';
13
- import { s as setupCommonEnv } from '../chunks/setup-common.IrcyRZ8C.js';
13
+ import { s as setupCommonEnv } from '../chunks/setup-common.wObu9a36.js';
14
14
  import { g as getWorkerState } from '../chunks/utils.C8RiOc4B.js';
15
15
  import 'chai';
16
16
  import 'node:path';
@@ -19,7 +19,7 @@ import 'node:url';
19
19
  import '../chunks/rpc.TVf73xOu.js';
20
20
  import '@vitest/utils';
21
21
  import '../chunks/index.68735LiX.js';
22
- import '../chunks/vi.DrftpPF8.js';
22
+ import '../chunks/vi.DT3m61kS.js';
23
23
  import '@vitest/expect';
24
24
  import '@vitest/runner/utils';
25
25
  import '../chunks/_commonjsHelpers.BFTU3MAI.js';
@@ -1,7 +1,7 @@
1
- import { r as runBaseTests } from '../chunks/base.B2NLWv2w.js';
1
+ import { r as runBaseTests } from '../chunks/base.BgUWWWYp.js';
2
2
  import { a as createThreadsRpcOptions } from '../chunks/utils.Cn0zI1t3.js';
3
3
  import 'vite-node/client';
4
- import '../chunks/execute.DNQad00_.js';
4
+ import '../chunks/execute.Bhwls1-Z.js';
5
5
  import 'node:fs';
6
6
  import 'node:url';
7
7
  import 'node:vm';
@@ -1,6 +1,6 @@
1
1
  import v8 from 'node:v8';
2
2
  import { c as createForksRpcOptions, u as unwrapSerializableConfig } from '../chunks/utils.Cn0zI1t3.js';
3
- import { r as runVmTests } from '../chunks/vm.ku9l48hv.js';
3
+ import { r as runVmTests } from '../chunks/vm.6kNys9FN.js';
4
4
  import '@vitest/utils';
5
5
  import 'node:url';
6
6
  import 'node:vm';
@@ -13,7 +13,7 @@ import 'node:stream';
13
13
  import 'tinyrainbow';
14
14
  import '../chunks/date.W2xKR2qe.js';
15
15
  import '../chunks/utils.C8RiOc4B.js';
16
- import '../chunks/execute.DNQad00_.js';
16
+ import '../chunks/execute.Bhwls1-Z.js';
17
17
  import 'node:fs';
18
18
  import '@vitest/utils/error';
19
19
  import 'vite-node/client';
@@ -1,5 +1,5 @@
1
1
  import { a as createThreadsRpcOptions } from '../chunks/utils.Cn0zI1t3.js';
2
- import { r as runVmTests } from '../chunks/vm.ku9l48hv.js';
2
+ import { r as runVmTests } from '../chunks/vm.6kNys9FN.js';
3
3
  import '@vitest/utils';
4
4
  import 'node:url';
5
5
  import 'node:vm';
@@ -12,7 +12,7 @@ import 'node:stream';
12
12
  import 'tinyrainbow';
13
13
  import '../chunks/date.W2xKR2qe.js';
14
14
  import '../chunks/utils.C8RiOc4B.js';
15
- import '../chunks/execute.DNQad00_.js';
15
+ import '../chunks/execute.Bhwls1-Z.js';
16
16
  import 'node:fs';
17
17
  import '@vitest/utils/error';
18
18
  import 'vite-node/client';
package/dist/workers.js CHANGED
@@ -1,8 +1,8 @@
1
1
  export { p as provideWorkerState } from './chunks/utils.C8RiOc4B.js';
2
2
  export { collect as collectVitestWorkerTests, run as runVitestWorker } from './worker.js';
3
- export { r as runBaseTests } from './chunks/base.B2NLWv2w.js';
3
+ export { r as runBaseTests } from './chunks/base.BgUWWWYp.js';
4
4
  export { c as createForksRpcOptions, a as createThreadsRpcOptions, u as unwrapSerializableConfig } from './chunks/utils.Cn0zI1t3.js';
5
- export { r as runVmTests } from './chunks/vm.ku9l48hv.js';
5
+ export { r as runVmTests } from './chunks/vm.6kNys9FN.js';
6
6
  import '@vitest/utils';
7
7
  import 'node:url';
8
8
  import '@vitest/utils/source-map';
@@ -16,7 +16,7 @@ import './chunks/inspector.DKLceBVD.js';
16
16
  import 'node:module';
17
17
  import './chunks/rpc.TVf73xOu.js';
18
18
  import './chunks/index.68735LiX.js';
19
- import './chunks/execute.DNQad00_.js';
19
+ import './chunks/execute.Bhwls1-Z.js';
20
20
  import 'node:vm';
21
21
  import '@vitest/utils/error';
22
22
  import 'vite-node/utils';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "vitest",
3
3
  "type": "module",
4
- "version": "3.0.6",
4
+ "version": "3.0.7",
5
5
  "description": "Next generation testing framework powered by Vite",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",
@@ -123,8 +123,8 @@
123
123
  "@types/node": "^18.0.0 || ^20.0.0 || >=22.0.0",
124
124
  "happy-dom": "*",
125
125
  "jsdom": "*",
126
- "@vitest/ui": "3.0.6",
127
- "@vitest/browser": "3.0.6"
126
+ "@vitest/browser": "3.0.7",
127
+ "@vitest/ui": "3.0.7"
128
128
  },
129
129
  "peerDependenciesMeta": {
130
130
  "@edge-runtime/vm": {
@@ -162,14 +162,14 @@
162
162
  "tinyrainbow": "^2.0.0",
163
163
  "vite": "^5.0.0 || ^6.0.0",
164
164
  "why-is-node-running": "^2.3.0",
165
- "@vitest/snapshot": "3.0.6",
166
- "@vitest/expect": "3.0.6",
167
- "@vitest/runner": "3.0.6",
168
- "@vitest/mocker": "3.0.6",
169
- "@vitest/spy": "3.0.6",
170
- "@vitest/utils": "3.0.6",
171
- "vite-node": "3.0.6",
172
- "@vitest/pretty-format": "^3.0.6"
165
+ "@vitest/mocker": "3.0.7",
166
+ "@vitest/pretty-format": "^3.0.7",
167
+ "@vitest/expect": "3.0.7",
168
+ "@vitest/runner": "3.0.7",
169
+ "@vitest/snapshot": "3.0.7",
170
+ "@vitest/spy": "3.0.7",
171
+ "vite-node": "3.0.7",
172
+ "@vitest/utils": "3.0.7"
173
173
  },
174
174
  "devDependencies": {
175
175
  "@ampproject/remapping": "^2.3.0",
@@ -182,7 +182,7 @@
182
182
  "@types/istanbul-reports": "^3.0.4",
183
183
  "@types/jsdom": "^21.1.7",
184
184
  "@types/micromatch": "^4.0.9",
185
- "@types/node": "^22.13.4",
185
+ "@types/node": "^22.13.5",
186
186
  "@types/prompts": "^2.4.9",
187
187
  "@types/sinonjs__fake-timers": "^8.1.5",
188
188
  "acorn-walk": "^8.3.4",
@@ -190,17 +190,17 @@
190
190
  "cac": "^6.7.14",
191
191
  "chai-subset": "^1.6.0",
192
192
  "find-up": "^6.3.0",
193
- "flatted": "^3.3.2",
193
+ "flatted": "^3.3.3",
194
194
  "get-tsconfig": "^4.10.0",
195
- "happy-dom": "^17.1.0",
195
+ "happy-dom": "^17.1.4",
196
196
  "jsdom": "^26.0.0",
197
197
  "local-pkg": "^1.0.0",
198
198
  "micromatch": "^4.0.8",
199
199
  "pretty-format": "^29.7.0",
200
200
  "prompts": "^2.4.2",
201
201
  "strip-literal": "^2.1.1",
202
- "tinyglobby": "^0.2.10",
203
- "ws": "^8.18.0"
202
+ "tinyglobby": "^0.2.12",
203
+ "ws": "^8.18.1"
204
204
  },
205
205
  "scripts": {
206
206
  "build": "rimraf dist && rollup -c",