vitest 0.9.2 → 0.9.3

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 { promises } from 'fs';
2
- import { c as createBirpc } from './chunk-vite-node-utils.7f0053fb.js';
2
+ import { c as createBirpc } from './chunk-vite-node-utils.3400d522.js';
3
3
  import require$$0$1 from 'stream';
4
4
  import require$$0 from 'zlib';
5
5
  import require$$3 from 'net';
@@ -9,11 +9,11 @@ import require$$2 from 'events';
9
9
  import require$$1 from 'https';
10
10
  import require$$2$1 from 'http';
11
11
  import url from 'url';
12
- import { A as API_PATH } from './chunk-constants.e59013dc.js';
13
- import { r as interpretSourcePos, b as parseStacktrace } from './chunk-utils-timers.4800834c.js';
12
+ import { A as API_PATH } from './chunk-constants.a6ce1057.js';
13
+ import { r as interpretSourcePos, b as parseStacktrace } from './chunk-utils-timers.6cfeb494.js';
14
14
  import 'module';
15
15
  import 'vm';
16
- import './chunk-utils-global.10dcdfa6.js';
16
+ import './chunk-utils-global.46331799.js';
17
17
  import 'path';
18
18
  import 'tty';
19
19
  import 'local-pkg';
@@ -1,5 +1,5 @@
1
1
  import { fileURLToPath } from 'url';
2
- import { w as resolve } from './chunk-utils-global.10dcdfa6.js';
2
+ import { w as resolve } from './chunk-utils-global.46331799.js';
3
3
 
4
4
  const distDir = resolve(fileURLToPath(import.meta.url), "../../dist");
5
5
  const defaultPort = 51204;
@@ -1,7 +1,7 @@
1
1
  import { existsSync, promises } from 'fs';
2
2
  import { createRequire } from 'module';
3
3
  import { pathToFileURL } from 'url';
4
- import { t as toArray, w as resolve } from './chunk-utils-global.10dcdfa6.js';
4
+ import { t as toArray, w as resolve } from './chunk-utils-global.46331799.js';
5
5
 
6
6
  const defaultInclude = ["**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}"];
7
7
  const defaultExclude = ["**/node_modules/**", "**/dist/**", "**/cypress/**", "**/.{idea,git,cache,output,temp}/**"];
@@ -1,15 +1,15 @@
1
- import { g as globalApis } from './chunk-constants.e59013dc.js';
2
- import { i as index } from './chunk-runtime-chain.94cf66a4.js';
1
+ import { g as globalApis } from './chunk-constants.a6ce1057.js';
2
+ import { i as index } from './chunk-runtime-chain.e17b859e.js';
3
3
  import 'url';
4
- import './chunk-utils-global.10dcdfa6.js';
4
+ import './chunk-utils-global.46331799.js';
5
5
  import 'path';
6
6
  import 'tty';
7
7
  import 'local-pkg';
8
8
  import 'util';
9
- import './chunk-utils-timers.4800834c.js';
9
+ import './chunk-utils-timers.6cfeb494.js';
10
10
  import 'chai';
11
11
  import './vendor-_commonjsHelpers.34b404ce.js';
12
- import './chunk-runtime-rpc.4b80b6bd.js';
12
+ import './chunk-runtime-rpc.9e81f15b.js';
13
13
  import 'fs';
14
14
  import './spy.js';
15
15
  import 'tinyspy';
@@ -1,9 +1,9 @@
1
1
  import require$$0, { format } from 'util';
2
- import { g as getWorkerState, i as isObject, t as toArray, n as noop, a as index$1, b as getCallLastIndex, s as slash, c as getNames, d as assertTypes, e as c, r as resetModules } from './chunk-utils-global.10dcdfa6.js';
3
- import { s as setTimeout, c as clearTimeout, p as plugins_1, f as format_1, g as getOriginalPos, a as posToNumber, n as numberToPos, l as lineSplitRE, b as parseStacktrace, u as unifiedDiff, d as stringify, m as matcherUtils } from './chunk-utils-timers.4800834c.js';
2
+ import { g as getWorkerState, i as isObject, t as toArray, n as noop, a as index$1, b as getCallLastIndex, s as slash, c as getNames, d as assertTypes, e as c, r as resetModules } from './chunk-utils-global.46331799.js';
3
+ import { s as setTimeout, c as clearTimeout, p as plugins_1, f as format_1, g as getOriginalPos, a as posToNumber, n as numberToPos, l as lineSplitRE, b as parseStacktrace, u as unifiedDiff, d as stringify, m as matcherUtils } from './chunk-utils-timers.6cfeb494.js';
4
4
  import chai$1, { expect as expect$1, util, assert, should } from 'chai';
