vitest 0.12.3 → 0.12.4

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.
@@ -1,5 +1,5 @@
1
1
  import { g as globalApis } from './chunk-constants.0567483c.js';
2
- import { i as index } from './vendor-entry.3adaf0b2.js';
2
+ import { i as index } from './vendor-entry.d50b0f20.js';
3
3
  import 'url';
4
4
  import './chunk-utils-global.a5a8641f.js';
5
5
  import 'tty';
@@ -8,7 +8,7 @@ import 'path';
8
8
  import 'fs';
9
9
  import 'console';
10
10
  import 'stream';
11
- import './chunk-runtime-chain.221b8dcb.js';
11
+ import './chunk-runtime-chain.f8567c17.js';
12
12
  import 'chai';
13
13
  import './vendor-_commonjsHelpers.addc3445.js';
14
14
  import './chunk-runtime-rpc.63398738.js';
@@ -624,8 +624,11 @@ function prepareSnapString(snap, source, index) {
624
624
  const lines = snap.trim().replace(/\\/g, "\\\\").replace(/\$/g, "\\$").split(/\n/g);
625
625
  const isOneline = lines.length <= 1;
626
626
  const quote = isOneline ? "'" : "`";
627
- return isOneline ? `'${lines.join("\n").replace(/'/g, "\\'")}'` : `${quote}
628
- ${lines.map((i) => indentNext + i).join("\n").replace(/`/g, "\\`")}
627
+ if (isOneline)
628
+ return `'${lines.join("\n").replace(/'/g, "\\'")}'`;
629
+ else
630
+ return `${quote}
631
+ ${lines.map((i) => i ? indentNext + i : "").join("\n").replace(/`/g, "\\`")}
629
632
  ${indent}${quote}`;
630
633
  }
631
634
  const startRegex = /(?:toMatchInlineSnapshot|toThrowErrorMatchingInlineSnapshot)\s*\(\s*[\w_$]*(['"`\)])/m;
