vitest 0.9.1 → 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.
- package/dist/{chunk-api-setup.7290422e.js → chunk-api-setup.49283db8.js} +4 -4
- package/dist/{chunk-constants.e59013dc.js → chunk-constants.c8f1d38c.js} +1 -1
- package/dist/{chunk-defaults.9aa0ce42.js → chunk-defaults.43e746f3.js} +1 -1
- package/dist/{chunk-install-pkg.7dd40977.js → chunk-install-pkg.cbf3a38b.js} +1 -1
- package/dist/{chunk-integrations-globals.c040aaa9.js → chunk-integrations-globals.b4a20711.js} +5 -5
- package/dist/{chunk-runtime-chain.94cf66a4.js → chunk-runtime-chain.701cffd8.js} +6 -3
- package/dist/{chunk-runtime-mocker.7f4b1850.js → chunk-runtime-mocker.e802beae.js} +3 -3
- package/dist/{chunk-runtime-rpc.4b80b6bd.js → chunk-runtime-rpc.c47f2233.js} +1 -1
- package/dist/{chunk-utils-global.10dcdfa6.js → chunk-utils-global.a3293dce.js} +2 -2
- package/dist/{chunk-utils-timers.4800834c.js → chunk-utils-timers.b26e7c5c.js} +1 -1
- package/dist/{chunk-vite-node-externalize.6a2ab9c2.js → chunk-vite-node-externalize.1c19fc5e.js} +1392 -4063
- package/dist/{chunk-vite-node-utils.7f0053fb.js → chunk-vite-node-utils.b4debb0b.js} +1 -1
- package/dist/cli.js +9 -9
- package/dist/entry.js +6 -6
- package/dist/index.d.ts +2 -0
- package/dist/index.js +4 -4
- package/dist/node.d.ts +1 -0
- package/dist/node.js +10 -10
- package/dist/{vendor-index.ee829ed6.js → vendor-index.13468339.js} +3 -3
- package/dist/{vendor-index.87b2fc14.js → vendor-index.bd255bc8.js} +8 -8
- package/dist/worker.js +5 -5
- package/package.json +11 -11
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { promises } from 'fs';
|
|
2
|
-
import { c as createBirpc } from './chunk-vite-node-utils.
|
|
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.
|
|
13
|
-
import { r as interpretSourcePos, b as parseStacktrace } from './chunk-utils-timers.
|
|
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.
|
|
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.
|
|
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.
|
|
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,
|
|
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';
|
package/dist/{chunk-integrations-globals.c040aaa9.js → chunk-integrations-globals.b4a20711.js}
RENAMED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { g as globalApis } from './chunk-constants.
|
|
2
|
-
import { i as index } from './chunk-runtime-chain.
|
|
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.
|
|
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.
|
|
9
|
+
import './chunk-utils-timers.b26e7c5c.js';
|
|
10
10
|
import 'chai';
|
|
11
11
|
import './vendor-_commonjsHelpers.34b404ce.js';
|
|
12
|
-
import './chunk-runtime-rpc.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
5
|
+
import { d as distDir } from './chunk-constants.c8f1d38c.js';
|
|
6
6
|
|
|
7
7
|
var __defProp = Object.defineProperty;
|
|
8
8
|
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
@@ -377,14 +377,14 @@ 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.
|
|
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",
|
|
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.
|
|
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.
|
|
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;
|