5
5
  import { c as commonjsRequire, a as commonjsGlobal } from './vendor-_commonjsHelpers.34b404ce.js';
6
- import { r as rpc } from './chunk-runtime-rpc.4b80b6bd.js';
6
+ import { r as rpc } from './chunk-runtime-rpc.9e81f15b.js';
7
7
  import fs, { promises } from 'fs';
8
8
  import { isMockFunction, spyOn, fn, spies } from './spy.js';
9
9
 
@@ -1,8 +1,8 @@
1
- import { n as normalizeRequestId, i as isNodeBuiltin, t as toFilePath, V as ViteNodeRunner } from './chunk-vite-node-utils.7f0053fb.js';
1
+ import { n as normalizeRequestId, i as isNodeBuiltin, t as toFilePath, V as ViteNodeRunner } from './chunk-vite-node-utils.3400d522.js';
2
2
  import { normalizePath } from 'vite';
3
- import { g as getWorkerState, B as isWindows, C as mergeSlashes, k as dirname, h as basename, w as resolve, s as slash } from './chunk-utils-global.10dcdfa6.js';
3
+ import { g as getWorkerState, B as isWindows, C as mergeSlashes, k as dirname, h as basename, w as resolve, s as slash } from './chunk-utils-global.46331799.js';
4
4
  import { existsSync, readdirSync } from 'fs';
5
- import { d as distDir } from './chunk-constants.e59013dc.js';
5
+ import { d as distDir } from './chunk-constants.a6ce1057.js';
6
6
 
7
7
  var __defProp = Object.defineProperty;
8
8
  var __getOwnPropSymbols = Object.getOwnPropertySymbols;
@@ -1,4 +1,4 @@
1
- import { g as getWorkerState } from './chunk-utils-global.10dcdfa6.js';
1
+ import { g as getWorkerState } from './chunk-utils-global.46331799.js';
2
2
 