@@ -23,7 +23,7 @@ import { e as stripAnsi, h as stringWidth, i as ansiStyles, j as sliceAnsi, k as
23
23
  import MagicString from './chunk-magic-string.d5e0e473.js';
24
24
  import { p as prompts } from './vendor-index.405e58ef.js';
25
25
 
26
- var version = "0.12.3";
26
+ var version = "0.12.4";
27
27
 
28
28
  function stripFinalNewline(input) {
29
29
  const LF = typeof input === 'string' ? '\n' : '\n'.charCodeAt();
@@ -8012,8 +8012,8 @@ function patchWindowsImportPath(path) {
8012
8012
  }
8013
8013
 
8014
8014
  var __defProp$5 = Object.defineProperty;
8015
- var __defProps$4 = Object.defineProperties;
8016
- var __getOwnPropDescs$4 = Object.getOwnPropertyDescriptors;
8015
+ var __defProps$5 = Object.defineProperties;
8016
+ var __getOwnPropDescs$5 = Object.getOwnPropertyDescriptors;
8017
8017
  var __getOwnPropSymbols$5 = Object.getOwnPropertySymbols;
8018
8018
  var __hasOwnProp$5 = Object.prototype.hasOwnProperty;
8019
8019
  var __propIsEnum$5 = Object.prototype.propertyIsEnumerable;
@@ -8029,7 +8029,7 @@ var __spreadValues$5 = (a, b) => {
8029
8029
  }
8030
8030
  return a;
8031
8031
  };
8032
- var __spreadProps$4 = (a, b) => __defProps$4(a, __getOwnPropDescs$4(b));
8032
+ var __spreadProps$5 = (a, b) => __defProps$5(a, __getOwnPropDescs$5(b));
8033
8033
  const RealDate = Date;
8034
8034
  class ViteNodeServer {
8035
8035
  constructor(server, options = {}) {
@@ -8050,7 +8050,7 @@ class ViteNodeServer {
8050
8050
  async fetchModule(id) {
8051
8051
  if (!this.fetchPromiseMap.has(id)) {
8052
8052
  this.fetchPromiseMap.set(id, this._fetchModule(id).then((r) => {
8053
- return this.options.sourcemap !== true ? __spreadProps$4(__spreadValues$5({}, r), { map: void 0 }) : r;
8053
+ return this.options.sourcemap !== true ? __spreadProps$5(__spreadValues$5({}, r), { map: void 0 }) : r;
8054
8054
  }).finally(() => {
8055
8055
  this.fetchPromiseMap.delete(id);
8056
8056
  }));
@@ -8189,7 +8189,7 @@ function createFakePool(ctx) {
8189
8189
  const { workerPort, port } = createChannel(ctx);
8190
8190
  const data = {
8191
8191
  port: workerPort,
8192
- config: ctx.getConfig(),
8192
+ config: ctx.getSerializableConfig(),
8193
8193
  files,
8194
8194
  invalidates,
8195
8195
  id: 1
@@ -8221,11 +8221,12 @@ function createWorkerPool(ctx) {
8221
8221
  const runWithFiles = (name) => {
8222
8222
  return async (files, invalidates) => {
8223
8223
  let id = 0;
8224
+ const config = ctx.getSerializableConfig();
8224
8225
  await Promise.all(files.map(async (file) => {
8225
8226
  const { workerPort, port } = createChannel(ctx);
8226
8227
  const data = {
8227
8228
  port: workerPort,
8228
- config: ctx.getConfig(),
8229
+ config,
8229
8230
  files: [file],
8230
8231
  invalidates,
8231
8232
  id: ++id
@@ -8553,13 +8554,22 @@ ${picocolors.exports.inverse(picocolors.exports.bold(picocolors.exports.blue(" R
8553
8554
  this.start = performance.now();
8554
8555
  }
8555
8556
  onUserConsoleLog(log) {
8556
- if (this.ctx.config.silent)
8557
+ if (!this.shouldLog(log))
8557
8558
  return;
8558
8559
  const task = log.taskId ? this.ctx.state.idMap.get(log.taskId) : void 0;
8559
8560
  this.ctx.log(picocolors.exports.gray(log.type + picocolors.exports.dim(` | ${task ? getFullName(task) : "unknown test"}`)));
8560
8561
  process[log.type].write(`${log.content}
8561
8562
  `);
8562
8563
  }
8564
+ shouldLog(log) {
8565
+ var _a, _b;
8566
+ if (this.ctx.config.silent)
8567
+ return false;
8568
+ const shouldIgnore = (_b = (_a = this.ctx.config).onConsoleLog) == null ? void 0 : _b.call(_a, log.content, log.type);
8569
+ if (shouldIgnore === false)
8570
+ return shouldIgnore;
8571
+ return true;
8572
+ }
8563
8573
  onServerRestart() {
8564
8574
  this.ctx.log(picocolors.exports.cyan("Restarted due to config changes..."));
8565
8575
  }
@@ -9278,6 +9288,8 @@ class DefaultReporter extends BaseReporter {
9278
9288
  }
9279
9289
  onUserConsoleLog(log) {
9280
9290
  var _a;
9291
+ if (!this.shouldLog(log))
9292
+ return;
9281
9293
  (_a = this.renderer) == null ? void 0 : _a.clear();
9282
9294
  super.onUserConsoleLog(log);
9283
9295
  }
@@ -9619,8 +9631,8 @@ class TapReporter {
9619
9631
  }
9620
9632
 
9621
9633
  var __defProp$4 = Object.defineProperty;
9622
- var __defProps$3 = Object.defineProperties;
9623
- var __getOwnPropDescs$3 = Object.getOwnPropertyDescriptors;
9634
+ var __defProps$4 = Object.defineProperties;
9635
+ var __getOwnPropDescs$4 = Object.getOwnPropertyDescriptors;
9624
9636
  var __getOwnPropSymbols$4 = Object.getOwnPropertySymbols;
9625
9637
  var __hasOwnProp$4 = Object.prototype.hasOwnProperty;
9626
9638
  var __propIsEnum$4 = Object.prototype.propertyIsEnumerable;
@@ -9636,13 +9648,13 @@ var __spreadValues$4 = (a, b) => {
9636
9648
  }
9637
9649
  return a;
9638
9650
  };
9639
- var __spreadProps$3 = (a, b) => __defProps$3(a, __getOwnPropDescs$3(b));
9651
+ var __spreadProps$4 = (a, b) => __defProps$4(a, __getOwnPropDescs$4(b));
9640
9652
  function flattenTasks$1(task, baseName = "") {
9641
9653
  const base = baseName ? `${baseName} > ` : "";
9642
9654
  if (task.type === "suite") {
9643
9655
  return task.tasks.flatMap((child) => flattenTasks$1(child, `${base}${task.name}`));
9644
9656
  } else {
9645
- return [__spreadProps$3(__spreadValues$4({}, task), {
9657
+ return [__spreadProps$4(__spreadValues$4({}, task), {
9646
9658
  name: `${base}${task.name}`
9647
9659
  })];
9648
9660
  }
@@ -9760,7 +9772,7 @@ class JUnitReporter {
9760
9772
  failures: 0,
9761
9773
  skipped: 0
9762
9774
  });
9763
- return __spreadProps$3(__spreadValues$4({}, file), {
9775
+ return __spreadProps$4(__spreadValues$4({}, file), {
9764
9776
  tasks,
9765
9777
  stats
9766
9778
  });
@@ -9787,8 +9799,8 @@ class JUnitReporter {
9787
9799
  }
9788
9800
 
9789
9801
  var __defProp$3 = Object.defineProperty;
9790
- var __defProps$2 = Object.defineProperties;
9791
- var __getOwnPropDescs$2 = Object.getOwnPropertyDescriptors;
9802
+ var __defProps$3 = Object.defineProperties;
9803
+ var __getOwnPropDescs$3 = Object.getOwnPropertyDescriptors;
9792
9804
  var __getOwnPropSymbols$3 = Object.getOwnPropertySymbols;
9793
9805
  var __hasOwnProp$3 = Object.prototype.hasOwnProperty;
9794
9806
  var __propIsEnum$3 = Object.prototype.propertyIsEnumerable;
@@ -9804,13 +9816,13 @@ var __spreadValues$3 = (a, b) => {
9804
9816
  }
9805
9817
  return a;
9806
9818
  };
9807
- var __spreadProps$2 = (a, b) => __defProps$2(a, __getOwnPropDescs$2(b));
9819
+ var __spreadProps$3 = (a, b) => __defProps$3(a, __getOwnPropDescs$3(b));
9808
9820
  function flattenTasks(task, baseName = "") {
9809
9821
  const base = baseName ? `${baseName} > ` : "";
9810
9822
  if (task.type === "suite" && task.tasks.length > 0) {
9811
9823
  return task.tasks.flatMap((child) => flattenTasks(child, `${base}${task.name}`));
9812
9824
  } else {
9813
- return [__spreadProps$2(__spreadValues$3({}, task), {
9825
+ return [__spreadProps$3(__spreadValues$3({}, task), {
9814
9826
  name: `${base}${task.name}`
9815
9827
  })];
9816
9828
  }
@@ -9927,8 +9939,8 @@ class StateManager {
9927
9939
  }
9928
9940
 
9929
9941
  var __defProp$2 = Object.defineProperty;
9930
- var __defProps$1 = Object.defineProperties;
9931
- var __getOwnPropDescs$1 = Object.getOwnPropertyDescriptors;
9942
+ var __defProps$2 = Object.defineProperties;
9943
+ var __getOwnPropDescs$2 = Object.getOwnPropertyDescriptors;
9932
9944
  var __getOwnPropSymbols$2 = Object.getOwnPropertySymbols;
9933
9945
  var __hasOwnProp$2 = Object.prototype.hasOwnProperty;
9934
9946
  var __propIsEnum$2 = Object.prototype.propertyIsEnumerable;
@@ -9944,7 +9956,7 @@ var __spreadValues$2 = (a, b) => {
9944
9956
  }
9945
9957
  return a;
9946
9958
  };
9947
- var __spreadProps$1 = (a, b) => __defProps$1(a, __getOwnPropDescs$1(b));
9959
+ var __spreadProps$2 = (a, b) => __defProps$2(a, __getOwnPropDescs$2(b));
9948
9960
  const extraInlineDeps = [
9949
9961
  /^(?!.*(?:node_modules)).*\.mjs$/,
9950
9962
  /^(?!.*(?:node_modules)).*\.cjs\.js$/,
@@ -9987,7 +9999,7 @@ function resolveConfig(options, viteConfig) {
9987
9999
  }
9988
10000
  options.environment = "happy-dom";
9989
10001
  }
9990
- const resolved = __spreadProps$1(__spreadValues$2(__spreadValues$2({}, configDefaults), options), {
10002
+ const resolved = __spreadProps$2(__spreadValues$2(__spreadValues$2({}, configDefaults), options), {
9991
10003
  root: viteConfig.root
9992
10004
  });
9993
10005
  if (viteConfig.base !== "/")
@@ -10246,6 +10258,8 @@ class VitestGit {
10246
10258
  }
10247
10259
 
10248
10260
  var __defProp$1 = Object.defineProperty;
10261
+ var __defProps$1 = Object.defineProperties;
10262
+ var __getOwnPropDescs$1 = Object.getOwnPropertyDescriptors;
10249
10263
  var __getOwnPropSymbols$1 = Object.getOwnPropertySymbols;
10250
10264
  var __hasOwnProp$1 = Object.prototype.hasOwnProperty;
10251
10265
  var __propIsEnum$1 = Object.prototype.propertyIsEnumerable;
@@ -10261,6 +10275,7 @@ var __spreadValues$1 = (a, b) => {
10261
10275
  }
10262
10276
  return a;
10263
10277
  };
10278
+ var __spreadProps$1 = (a, b) => __defProps$1(a, __getOwnPropDescs$1(b));
10264
10279
  const WATCHER_DEBOUNCE = 100;
10265
10280
  const CLOSE_TIMEOUT = 1e3;
10266
10281
  class Vitest {
@@ -10314,18 +10329,14 @@ class Vitest {
10314
10329
  if (resolved.coverage.enabled)
10315
10330
  await cleanCoverage(resolved.coverage, resolved.coverage.clean);
10316
10331
  }
10317
- getConfig() {
10318
- const hasCustomReporter = toArray(this.config.reporters).some((reporter) => typeof reporter !== "string");
10319
- if (this.config.snapshotOptions.resolveSnapshotPath)
10320
- this.config.snapshotOptions.resolveSnapshotPath = void 0;
10321
- if (!hasCustomReporter && !this.configOverride)
10322
- return this.config;
10323
- const config = deepMerge({}, this.config);
10324
- if (this.configOverride)
10325
- deepMerge(config, this.configOverride);
10326
- if (hasCustomReporter)
10327
- config.reporters = [];
10328
- return config;
10332
+ getSerializableConfig() {
10333
+ return deepMerge(__spreadProps$1(__spreadValues$1({}, this.config), {
10334
+ reporters: [],
10335
+ snapshotOptions: __spreadProps$1(__spreadValues$1({}, this.config.snapshotOptions), {
10336
+ resolveSnapshotPath: void 0
10337
+ }),
10338
+ onConsoleLog: void 0
10339
+ }), this.configOverride || {});
10329
10340
  }
10330
10341
  async start(filters) {
10331
10342
  await this.report("onInit", this);
@@ -10429,7 +10440,7 @@ class Vitest {
10429
10440
  this.config.testNamePattern = pattern ? new RegExp(pattern) : void 0;
10430
10441
  await this.rerunFiles(files, trigger);
10431
10442
  }
10432
- async returnFailed() {
10443
+ async rerunFailed() {
10433
10444
  await this.rerunFiles(this.state.getFailedFilepaths(), "rerun failed");
10434
10445
  }
10435
10446
  async updateSnapshot(files) {
@@ -10993,6 +11004,8 @@ function registerConsoleShortcuts(ctx) {
10993
11004
  return ctx.updateSnapshot();
10994
11005
  if (name === "a" || name === "return")
10995
11006
  return ctx.rerunFiles(void 0, "rerun all");
11007
+ if (name === "f")
11008
+ return ctx.rerunFailed();
10996
11009
  if (name === "t")
10997
11010
  return inputNamePattern();
10998
11011
  if (name === "q")
package/dist/cli.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { EventEmitter } from 'events';
2
2
  import { p as picocolors } from './chunk-utils-global.a5a8641f.js';
3
- import { v as version, s as startVitest, d as divider } from './chunk-vite-node-externalize.6124d286.js';
3
+ import { v as version, s as startVitest, d as divider } from './chunk-vite-node-externalize.cfbecaaf.js';
4
4
  import 'tty';
5
5
  import 'local-pkg';
6
6
  import 'path';
package/dist/entry.js CHANGED
@@ -1,4 +1,4 @@
1
- export { r as run } from './vendor-entry.3adaf0b2.js';
1
+ export { r as run } from './vendor-entry.d50b0f20.js';
2
2
  import 'fs';
3
3
  import './chunk-utils-global.a5a8641f.js';
4
4
  import 'tty';
@@ -6,7 +6,7 @@ import 'local-pkg';
6
6
  import 'path';
7
7
  import 'console';
8
8
  import 'stream';
9
- import './chunk-runtime-chain.221b8dcb.js';
9
+ import './chunk-runtime-chain.f8567c17.js';
10
10
  import 'chai';
11
11
  import './vendor-_commonjsHelpers.addc3445.js';
12
12
  import './chunk-runtime-rpc.63398738.js';
package/dist/index.d.ts CHANGED
@@ -445,14 +445,14 @@ declare class Vitest {
445
445
  private _onRestartListeners;
446
446
  constructor();
447
447
  setServer(options: UserConfig, server: ViteDevServer): Promise<void>;
448
- getConfig(): ResolvedConfig;
448
+ getSerializableConfig(): ResolvedConfig;
449
449
  start(filters?: string[]): Promise<void>;
450
450
  private getTestDependencies;
451
451
  filterTestsBySource(tests: string[]): Promise<string[]>;
452
452
  runFiles(files: string[]): Promise<void>;
453
453
  rerunFiles(files?: string[], trigger?: string): Promise<void>;
454
454
  changeNamePattern(pattern: string, files?: string[], trigger?: string): Promise<void>;
455
- returnFailed(): Promise<void>;
455
+ rerunFailed(): Promise<void>;
456
456
  updateSnapshot(files?: string[]): Promise<void>;
457
457
  log(...args: any[]): void;
458
458
  error(...args: any[]): void;
@@ -491,6 +491,7 @@ declare abstract class BaseReporter implements Reporter {
491
491
  onWatcherStart(): Promise<void>;
492
492
  onWatcherRerun(files: string[], trigger?: string): Promise<void>;
493
493
  onUserConsoleLog(log: UserConsoleLog): void;
494
+ shouldLog(log: UserConsoleLog): boolean;
494
495
  onServerRestart(): void;
495
496
  reportSummary(files: File[]): Promise<void>;
496
497
  private printTaskErrors;
@@ -1240,6 +1241,12 @@ interface InlineConfig {
1240
1241
  * Options for @sinon/fake-timers
1241
1242
  */
1242
1243
  fakeTimers?: FakeTimerInstallOpts;
1244
+ /**
1245
+ * Custom handler for console.log in tests.
1246
+ *
1247
+ * Return `false` to ignore the log.
1248
+ */
1249
+ onConsoleLog?: (log: string, type: 'stdout' | 'stderr') => false | void;
1243
1250
  }
1244
1251
  interface UserConfig extends InlineConfig {
1245
1252
  /**
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- export { c as afterAll, f as afterEach, b as beforeAll, e as beforeEach, g as createExpect, d as describe, h as expect, k as getRunningMode, a as isFirstRun, l as isWatchMode, i as it, r as runOnce, s as suite, t as test, j as vi, v as vitest, w as withCallback } from './chunk-runtime-chain.221b8dcb.js';
1
+ export { c as afterAll, f as afterEach, b as beforeAll, e as beforeEach, g as createExpect, d as describe, h as expect, k as getRunningMode, a as isFirstRun, l as isWatchMode, i as it, r as runOnce, s as suite, t as test, j as vi, v as vitest, w as withCallback } from './chunk-runtime-chain.f8567c17.js';
2
2
  export { assert, default as chai, should } from 'chai';
3
3
  import './vendor-_commonjsHelpers.addc3445.js';
4
4
  import './chunk-runtime-rpc.63398738.js';
package/dist/node.d.ts CHANGED
@@ -291,6 +291,7 @@ declare abstract class BaseReporter implements Reporter {
291
291
  onWatcherStart(): Promise<void>;
292
292
  onWatcherRerun(files: string[], trigger?: string): Promise<void>;
293
293
  onUserConsoleLog(log: UserConsoleLog): void;
294
+ shouldLog(log: UserConsoleLog): boolean;
294
295
  onServerRestart(): void;
295
296
  reportSummary(files: File[]): Promise<void>;
296
297
  private printTaskErrors;
@@ -942,6 +943,12 @@ interface InlineConfig {
942
943
  * Options for @sinon/fake-timers
943
944
  */
944
945
  fakeTimers?: FakeTimerInstallOpts;
946
+ /**
947
+ * Custom handler for console.log in tests.
948
+ *
949
+ * Return `false` to ignore the log.
950
+ */
951
+ onConsoleLog?: (log: string, type: 'stdout' | 'stderr') => false | void;
945
952
  }
946
953
  interface UserConfig extends InlineConfig {
947
954
  /**
@@ -1048,14 +1055,14 @@ declare class Vitest {
1048
1055
  private _onRestartListeners;
1049
1056
  constructor();
1050
1057
  setServer(options: UserConfig, server: ViteDevServer): Promise<void>;
1051
- getConfig(): ResolvedConfig;
1058
+ getSerializableConfig(): ResolvedConfig;
1052
1059
  start(filters?: string[]): Promise<void>;
1053
1060
  private getTestDependencies;
1054
1061
  filterTestsBySource(tests: string[]): Promise<string[]>;
1055
1062
  runFiles(files: string[]): Promise<void>;
1056
1063
  rerunFiles(files?: string[], trigger?: string): Promise<void>;
1057
1064
  changeNamePattern(pattern: string, files?: string[], trigger?: string): Promise<void>;
1058
- returnFailed(): Promise<void>;
1065
+ rerunFailed(): Promise<void>;
1059
1066
  updateSnapshot(files?: string[]): Promise<void>;
1060
1067
  log(...args: any[]): void;
1061
1068
  error(...args: any[]): void;
package/dist/node.js CHANGED
@@ -1,4 +1,4 @@
1
- export { V as VitestPlugin, c as createVitest, s as startVitest } from './chunk-vite-node-externalize.6124d286.js';
1
+ export { V as VitestPlugin, c as createVitest, s as startVitest } from './chunk-vite-node-externalize.cfbecaaf.js';
2
2
  export { V as VitestRunner } from './chunk-runtime-mocker.acd615bd.js';
3
3
  import 'buffer';
4
4
  import 'path';
@@ -3,7 +3,7 @@ import { a as getWorkerState, t as toArray, G as clone, E as getType, l as relat
3
3
  import { Console } from 'console';
4
4
  import { Writable } from 'stream';
5
5
  import { importModule } from 'local-pkg';
6
- import { s as suite, t as test, d as describe, i as it, r as runOnce, a as isFirstRun, b as beforeAll, c as afterAll, e as beforeEach, f as afterEach, w as withCallback, g as createExpect, h as expect, v as vitest, j as vi, k as getRunningMode, l as isWatchMode, m as resetRunOnceCounter, R as RealDate, n as clearCollectorContext, o as defaultSuite, p as setHooks, q as getHooks, u as collectorContext, x as getSnapshotClient, y as setState, z as getFn, A as getState } from './chunk-runtime-chain.221b8dcb.js';
6
+ import { s as suite, t as test, d as describe, i as it, r as runOnce, a as isFirstRun, b as beforeAll, c as afterAll, e as beforeEach, f as afterEach, w as withCallback, g as createExpect, h as expect, v as vitest, j as vi, k as getRunningMode, l as isWatchMode, m as resetRunOnceCounter, R as RealDate, n as clearCollectorContext, o as defaultSuite, p as setHooks, q as getHooks, u as collectorContext, x as getSnapshotClient, y as setState, z as getFn, A as getState } from './chunk-runtime-chain.f8567c17.js';
7
7
  import chai, { assert, should, util } from 'chai';
8
8
  import { r as rpc } from './chunk-runtime-rpc.63398738.js';
9
9
  import { d as clearTimeout, c as setTimeout, s as stringify } from './chunk-utils-timers.f25e8f44.js';
@@ -495,7 +495,7 @@ async function setupGlobalEnv(config) {
495
495
  globalSetup = true;
496
496
  setupConsoleLogSpy();
497
497
  if (config.globals)
498
- (await import('./chunk-integrations-globals.60fc66ef.js')).registerApiGlobally();
498
+ (await import('./chunk-integrations-globals.f3e83abb.js')).registerApiGlobally();
499
499
  }
500
500
  function setupDefines(defines) {
501
501
  for (const key in defines)
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "vitest",
3
3
  "type": "module",
4
- "version": "0.12.3",
4
+ "version": "0.12.4",
5
5
  "description": "A blazing fast unit test framework powered by Vite",
6
6
  "keywords": [
7
7
  "vite",
@@ -93,7 +93,7 @@
93
93
  "@types/node": "^17.0.31",
94
94
  "@types/prompts": "^2.4.0",
95
95
  "@types/sinonjs__fake-timers": "^8.1.2",
96
- "@vitest/ui": "0.12.3",
96
+ "@vitest/ui": "0.12.4",
97
97
  "birpc": "^0.2.2",
98
98
  "c8": "^7.11.2",
99
99
  "cac": "^6.7.12",
@@ -120,7 +120,7 @@
120
120
  "source-map-js": "^1.0.2",
121
121
  "strip-ansi": "^7.0.1",
122
122
  "typescript": "^4.6.4",
123
- "vite-node": "0.12.3",
123
+ "vite-node": "0.12.4",
124
124
  "ws": "^8.6.0"
125
125
  },
126
126
  "engines": {