@vitest/runner 3.0.4 → 3.0.6

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.
@@ -49,8 +49,8 @@ function interpretTaskModes(file, namePattern, testLocations, onlyMode, parentIs
49
49
  }
50
50
  }
51
51
  let hasLocationMatch = parentMatchedWithLocation;
52
- if (testLocations !== undefined && testLocations.length !== 0) {
53
- if (t.location && (testLocations == null ? undefined : testLocations.includes(t.location.line))) {
52
+ if (testLocations !== void 0 && testLocations.length !== 0) {
53
+ if (t.location && (testLocations == null ? void 0 : testLocations.includes(t.location.line))) {
54
54
  t.mode = "run";
55
55
  matchedLocations.push(t.location.line);
56
56
  hasLocationMatch = true;
@@ -81,16 +81,16 @@ function interpretTaskModes(file, namePattern, testLocations, onlyMode, parentIs
81
81
  }
82
82
  };
83
83
  traverseSuite(file, parentIsOnly, false);
84
- const nonMatching = testLocations == null ? undefined : testLocations.filter((loc) => !matchedLocations.includes(loc));
84
+ const nonMatching = testLocations == null ? void 0 : testLocations.filter((loc) => !matchedLocations.includes(loc));
85
85
  if (nonMatching && nonMatching.length !== 0) {
86
86
  const message = nonMatching.length === 1 ? `line ${nonMatching[0]}` : `lines ${nonMatching.join(", ")}`;
87
- if (file.result === undefined) {
87
+ if (file.result === void 0) {
88
88
  file.result = {
89
89
  state: "fail",
90
90
  errors: []
91
91
  };
92
92
  }
93
- if (file.result.errors === undefined) {
93
+ if (file.result.errors === void 0) {
94
94
  file.result.errors = [];
95
95
  }
96
96
  file.result.errors.push(
@@ -171,7 +171,7 @@ function createFileTask(filepath, root, projectName, pool) {
171
171
  tasks: [],
172
172
  meta: /* @__PURE__ */ Object.create(null),
173
173
  projectName,
174
- file: undefined,
174
+ file: void 0,
175
175
  pool
176
176
  };
177
177
  file.file = file;
@@ -271,16 +271,16 @@ function hasFailed(suite) {
271
271
  return toArray(suite).some(
272
272
  (s) => {
273
273
  var _a;
274
- return ((_a = s.result) == null ? undefined : _a.state) === "fail" || s.type === "suite" && hasFailed(s.tasks);
274
+ return ((_a = s.result) == null ? void 0 : _a.state) === "fail" || s.type === "suite" && hasFailed(s.tasks);
275
275
  }
276
276
  );
277
277
  }
278
278
  function getNames(task) {
279
279
  const names = [task.name];
280
280
  let current = task;
281
- while (current == null ? undefined : current.suite) {
281
+ while (current == null ? void 0 : current.suite) {
282
282
  current = current.suite;
283
- if (current == null ? undefined : current.name) {
283
+ if (current == null ? void 0 : current.name) {
284
284
  names.unshift(current.name);
285
285
  }
286
286
  }
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- import { B as BeforeAllListener, A as AfterAllListener, b as BeforeEachListener, d as AfterEachListener, e as TaskHook, O as OnTestFailedHandler, f as OnTestFinishedHandler, a as Test, g as Custom, S as Suite, h as SuiteHooks, i as TaskUpdateEvent, T as Task, F as File, j as SuiteAPI, k as TestAPI, l as SuiteCollector } from './tasks-CUXfn9LM.js';
2
- export { D as DoneCallback, E as ExtendedContext, m as Fixture, n as FixtureFn, o as FixtureOptions, p as Fixtures, H as HookCleanupCallback, q as HookListener, I as InferFixturesTypes, R as RunMode, r as RuntimeContext, s as SequenceHooks, t as SequenceSetupFiles, u as SuiteFactory, v as TaskBase, w as TaskContext, x as TaskCustomOptions, y as TaskEventPack, z as TaskMeta, G as TaskPopulated, J as TaskResult, K as TaskResultPack, L as TaskState, M as TestContext, N as TestFunction, P as TestOptions, U as Use } from './tasks-CUXfn9LM.js';
1
+ import { A as AfterAllListener, b as AfterEachListener, B as BeforeAllListener, d as BeforeEachListener, e as TaskHook, O as OnTestFailedHandler, f as OnTestFinishedHandler, a as Test, g as Custom, S as Suite, h as SuiteHooks, F as File, i as TaskUpdateEvent, T as Task, j as TestAPI, k as SuiteAPI, l as SuiteCollector } from './tasks-CAp19cBR.js';
2
+ export { D as DoneCallback, E as ExtendedContext, m as Fixture, n as FixtureFn, o as FixtureOptions, p as Fixtures, H as HookCleanupCallback, q as HookListener, I as InferFixturesTypes, R as RunMode, r as RuntimeContext, s as SequenceHooks, t as SequenceSetupFiles, u as SuiteFactory, v as TaskBase, w as TaskContext, x as TaskCustomOptions, y as TaskEventPack, z as TaskMeta, G as TaskPopulated, J as TaskResult, K as TaskResultPack, L as TaskState, M as TestContext, N as TestFunction, P as TestOptions, U as Use } from './tasks-CAp19cBR.js';
3
3
  import { Awaitable } from '@vitest/utils';
4
- import { VitestRunner, FileSpecification } from './types.js';
4
+ import { FileSpecification, VitestRunner } from './types.js';
5
5
  export { CancelReason, VitestRunnerConfig, VitestRunnerConstructor, VitestRunnerImportSource } from './types.js';
6
6
  export { processError } from '@vitest/utils/error';
7
7
  import '@vitest/utils/diff';
package/dist/index.js CHANGED
@@ -23,7 +23,7 @@ const collectorContext = {
23
23
  };
24
24
  function collectTask(task) {
25
25
  var _a;
26
- (_a = collectorContext.currentSuite) == null ? undefined : _a.tasks.push(task);
26
+ (_a = collectorContext.currentSuite) == null ? void 0 : _a.tasks.push(task);
27
27
  }
28
28
  async function runWithSuite(suite, fn) {
29
29
  const prev = collectorContext.currentSuite;
@@ -44,7 +44,7 @@ function withTimeout(fn, timeout, isHook = false) {
44
44
  clearTimeout(timer);
45
45
  reject(new Error(makeTimeoutMsg(isHook, timeout)));
46
46
  }, timeout);
47
- (_a = timer.unref) == null ? undefined : _a.call(timer);
47
+ (_a = timer.unref) == null ? void 0 : _a.call(timer);
48
48
  function resolve(result) {
49
49
  clearTimeout(timer);
50
50
  if (now$2() - startTime >= timeout) {
@@ -93,7 +93,7 @@ function createTestContext(test, runner) {
93
93
  withTimeout(handler, timeout ?? runner.config.hookTimeout, true)
94
94
  );
95
95
  };
96
- return ((_a = runner.extendTaskContext) == null ? undefined : _a.call(runner, context)) || context;
96
+ return ((_a = runner.extendTaskContext) == null ? void 0 : _a.call(runner, context)) || context;
97
97
  }
98
98
  function makeTimeoutMsg(isHook, timeout) {
99
99
  return `${isHook ? "Hook" : "Test"} timed out in ${timeout}ms.
@@ -170,7 +170,7 @@ function withFixtures(fn, testContext) {
170
170
  return fn({});
171
171
  }
172
172
  const fixtures = getFixture(context);
173
- if (!(fixtures == null ? undefined : fixtures.length)) {
173
+ if (!(fixtures == null ? void 0 : fixtures.length)) {
174
174
  return fn(context);
175
175
  }
176
176
  const usedProps = getUsedProps(fn);
@@ -420,19 +420,18 @@ function parseArguments(optionsOrFn, optionsOrTest) {
420
420
  function createSuiteCollector(name, factory = () => {
421
421
  }, mode, each, suiteOptions) {
422
422
  const tasks = [];
423
- const factoryQueue = [];
424
423
  let suite2;
425
424
  initSuite(true);
426
425
  const task = function(name2 = "", options = {}) {
427
426
  const task2 = {
428
427
  id: "",
429
428
  name: name2,
430
- suite: undefined,
429
+ suite: void 0,
431
430
  each: options.each,
432
431
  fails: options.fails,
433
- context: undefined,
432
+ context: void 0,
434
433
  type: "test",
435
- file: undefined,
434
+ file: void 0,
436
435
  retry: options.retry ?? runner.config.retry,
437
436
  repeats: options.repeats,
438
437
  mode: options.only ? "only" : options.skip ? "skip" : options.todo ? "todo" : "run",
@@ -442,7 +441,7 @@ function createSuiteCollector(name, factory = () => {
442
441
  if (options.concurrent || !options.sequential && runner.config.sequence.concurrent) {
443
442
  task2.concurrent = true;
444
443
  }
445
- task2.shuffle = suiteOptions == null ? undefined : suiteOptions.shuffle;
444
+ task2.shuffle = suiteOptions == null ? void 0 : suiteOptions.shuffle;
446
445
  const context = createTestContext(task2, runner);
447
446
  Object.defineProperty(task2, "context", {
448
447
  value: context,
@@ -454,7 +453,7 @@ function createSuiteCollector(name, factory = () => {
454
453
  task2,
455
454
  withTimeout(
456
455
  withAwaitAsyncAssertions(withFixtures(handler, context), task2),
457
- (options == null ? undefined : options.timeout) ?? runner.config.testTimeout
456
+ (options == null ? void 0 : options.timeout) ?? runner.config.testTimeout
458
457
  )
459
458
  );
460
459
  }
@@ -476,8 +475,8 @@ function createSuiteCollector(name, factory = () => {
476
475
  if (typeof suiteOptions === "object") {
477
476
  options = Object.assign({}, suiteOptions, options);
478
477
  }
479
- options.concurrent = this.concurrent || !this.sequential && (options == null ? undefined : options.concurrent);
480
- options.sequential = this.sequential || !this.concurrent && (options == null ? undefined : options.sequential);
478
+ options.concurrent = this.concurrent || !this.sequential && (options == null ? void 0 : options.concurrent);
479
+ options.sequential = this.sequential || !this.concurrent && (options == null ? void 0 : options.sequential);
481
480
  const test3 = task(formatName(name2), {
482
481
  ...this,
483
482
  ...options,
@@ -510,11 +509,11 @@ function createSuiteCollector(name, factory = () => {
510
509
  name,
511
510
  mode,
512
511
  each,
513
- file: undefined,
514
- shuffle: suiteOptions == null ? undefined : suiteOptions.shuffle,
512
+ file: void 0,
513
+ shuffle: suiteOptions == null ? void 0 : suiteOptions.shuffle,
515
514
  tasks: [],
516
515
  meta: /* @__PURE__ */ Object.create(null),
517
- concurrent: suiteOptions == null ? undefined : suiteOptions.concurrent
516
+ concurrent: suiteOptions == null ? void 0 : suiteOptions.concurrent
518
517
  };
519
518
  if (runner && includeLocation && runner.config.includeTaskLocation) {
520
519
  const limit = Error.stackTraceLimit;
@@ -530,19 +529,17 @@ function createSuiteCollector(name, factory = () => {
530
529
  }
531
530
  function clear() {
532
531
  tasks.length = 0;
533
- factoryQueue.length = 0;
534
532
  initSuite(false);
535
533
  }
536
534
  async function collect(file) {
537
535
  if (!file) {
538
536
  throw new TypeError("File is required to collect tasks.");
539
537
  }
540
- factoryQueue.length = 0;
541
538
  if (factory) {
542
539
  await runWithSuite(collector, () => factory(test2));
543
540
  }
544
541
  const allChildren = [];
545
- for (const i of [...factoryQueue, ...tasks]) {
542
+ for (const i of tasks) {
546
543
  allChildren.push(i.type === "collector" ? await i.collect(file) : i);
547
544
  }
548
545
  suite2.file = file;
@@ -561,7 +558,7 @@ function withAwaitAsyncAssertions(fn, task) {
561
558
  const fnResult = await fn(...args);
562
559
  if (task.promises) {
563
560
  const result = await Promise.allSettled(task.promises);
564
- const errors = result.map((r) => r.status === "rejected" ? r.reason : undefined).filter(Boolean);
561
+ const errors = result.map((r) => r.status === "rejected" ? r.reason : void 0).filter(Boolean);
565
562
  if (errors.length) {
566
563
  throw errors;
567
564
  }
@@ -581,9 +578,9 @@ function createSuite() {
581
578
  const isConcurrentSpecified = options.concurrent || this.concurrent || options.sequential === false;
582
579
  const isSequentialSpecified = options.sequential || this.sequential || options.concurrent === false;
583
580
  options = {
584
- ...currentSuite == null ? undefined : currentSuite.options,
581
+ ...currentSuite == null ? void 0 : currentSuite.options,
585
582
  ...options,
586
- shuffle: this.shuffle ?? options.shuffle ?? ((_a = currentSuite == null ? undefined : currentSuite.options) == null ? undefined : _a.shuffle) ?? (runner == null ? undefined : runner.config.sequence.shuffle)
583
+ shuffle: this.shuffle ?? options.shuffle ?? ((_a = currentSuite == null ? void 0 : currentSuite.options) == null ? void 0 : _a.shuffle) ?? (runner == null ? void 0 : runner.config.sequence.shuffle)
587
584
  };
588
585
  const isConcurrent = isConcurrentSpecified || options.concurrent && !isSequentialSpecified;
589
586
  const isSequential = isSequentialSpecified || options.sequential && !isConcurrentSpecified;
@@ -628,7 +625,7 @@ function createSuite() {
628
625
  }
629
626
  }
630
627
  });
631
- this.setContext("each", undefined);
628
+ this.setContext("each", void 0);
632
629
  };
633
630
  };
634
631
  suiteFn.for = function(cases, ...args) {
@@ -683,7 +680,7 @@ function createTaskCollector(fn, context) {
683
680
  }
684
681
  }
685
682
  });
686
- this.setContext("each", undefined);
683
+ this.setContext("each", void 0);
687
684
  };
688
685
  };
689
686
  taskFn.for = function(cases, ...args) {
@@ -714,7 +711,7 @@ function createTaskCollector(fn, context) {
714
711
  context || {},
715
712
  (key) => {
716
713
  var _a, _b;
717
- return (_b = (_a = getRunner()).injectValue) == null ? undefined : _b.call(_a, key);
714
+ return (_b = (_a = getRunner()).injectValue) == null ? void 0 : _b.call(_a, key);
718
715
  }
719
716
  );
720
717
  return createTest(function fn2(name, optionsOrFn, optionsOrTest) {
@@ -766,7 +763,7 @@ function formatTitle(template, items, idx) {
766
763
  (_, key) => {
767
764
  var _a, _b;
768
765
  return objDisplay(objectAttr(items[0], key), {
769
- truncate: (_b = (_a = runner == null ? undefined : runner.config) == null ? undefined : _a.chaiConfig) == null ? undefined : _b.truncateThreshold
766
+ truncate: (_b = (_a = runner == null ? void 0 : runner.config) == null ? void 0 : _a.chaiConfig) == null ? void 0 : _b.truncateThreshold
770
767
  });
771
768
  }
772
769
  );
@@ -885,10 +882,10 @@ async function collectTests(specs, runner) {
885
882
  const config = runner.config;
886
883
  for (const spec of specs) {
887
884
  const filepath = typeof spec === "string" ? spec : spec.filepath;
888
- const testLocations = typeof spec === "string" ? undefined : spec.testLocations;
885
+ const testLocations = typeof spec === "string" ? void 0 : spec.testLocations;
889
886
  const file = createFileTask(filepath, config.root, config.name, runner.pool);
890
887
  file.shuffle = config.sequence.shuffle;
891
- (_a = runner.onCollectStart) == null ? undefined : _a.call(runner, file);
888
+ (_a = runner.onCollectStart) == null ? void 0 : _a.call(runner, file);
892
889
  clearCollectorContext(filepath, runner);
893
890
  try {
894
891
  const setupFiles = toArray(config.setupFiles);
@@ -930,7 +927,7 @@ async function collectTests(specs, runner) {
930
927
  calculateSuiteHash(file);
931
928
  file.tasks.forEach((task) => {
932
929
  var _a2;
933
- if (((_a2 = task.suite) == null ? undefined : _a2.id) === "") {
930
+ if (((_a2 = task.suite) == null ? void 0 : _a2.id) === "") {
934
931
  delete task.suite;
935
932
  }
936
933
  });
@@ -1075,7 +1072,7 @@ async function sendTasksUpdate(runner) {
1075
1072
  const taskPacks = Array.from(packs).map(([id, task]) => {
1076
1073
  return [id, task[0], task[1]];
1077
1074
  });
1078
- const p = (_a = runner.onTaskUpdate) == null ? undefined : _a.call(runner, taskPacks, eventsPacks);
1075
+ const p = (_a = runner.onTaskUpdate) == null ? void 0 : _a.call(runner, taskPacks, eventsPacks);
1079
1076
  eventsPacks.length = 0;
1080
1077
  packs.clear();
1081
1078
  return p;
@@ -1093,11 +1090,11 @@ async function callCleanupHooks(cleanups) {
1093
1090
  }
1094
1091
  async function runTest(test, runner) {
1095
1092
  var _a, _b, _c, _d, _e, _f, _g, _h, _i;
1096
- await ((_a = runner.onBeforeRunTask) == null ? undefined : _a.call(runner, test));
1093
+ await ((_a = runner.onBeforeRunTask) == null ? void 0 : _a.call(runner, test));
1097
1094
  if (test.mode !== "run" && test.mode !== "queued") {
1098
1095
  return;
1099
1096
  }
1100
- if (((_b = test.result) == null ? undefined : _b.state) === "fail") {
1097
+ if (((_b = test.result) == null ? void 0 : _b.state) === "fail") {
1101
1098
  updateTask("test-failed-early", test, runner);
1102
1099
  return;
1103
1100
  }
@@ -1153,11 +1150,11 @@ async function runTest(test, runner) {
1153
1150
  } catch (e) {
1154
1151
  failTask(test.result, e, runner.config.diffOptions);
1155
1152
  }
1156
- if (((_e = test.result) == null ? undefined : _e.pending) || ((_f = test.result) == null ? undefined : _f.state) === "skip") {
1153
+ if (((_e = test.result) == null ? void 0 : _e.pending) || ((_f = test.result) == null ? void 0 : _f.state) === "skip") {
1157
1154
  test.mode = "skip";
1158
- test.result = { state: "skip", note: (_g = test.result) == null ? undefined : _g.note, pending: true };
1155
+ test.result = { state: "skip", note: (_g = test.result) == null ? void 0 : _g.note, pending: true };
1159
1156
  updateTask("test-finished", test, runner);
1160
- setCurrentTest(undefined);
1157
+ setCurrentTest(void 0);
1161
1158
  return;
1162
1159
  }
1163
1160
  try {
@@ -1184,8 +1181,8 @@ async function runTest(test, runner) {
1184
1181
  runner.config.sequence.hooks
1185
1182
  );
1186
1183
  }
1187
- test.onFailed = undefined;
1188
- test.onFinished = undefined;
1184
+ test.onFailed = void 0;
1185
+ test.onFinished = void 0;
1189
1186
  if (test.result.state === "pass") {
1190
1187
  break;
1191
1188
  }
@@ -1203,12 +1200,12 @@ async function runTest(test, runner) {
1203
1200
  test.result.errors = [error];
1204
1201
  } else {
1205
1202
  test.result.state = "pass";
1206
- test.result.errors = undefined;
1203
+ test.result.errors = void 0;
1207
1204
  }
1208
1205
  }
1209
- setCurrentTest(undefined);
1206
+ setCurrentTest(void 0);
1210
1207
  test.result.duration = now() - start;
1211
- await ((_i = runner.onAfterRunTask) == null ? undefined : _i.call(runner, test));
1208
+ await ((_i = runner.onAfterRunTask) == null ? void 0 : _i.call(runner, test));
1212
1209
  updateTask("test-finished", test, runner);
1213
1210
  }
1214
1211
  function failTask(result, err, diffOptions) {
@@ -1238,8 +1235,8 @@ function markTasksAsSkipped(suite, runner) {
1238
1235
  }
1239
1236
  async function runSuite(suite, runner) {
1240
1237
  var _a, _b, _c, _d;
1241
- await ((_a = runner.onBeforeRunSuite) == null ? undefined : _a.call(runner, suite));
1242
- if (((_b = suite.result) == null ? undefined : _b.state) === "fail") {
1238
+ await ((_a = runner.onBeforeRunSuite) == null ? void 0 : _a.call(runner, suite));
1239
+ if (((_b = suite.result) == null ? void 0 : _b.state) === "fail") {
1243
1240
  markTasksAsSkipped(suite, runner);
1244
1241
  updateTask("suite-failed-early", suite, runner);
1245
1242
  return;
@@ -1308,7 +1305,7 @@ async function runSuite(suite, runner) {
1308
1305
  if (suite.mode === "run" || suite.mode === "queued") {
1309
1306
  if (!runner.config.passWithNoTests && !hasTests(suite)) {
1310
1307
  suite.result.state = "fail";
1311
- if (!((_c = suite.result.errors) == null ? undefined : _c.length)) {
1308
+ if (!((_c = suite.result.errors) == null ? void 0 : _c.length)) {
1312
1309
  const error = processError(
1313
1310
  new Error(`No test found in suite ${suite.name}`)
1314
1311
  );
@@ -1322,7 +1319,7 @@ async function runSuite(suite, runner) {
1322
1319
  }
1323
1320
  suite.result.duration = now() - start;
1324
1321
  updateTask("suite-finished", suite, runner);
1325
- await ((_d = runner.onAfterRunSuite) == null ? undefined : _d.call(runner, suite));
1322
+ await ((_d = runner.onAfterRunSuite) == null ? void 0 : _d.call(runner, suite));
1326
1323
  }
1327
1324
  }
1328
1325
  let limitMaxConcurrency;
@@ -1338,7 +1335,7 @@ async function runFiles(files, runner) {
1338
1335
  limitMaxConcurrency ?? (limitMaxConcurrency = limitConcurrency(runner.config.maxConcurrency));
1339
1336
  for (const file of files) {
1340
1337
  if (!file.tasks.length && !runner.config.passWithNoTests) {
1341
- if (!((_b = (_a = file.result) == null ? undefined : _a.errors) == null ? undefined : _b.length)) {
1338
+ if (!((_b = (_a = file.result) == null ? void 0 : _a.errors) == null ? void 0 : _b.length)) {
1342
1339
  const error = processError(
1343
1340
  new Error(`No test suite found in file ${file.filepath}`)
1344
1341
  );
@@ -1354,21 +1351,21 @@ async function runFiles(files, runner) {
1354
1351
  async function startTests(specs, runner) {
1355
1352
  var _a, _b, _c, _d;
1356
1353
  const paths = specs.map((f) => typeof f === "string" ? f : f.filepath);
1357
- await ((_a = runner.onBeforeCollect) == null ? undefined : _a.call(runner, paths));
1354
+ await ((_a = runner.onBeforeCollect) == null ? void 0 : _a.call(runner, paths));
1358
1355
  const files = await collectTests(specs, runner);
1359
- await ((_b = runner.onCollected) == null ? undefined : _b.call(runner, files));
1360
- await ((_c = runner.onBeforeRunFiles) == null ? undefined : _c.call(runner, files));
1356
+ await ((_b = runner.onCollected) == null ? void 0 : _b.call(runner, files));
1357
+ await ((_c = runner.onBeforeRunFiles) == null ? void 0 : _c.call(runner, files));
1361
1358
  await runFiles(files, runner);
1362
- await ((_d = runner.onAfterRunFiles) == null ? undefined : _d.call(runner, files));
1359
+ await ((_d = runner.onAfterRunFiles) == null ? void 0 : _d.call(runner, files));
1363
1360
  await sendTasksUpdate(runner);
1364
1361
  return files;
1365
1362
  }
1366
1363
  async function publicCollect(specs, runner) {
1367
1364
  var _a, _b;
1368
1365
  const paths = specs.map((f) => typeof f === "string" ? f : f.filepath);
1369
- await ((_a = runner.onBeforeCollect) == null ? undefined : _a.call(runner, paths));
1366
+ await ((_a = runner.onBeforeCollect) == null ? void 0 : _a.call(runner, paths));
1370
1367
  const files = await collectTests(specs, runner);
1371
- await ((_b = runner.onCollected) == null ? undefined : _b.call(runner, files));
1368
+ await ((_b = runner.onCollected) == null ? void 0 : _b.call(runner, files));
1372
1369
  return files;
1373
1370
  }
1374
1371
 
@@ -481,4 +481,4 @@ interface TaskHook<HookListener> {
481
481
  type SequenceHooks = 'stack' | 'list' | 'parallel';
482
482
  type SequenceSetupFiles = 'list' | 'parallel';
483
483
 
484
- export { type AfterAllListener as A, type BeforeAllListener as B, type ChainableFunction as C, type DoneCallback as D, type ExtendedContext as E, type File as F, type TaskPopulated as G, type HookCleanupCallback as H, type InferFixturesTypes as I, type TaskResult as J, type TaskResultPack as K, type TaskState as L, type TestContext as M, type TestFunction as N, type OnTestFailedHandler as O, type TestOptions as P, type RunMode as R, type Suite as S, type Task as T, type Use as U, type Test as a, type BeforeEachListener as b, createChainable as c, type AfterEachListener as d, type TaskHook as e, type OnTestFinishedHandler as f, type Custom as g, type SuiteHooks as h, type TaskUpdateEvent as i, type SuiteAPI as j, type TestAPI as k, type SuiteCollector as l, type Fixture as m, type FixtureFn as n, type FixtureOptions as o, type Fixtures as p, type HookListener as q, type RuntimeContext as r, type SequenceHooks as s, type SequenceSetupFiles as t, type SuiteFactory as u, type TaskBase as v, type TaskContext as w, type TaskCustomOptions as x, type TaskEventPack as y, type TaskMeta as z };
484
+ export { type AfterAllListener as A, type BeforeAllListener as B, type ChainableFunction as C, type DoneCallback as D, type ExtendedContext as E, type File as F, type TaskPopulated as G, type HookCleanupCallback as H, type InferFixturesTypes as I, type TaskResult as J, type TaskResultPack as K, type TaskState as L, type TestContext as M, type TestFunction as N, type OnTestFailedHandler as O, type TestOptions as P, type RunMode as R, type Suite as S, type Task as T, type Use as U, type Test as a, type AfterEachListener as b, createChainable as c, type BeforeEachListener as d, type TaskHook as e, type OnTestFinishedHandler as f, type Custom as g, type SuiteHooks as h, type TaskUpdateEvent as i, type TestAPI as j, type SuiteAPI as k, type SuiteCollector as l, type Fixture as m, type FixtureFn as n, type FixtureOptions as o, type Fixtures as p, type HookListener as q, type RuntimeContext as r, type SequenceHooks as s, type SequenceSetupFiles as t, type SuiteFactory as u, type TaskBase as v, type TaskContext as w, type TaskCustomOptions as x, type TaskEventPack as y, type TaskMeta as z };
package/dist/types.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { DiffOptions } from '@vitest/utils/diff';
2
- import { s as SequenceHooks, t as SequenceSetupFiles, F as File, T as Task, a as Test, S as Suite, K as TaskResultPack, y as TaskEventPack, M as TestContext } from './tasks-CUXfn9LM.js';
3
- export { A as AfterAllListener, d as AfterEachListener, B as BeforeAllListener, b as BeforeEachListener, g as Custom, k as CustomAPI, D as DoneCallback, E as ExtendedContext, m as Fixture, n as FixtureFn, o as FixtureOptions, p as Fixtures, H as HookCleanupCallback, q as HookListener, I as InferFixturesTypes, O as OnTestFailedHandler, f as OnTestFinishedHandler, R as RunMode, r as RuntimeContext, j as SuiteAPI, l as SuiteCollector, u as SuiteFactory, h as SuiteHooks, v as TaskBase, w as TaskContext, x as TaskCustomOptions, e as TaskHook, z as TaskMeta, G as TaskPopulated, J as TaskResult, L as TaskState, i as TaskUpdateEvent, k as TestAPI, N as TestFunction, P as TestOptions, U as Use } from './tasks-CUXfn9LM.js';
2
+ import { F as File, T as Task, a as Test, S as Suite, K as TaskResultPack, y as TaskEventPack, M as TestContext, s as SequenceHooks, t as SequenceSetupFiles } from './tasks-CAp19cBR.js';
3
+ export { A as AfterAllListener, b as AfterEachListener, B as BeforeAllListener, d as BeforeEachListener, g as Custom, j as CustomAPI, D as DoneCallback, E as ExtendedContext, m as Fixture, n as FixtureFn, o as FixtureOptions, p as Fixtures, H as HookCleanupCallback, q as HookListener, I as InferFixturesTypes, O as OnTestFailedHandler, f as OnTestFinishedHandler, R as RunMode, r as RuntimeContext, k as SuiteAPI, l as SuiteCollector, u as SuiteFactory, h as SuiteHooks, v as TaskBase, w as TaskContext, x as TaskCustomOptions, e as TaskHook, z as TaskMeta, G as TaskPopulated, J as TaskResult, L as TaskState, i as TaskUpdateEvent, j as TestAPI, N as TestFunction, P as TestOptions, U as Use } from './tasks-CAp19cBR.js';
4
4
  import '@vitest/utils';
5
5
 
6
6
  /**
package/dist/utils.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { S as Suite, F as File, T as Task, a as Test } from './tasks-CUXfn9LM.js';
2
- export { C as ChainableFunction, c as createChainable } from './tasks-CUXfn9LM.js';
1
+ import { S as Suite, F as File, T as Task, a as Test } from './tasks-CAp19cBR.js';
2
+ export { C as ChainableFunction, c as createChainable } from './tasks-CAp19cBR.js';
3
3
  import { Arrayable } from '@vitest/utils';
4
4
 
5
5
  /**
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vitest/runner",
3
3
  "type": "module",
4
- "version": "3.0.4",
4
+ "version": "3.0.6",
5
5
  "description": "Vitest test runner",
6
6
  "license": "MIT",
7
7
  "funding": "https://opencollective.com/vitest",
@@ -38,8 +38,8 @@
38
38
  "dist"
39
39
  ],
40
40
  "dependencies": {
41
- "pathe": "^2.0.2",
42
- "@vitest/utils": "3.0.4"
41
+ "pathe": "^2.0.3",
42
+ "@vitest/utils": "3.0.6"
43
43
  },
44
44
  "scripts": {
45
45
  "build": "rimraf dist && rollup -c",