3
3
  const rpc = () => {
4
4
  return getWorkerState().rpc;
@@ -377,7 +377,7 @@ async function ensurePackageInstalled(dependency, promptInstall = !process.env.C
377
377
  `));
378
378
  if (!promptInstall)
379
379
  return false;
380
- const prompts = await import('./vendor-index.ee829ed6.js').then(function (n) { return n.i; });
380
+ const prompts = await import('./vendor-index.13468339.js').then(function (n) { return n.i; });
381
381
  const { install } = await prompts.prompt({
382
382
  type: "confirm",
383
383
  name: "install",
@@ -1,4 +1,4 @@
1
- import { s as slash, f as notNullish, e as c$1 } from './chunk-utils-global.10dcdfa6.js';
1
+ import { s as slash, f as notNullish, e as c$1 } from './chunk-utils-global.46331799.js';
2
2
 
3
3
  const setTimeout$1 = globalThis.setTimeout;
4
4
  const setInterval = globalThis.setInterval;
@@ -5,26 +5,26 @@ import process$2 from 'process';
5
5
  import { o as onExit, m as mergeStream, g as getStream, c as crossSpawn, a as onetime$1 } from './vendor-index.87b2fc14.js';
6
6
  import url, { fileURLToPath, pathToFileURL } from 'url';
7
7
  import require$$0, { constants as constants$8, hostname, cpus } from 'os';
8
- import { j as join, h as basename, k as dirname, e as c, s as slash$2, l as isAbsolute, m as relative, o as getTests, p as getFullName, q as hasFailed, u as hasFailedSnapshot, v as getSuites, w as resolve, t as toArray, n as noop$1, x as deepMerge, y as toNamespacedPath, b as getCallLastIndex, f as notNullish, z as ensurePackageInstalled } from './chunk-utils-global.10dcdfa6.js';
8
+ import { j as join, h as basename, k as dirname, e as c, s as slash$2, l as isAbsolute, m as relative, o as getTests, p as getFullName, q as hasFailed, u as hasFailedSnapshot, v as getSuites, w as resolve, t as toArray, n as noop$1, x as deepMerge, y as toNamespacedPath, b as getCallLastIndex, f as notNullish, z as ensurePackageInstalled } from './chunk-utils-global.46331799.js';
9
9
  import { createServer, mergeConfig } from 'vite';
10
10
  import fs$8, { promises, existsSync } from 'fs';
11
- import { d as distDir, a as defaultPort, c as configFiles } from './chunk-constants.e59013dc.js';
11
+ import { d as distDir, a as defaultPort, c as configFiles } from './chunk-constants.a6ce1057.js';
12
+ import readline from 'readline';
12
13
  import require$$0$1 from 'util';
13
14
  import require$$0$2 from 'stream';
14
15
  import require$$2 from 'events';
15
- import { i as isNodeBuiltin, a as isValidNodeImport, s as slash$1, t as toFilePath, w as withInlineSourcemap, c as createBirpc, V as ViteNodeRunner } from './chunk-vite-node-utils.7f0053fb.js';
16
- import { c as configDefaults, r as resolveC8Options, a as cleanCoverage, b as reportCoverage } from './chunk-defaults.9aa0ce42.js';
16
+ import { i as isNodeBuiltin, a as isValidNodeImport, s as slash$1, t as toFilePath, w as withInlineSourcemap, c as createBirpc, V as ViteNodeRunner } from './chunk-vite-node-utils.3400d522.js';
17
+ import { c as configDefaults, r as resolveC8Options, a as cleanCoverage, b as reportCoverage } from './chunk-defaults.aecec9d4.js';
17
18
  import { performance } from 'perf_hooks';
18
- import { e as stripAnsi, h as stringWidth, i as ansiStyles, j as sliceAnsi, k as setInterval, o as clearInterval, q as cliTruncate, s as setTimeout$1, b as parseStacktrace, r as interpretSourcePos, d as stringify$5, u as unifiedDiff, a as posToNumber, l as lineSplitRE, c as clearTimeout$1 } from './chunk-utils-timers.4800834c.js';
19
+ import { e as stripAnsi, h as stringWidth, i as ansiStyles, j as sliceAnsi, k as setInterval, o as clearInterval, q as cliTruncate, s as setTimeout$1, b as parseStacktrace, r as interpretSourcePos, d as stringify$5, u as unifiedDiff, a as posToNumber, l as lineSplitRE, c as clearTimeout$1 } from './chunk-utils-timers.6cfeb494.js';
19
20
  import { a as commonjsGlobal } from './vendor-_commonjsHelpers.34b404ce.js';
20
21
  import assert$1 from 'assert';
21
22
  import { MessageChannel } from 'worker_threads';
22
23
  import { Tinypool } from 'tinypool';
23
24
  import MagicString from './chunk-magic-string.d5e0e473.js';
24
- import require$$0$3 from 'readline';
25
- import { p as prompts } from './vendor-index.ee829ed6.js';
25
+ import { p as prompts } from './vendor-index.13468339.js';
26
26
 
27
- var version = "0.9.2";
27
+ var version = "0.9.3";
28
28
 
29
29
  function stripFinalNewline(input) {
30
30
  const LF = typeof input === 'string' ? '\n' : '\n'.charCodeAt();
@@ -10822,9 +10822,10 @@ class BaseReporter {
10822
10822
  }
10823
10823
  async onWatcherRerun(files, trigger) {
10824
10824
  this.watchFilters = files;
10825
- this.ctx.console.clear();
10826
- this.ctx.log(c.blue("Re-running tests...") + (trigger ? c.dim(` [ ${this.relative(trigger)} ]
10827
- `) : ""));
10825
+ this.ctx.clearScreen();
10826
+ this.ctx.log(`
10827
+ ${c.inverse(c.bold(c.blue(" RERUN ")))}${trigger ? c.dim(` ${this.relative(trigger)}
10828
+ `) : ""}`);
10828
10829
  this.start = performance.now();
10829
10830
  }
10830
10831
  onUserConsoleLog(log) {
@@ -11776,7 +11777,7 @@ class DefaultReporter extends BaseReporter {
11776
11777
  }
11777
11778
  async onTestRemoved(trigger) {
11778
11779
  await this.stopListRender();
11779
- this.ctx.console.clear();
11780
+ this.ctx.clearScreen();
11780
11781
  this.ctx.log(c.yellow("Test removed...") + (trigger ? c.dim(` [ ${this.relative(trigger)} ]
11781
11782
  `) : ""));
11782
11783
  const files = this.ctx.state.getFiles(this.watchFilters);
@@ -12896,21 +12897,17 @@ class Vitest {
12896
12897
  const files = await this.filterTestsBySource(await this.globTestFiles(filters));
12897
12898
  if (!files.length) {
12898
12899
  const exitCode = this.config.passWithNoTests ? 0 : 1;
12899
- if (this.config.passWithNoTests) {
12900
- this.log(`No test files found, exiting code with ${exitCode}
12901
- `);
12902
- } else {
12903
- this.error(c.red(`No test files found, exiting code with ${exitCode}
12904
- Run with \`--passWithNoTests\`to exit with code 0
12905
- `));
12906
- console.error(`In ${c.bold(this.config.root)}`);
12907
- if (filters == null ? void 0 : filters.length)
12908
- this.console.error(` filter: ${c.yellow(filters.join(", "))}`);
12909
- if (this.config.include)
12910
- this.console.error(` include: ${c.yellow(this.config.include.join(", "))}`);
12911
- if (this.config.watchIgnore)
12912
- this.console.error(` watchIgnore: ${c.yellow(this.config.watchIgnore.join(", "))}`);
12913
- }
12900
+ const comma = c.dim(", ");
12901
+ if (filters == null ? void 0 : filters.length)
12902
+ this.console.error(c.dim("filter: ") + c.yellow(filters.join(comma)));
12903
+ if (this.config.include)
12904
+ this.console.error(c.dim("include: ") + c.yellow(this.config.include.join(comma)));
12905
+ if (this.config.watchIgnore)
12906
+ this.console.error(c.dim("ignore: ") + c.yellow(this.config.watchIgnore.join(comma)));
12907
+ if (this.config.passWithNoTests)
12908
+ this.log("No test files found, exiting with code 0\n");
12909
+ else
12910
+ this.error(c.red("\nNo test files found, exiting with code 1"));
12914
12911
  process.exit(exitCode);
