vitest 0.9.3 → 0.9.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 { promises } from 'fs';
2
- import { c as createBirpc } from './chunk-vite-node-utils.3400d522.js';
2
+ import { c as createBirpc } from './chunk-vite-node-utils.b4debb0b.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.a6ce1057.js';
13
- import { r as interpretSourcePos, b as parseStacktrace } from './chunk-utils-timers.6cfeb494.js';
12
+ import { A as API_PATH } from './chunk-constants.c8f1d38c.js';
13
+ import { r as interpretSourcePos, b as parseStacktrace } from './chunk-utils-timers.b26e7c5c.js';
14
14
  import 'module';
15
15
  import 'vm';
16
- import './chunk-utils-global.46331799.js';
16
+ import './chunk-utils-global.a3293dce.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.46331799.js';
2
+ import { w as resolve } from './chunk-utils-global.a3293dce.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.46331799.js';
4
+ import { t as toArray, w as resolve } from './chunk-utils-global.a3293dce.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}/**"];
@@ -2,7 +2,7 @@ import path$2 from 'path';
2
2
  import fs$2 from 'fs';
3
3
  import require$$0 from 'util';
4
4
  import childProcess$1 from 'child_process';
5
- import { p as pathKey, s as signalExit, m as mergeStream$1, b as getStream$1, d as crossSpawn$1, e as onetime$1 } from './vendor-index.87b2fc14.js';
5
+ import { p as pathKey, a as signalExit, m as mergeStream$1, b as getStream$1, d as crossSpawn$1, e as onetime$1 } from './vendor-index.bd255bc8.js';
6
6
  import require$$0$1 from 'os';
7
7
  import './vendor-_commonjsHelpers.34b404ce.js';
8
8
  import 'assert';
@@ -1,15 +1,15 @@
1
- import { g as globalApis } from './chunk-constants.a6ce1057.js';
2
- import { i as index } from './chunk-runtime-chain.e17b859e.js';
1
+ import { g as globalApis } from './chunk-constants.c8f1d38c.js';
2
+ import { i as index } from './chunk-runtime-chain.701cffd8.js';
3
3
  import 'url';
4
- import './chunk-utils-global.46331799.js';
4
+ import './chunk-utils-global.a3293dce.js';
5
5
  import 'path';
6
6
  import 'tty';
7
7
  import 'local-pkg';
8
8
  import 'util';
9
- import './chunk-utils-timers.6cfeb494.js';
9
+ import './chunk-utils-timers.b26e7c5c.js';
10
10
  import 'chai';
11
11
  import './vendor-_commonjsHelpers.34b404ce.js';
12
- import './chunk-runtime-rpc.9e81f15b.js';
12
+ import './chunk-runtime-rpc.c47f2233.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.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';
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.a3293dce.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.b26e7c5c.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.9e81f15b.js';
6
+ import { r as rpc } from './chunk-runtime-rpc.c47f2233.js';
7
7
  import fs, { promises } from 'fs';
8
8
  import { isMockFunction, spyOn, fn, spies } from './spy.js';
9
9
 
@@ -1538,6 +1538,9 @@ Number of calls: ${c.bold(spy.mock.calls.length)}
1538
1538
  const nthCallReturn = equals(callResult, value);
1539
1539
  this.assert(nthCallReturn, `expected ${ordinalCall} "${spyName}" call to return #{exp}`, `expected ${ordinalCall} "${spyName}" call to not return #{exp}`, value, callResult);
1540
1540
  });
1541
+ def("toSatisfy", function() {
1542
+ return this.be.satisfy;
1543
+ });
1541
1544
  utils.addProperty(chai.Assertion.prototype, "resolves", function __VITEST_RESOLVES__() {
1542
1545
  utils.flag(this, "promise", "resolves");
1543
1546
  utils.flag(this, "error", new Error("resolves"));
@@ -1,8 +1,8 @@
1
- import { n as normalizeRequestId, i as isNodeBuiltin, t as toFilePath, V as ViteNodeRunner } from './chunk-vite-node-utils.3400d522.js';
1
+ import { n as normalizeRequestId, i as isNodeBuiltin, t as toFilePath, V as ViteNodeRunner } from './chunk-vite-node-utils.b4debb0b.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.46331799.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.a3293dce.js';
4
4
  import { existsSync, readdirSync } from 'fs';
5
- import { d as distDir } from './chunk-constants.a6ce1057.js';
5
+ import { d as distDir } from './chunk-constants.c8f1d38c.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.46331799.js';
1
+ import { g as getWorkerState } from './chunk-utils-global.a3293dce.js';
2
2
 
3
3
  const rpc = () => {
4
4
  return getWorkerState().rpc;
@@ -384,7 +384,7 @@ async function ensurePackageInstalled(dependency, promptInstall = !process.env.C
384
384
  message: c.reset(`Do you want to install ${c.green(dependency)}?`)
385
385
  });
386
386
  if (install) {
387
- await (await import('./chunk-install-pkg.7dd40977.js')).installPackage(dependency, { dev: true });
387
+ await (await import('./chunk-install-pkg.cbf3a38b.js')).installPackage(dependency, { dev: true });
388
388
  process.stderr.write(c.yellow(`
389
389
  Package ${dependency} installed, re-run the command to start.
390
390
  `));
@@ -1,4 +1,4 @@
1
- import { s as slash, f as notNullish, e as c$1 } from './chunk-utils-global.46331799.js';
1
+ import { s as slash, f as notNullish, e as c$1 } from './chunk-utils-global.a3293dce.js';
2
2
 
3
3
  const setTimeout$1 = globalThis.setTimeout;
4
4
  const setInterval = globalThis.setInterval;