12915
12912
  }
12916
12913
  await this.runFiles(files);
@@ -13013,6 +13010,15 @@ Run with \`--passWithNoTests\`to exit with code 0
13013
13010
  error(...args) {
13014
13011
  this.console.error(...args);
13015
13012
  }
13013
+ clearScreen() {
13014
+ if (this.server.config.clearScreen === false)
13015
+ return;
13016
+ const repeatCount = process.stdout.rows - 2;
13017
+ const blank = repeatCount > 0 ? "\n".repeat(repeatCount) : "";
13018
+ this.console.log(blank);
13019
+ readline.cursorTo(process.stdout, 0, 0);
13020
+ readline.clearScreenDown(process.stdout);
13021
+ }
13016
13022
  async scheduleRerun(triggerId) {
13017
13023
  const currentCount = this.restartsCount;
13018
13024
  clearTimeout$1(this._rerunTimer);
@@ -13031,7 +13037,6 @@ Run with \`--passWithNoTests\`to exit with code 0
13031
13037
  this.snapshot.clear();
13032
13038
  const files = Array.from(this.changedTests);
13033
13039
  this.changedTests.clear();
13034
- this.log("return");
13035
13040
  if (this.config.coverage.enabled && this.config.coverage.cleanOnRerun)
13036
13041
  await cleanCoverage(this.config.coverage);
13037
13042
  await this.report("onWatcherRerun", files, triggerId);
@@ -13457,7 +13462,6 @@ async function VitestPlugin(options = {}, ctx = new Vitest()) {
13457
13462
  }
13458
13463
  options.defines = defines;
13459
13464
  return {
13460
- clearScreen: false,
13461
13465
  resolve: {
13462
13466
  mainFields: []
13463
13467
  },
@@ -13491,7 +13495,7 @@ async function VitestPlugin(options = {}, ctx = new Vitest()) {
13491
13495
  await ctx.setServer(options, server);
13492
13496
  haveStarted = true;
13493
13497
  if (options.api && options.watch)
13494
- (await import('./chunk-api-setup.7290422e.js')).setup(ctx);
13498
+ (await import('./chunk-api-setup.d764f144.js')).setup(ctx);
13495
13499
  if (!options.watch)
13496
13500
  await server.watcher.close();
13497
13501
  }
@@ -13571,8 +13575,8 @@ function registerConsoleShortcuts(ctx) {
13571
13575
  let rl;
13572
13576
  function on() {
13573
13577
  off();
13574
- rl = require$$0$3.createInterface({ input: process.stdin, escapeCodeTimeout: 50 });
13575
- require$$0$3.emitKeypressEvents(process.stdin, rl);
13578
+ rl = readline.createInterface({ input: process.stdin, escapeCodeTimeout: 50 });
13579
+ readline.emitKeypressEvents(process.stdin, rl);
13576
13580
  if (process.stdin.isTTY)
13577
13581
  process.stdin.setRawMode(true);
13578
13582
  process.stdin.on("keypress", keypressHandler);
@@ -1,7 +1,7 @@
1
1
  import { builtinModules, createRequire } from 'module';
2
2
  import { pathToFileURL, fileURLToPath as fileURLToPath$2, URL as URL$1 } from 'url';
3
3
  import vm from 'vm';
4
- import { l as isAbsolute$2, w as resolve, j as join$2, A as extname$2, k as dirname$2 } from './chunk-utils-global.10dcdfa6.js';
4
+ import { l as isAbsolute$2, w as resolve, j as join$2, A as extname$2, k as dirname$2 } from './chunk-utils-global.46331799.js';
5
5
  import path from 'path';
6
6
  import fs, { realpathSync, statSync, Stats, promises, existsSync } from 'fs';
7
7
  import assert from 'assert';
package/dist/cli.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { EventEmitter } from 'events';
2
- import { e as c } from './chunk-utils-global.10dcdfa6.js';
3
- import { v as version, s as startVitest, d as divider } from './chunk-vite-node-externalize.ddf2a6fb.js';
2
+ import { e as c } from './chunk-utils-global.46331799.js';
3
+ import { v as version, s as startVitest, d as divider } from './chunk-vite-node-externalize.9aaddc2d.js';
4
4
  import 'path';
5
5
  import 'tty';
6
6
  import 'local-pkg';
@@ -16,18 +16,18 @@ import 'util';
16
16
  import 'url';
17
17
  import 'os';
18
18
  import 'vite';
19
- import './chunk-constants.e59013dc.js';
20
- import './chunk-vite-node-utils.7f0053fb.js';
19
+ import './chunk-constants.a6ce1057.js';
20
+ import 'readline';
21
+ import './chunk-vite-node-utils.3400d522.js';
21
22
  import 'module';
22
23
  import 'vm';
23
- import './chunk-defaults.9aa0ce42.js';
24
+ import './chunk-defaults.aecec9d4.js';
24
25
  import 'perf_hooks';
25
- import './chunk-utils-timers.4800834c.js';
26
+ import './chunk-utils-timers.6cfeb494.js';
26
27
  import 'worker_threads';
27
28
  import 'tinypool';
28
29
  import './chunk-magic-string.d5e0e473.js';
29
- import 'readline';
30
- import './vendor-index.ee829ed6.js';
30
+ import './vendor-index.13468339.js';
31
31
 
32
32
  function toArr(any) {
33
33
  return any == null ? [] : Array.isArray(any) ? any : [any];
package/dist/entry.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import { promises } from 'fs';
2
- import { g as getWorkerState, t as toArray, m as relative, D as partitionSuiteChildren, E as hasTests, q as hasFailed, p as getFullName, r as resetModules } from './chunk-utils-global.10dcdfa6.js';
2
+ import { g as getWorkerState, t as toArray, m as relative, D as partitionSuiteChildren, E as hasTests, q as hasFailed, p as getFullName, r as resetModules } from './chunk-utils-global.46331799.js';
3
3
  import { Console } from 'console';
4
4
  import { Writable } from 'stream';
5
5
  import { importModule } from 'local-pkg';
6
- import { r as resetRunOnceCounter, i as index, R as RealDate, c as clearContext, d as defaultSuite, s as setHooks, g as getHooks, a as context, b as getSnapshotClient, e as setState, f as getFn, h as getState, v as vi } from './chunk-runtime-chain.94cf66a4.js';
7
- import { r as rpc } from './chunk-runtime-rpc.4b80b6bd.js';
8
- import { c as clearTimeout, s as setTimeout, d as stringify } from './chunk-utils-timers.4800834c.js';
9
- import { t as takeCoverage } from './chunk-defaults.9aa0ce42.js';
6
+ import { r as resetRunOnceCounter, i as index, R as RealDate, c as clearContext, d as defaultSuite, s as setHooks, g as getHooks, a as context, b as getSnapshotClient, e as setState, f as getFn, h as getState, v as vi } from './chunk-runtime-chain.e17b859e.js';
7
+ import { r as rpc } from './chunk-runtime-rpc.9e81f15b.js';
8
+ import { c as clearTimeout, s as setTimeout, d as stringify } from './chunk-utils-timers.6cfeb494.js';
9
+ import { t as takeCoverage } from './chunk-defaults.aecec9d4.js';
10
10
  import { createHash } from 'crypto';
11
11
  import { format } from 'util';
12
12
  import 'path';
@@ -402,7 +402,7 @@ async function setupGlobalEnv(config) {
402
402
  globalSetup = true;
403
403
  setupConsoleLogSpy();
404
404
  if (config.globals)
405
- (await import('./chunk-integrations-globals.c040aaa9.js')).registerApiGlobally();
405
+ (await import('./chunk-integrations-globals.5686bfb8.js')).registerApiGlobally();
406
406
  }
407
407
  function setupDefines(defines) {
408
408
  for (const key in defines)
package/dist/index.d.ts CHANGED
@@ -345,6 +345,7 @@ declare class Vitest {
345
345
  updateSnapshot(files?: string[]): Promise<void>;
346
346
  log(...args: any[]): void;
347
347
  error(...args: any[]): void;
348
+ clearScreen(): void;
348
349
  private _rerunTimer;
349
350
  private scheduleRerun;
350
351
  private unregisterWatcher;
package/dist/index.js CHANGED
@@ -1,13 +1,13 @@
1
- export { p as afterAll, u as afterEach, o as beforeAll, q as beforeEach, k as describe, w as expect, y as getRunningMode, n as isFirstRun, z as isWatchMode, l as it, m as runOnce, j as suite, t as test, v as vi, x as vitest } from './chunk-runtime-chain.94cf66a4.js';
1
+ export { p as afterAll, u as afterEach, o as beforeAll, q as beforeEach, k as describe, w as expect, y as getRunningMode, n as isFirstRun, z as isWatchMode, l as it, m as runOnce, j as suite, t as test, v as vi, x as vitest } from './chunk-runtime-chain.e17b859e.js';
2
2
  export { assert, default as chai, should } from 'chai';
3
3
  import 'util';
4
- import './chunk-utils-global.10dcdfa6.js';
4
+ import './chunk-utils-global.46331799.js';
5
5
  import 'path';
6
6
  import 'tty';
7
7
  import 'local-pkg';
8
- import './chunk-utils-timers.4800834c.js';
8
+ import './chunk-utils-timers.6cfeb494.js';
9
9
  import './vendor-_commonjsHelpers.34b404ce.js';
10
- import './chunk-runtime-rpc.4b80b6bd.js';
10
+ import './chunk-runtime-rpc.9e81f15b.js';
11
11
  import 'fs';
12
12
  import './spy.js';
13
13
  import 'tinyspy';
package/dist/node.d.ts CHANGED
@@ -956,6 +956,7 @@ declare class Vitest {
956
956
  updateSnapshot(files?: string[]): Promise<void>;
957
957
  log(...args: any[]): void;
958
958
  error(...args: any[]): void;
959
+ clearScreen(): void;
959
960
  private _rerunTimer;
960
961
  private scheduleRerun;
961
962
  private unregisterWatcher;
package/dist/node.js CHANGED
@@ -1,5 +1,5 @@
1
- export { V as VitestPlugin, c as createVitest, s as startVitest } from './chunk-vite-node-externalize.ddf2a6fb.js';
2
- export { V as VitestRunner } from './chunk-runtime-mocker.7f4b1850.js';
1
+ export { V as VitestPlugin, c as createVitest, s as startVitest } from './chunk-vite-node-externalize.9aaddc2d.js';
2
+ export { V as VitestRunner } from './chunk-runtime-mocker.d325f149.js';
3
3
  import 'buffer';
4
4
  import 'path';
5
5
  import 'child_process';
@@ -13,19 +13,19 @@ import 'stream';
13
13
  import 'util';
14
14
  import 'url';
15
15
  import 'os';
16
- import './chunk-utils-global.10dcdfa6.js';
16
+ import './chunk-utils-global.46331799.js';
17
17
  import 'tty';
18
18
  import 'local-pkg';
19
19
  import 'vite';
20
- import './chunk-constants.e59013dc.js';
21
- import './chunk-vite-node-utils.7f0053fb.js';
20
+ import './chunk-constants.a6ce1057.js';
21
+ import 'readline';
22
+ import './chunk-vite-node-utils.3400d522.js';
22
23
  import 'module';
23
24
  import 'vm';
24
- import './chunk-defaults.9aa0ce42.js';
25
+ import './chunk-defaults.aecec9d4.js';
25
26
  import 'perf_hooks';
26
- import './chunk-utils-timers.4800834c.js';
27
+ import './chunk-utils-timers.6cfeb494.js';
27
28
  import 'worker_threads';
28
29
  import 'tinypool';
29
30
  import './chunk-magic-string.d5e0e473.js';
30
- import 'readline';
31
- import './vendor-index.ee829ed6.js';
31
+ import './vendor-index.13468339.js';
@@ -1,4 +1,4 @@
1
- import require$$0 from 'readline';
1
+ import readline$2 from 'readline';
2
2
  import require$$2 from 'events';
3
3
 
4
4
  function _mergeNamespaces(n, m) {
@@ -404,7 +404,7 @@ var util$1 = {
404
404
  entriesToDisplay: entriesToDisplay$7
405
405
  };
406
406
 
407
- const readline$1 = require$$0;
407
+ const readline$1 = readline$2;
408
408
 
409
409
  const _require$9 = util$1,
410
410
  action$2 = _require$9.action;
@@ -3283,7 +3283,7 @@ var util = {
3283
3283
  entriesToDisplay: entriesToDisplay$3
3284
3284
  };
3285
3285
 
3286
- const readline = require$$0;
3286
+ const readline = readline$2;
3287
3287
  const { action } = util;
3288
3288
  const EventEmitter = require$$2;
3289
3289
  const { beep, cursor: cursor$9 } = src;
package/dist/worker.js CHANGED
@@ -1,8 +1,8 @@
1
- import { w as resolve, g as getWorkerState } from './chunk-utils-global.10dcdfa6.js';
2
- import { c as createBirpc, M as ModuleCacheMap } from './chunk-vite-node-utils.7f0053fb.js';
3
- import { d as distDir } from './chunk-constants.e59013dc.js';
4
- import { e as executeInViteNode } from './chunk-runtime-mocker.7f4b1850.js';
5
- import { r as rpc } from './chunk-runtime-rpc.4b80b6bd.js';
1
+ import { w as resolve, g as getWorkerState } from './chunk-utils-global.46331799.js';
2
+ import { c as createBirpc, M as ModuleCacheMap } from './chunk-vite-node-utils.3400d522.js';
3
+ import { d as distDir } from './chunk-constants.a6ce1057.js';
4
+ import { e as executeInViteNode } from './chunk-runtime-mocker.d325f149.js';
5
+ import { r as rpc } from './chunk-runtime-rpc.9e81f15b.js';
6
6
  import 'path';
7
7
  import 'tty';
8
8
  import 'local-pkg';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "vitest",
3
3
  "type": "module",
4
- "version": "0.9.2",
4
+ "version": "0.9.3",
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.23",
94
94
  "@types/prompts": "^2.4.0",
95
95
  "@types/sinonjs__fake-timers": "^8.1.2",
96
- "@vitest/ui": "0.9.2",
96
+ "@vitest/ui": "0.9.3",
97
97
  "birpc": "^0.2.2",
98
98
  "c8": "^7.11.0",
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.3",
123
- "vite-node": "0.9.2",
123
+ "vite-node": "0.9.3",
124
124
  "ws": "^8.5.0"
125
125
  },
126
126
  "engines": {