vitest 0.12.8 → 0.12.9
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.9ccd19b5.js → chunk-api-setup.010a6158.js} +4 -4
- package/dist/{chunk-constants.3570739f.js → chunk-constants.9e9c5c75.js} +1 -1
- package/dist/{chunk-defaults.7d81a6ca.js → chunk-defaults.0fce304d.js} +1 -1
- package/dist/{chunk-install-pkg.fd8d1022.js → chunk-install-pkg.73b84ae1.js} +1 -1
- package/dist/{chunk-integrations-globals.23cc66c3.js → chunk-integrations-globals.fda74a73.js} +7 -7
- package/dist/{chunk-runtime-chain.5021a6b6.js → chunk-runtime-chain.67ecb3a0.js} +5 -5
- package/dist/{chunk-runtime-mocker.d26f8110.js → chunk-runtime-mocker.f99f69c3.js} +3 -3
- package/dist/{chunk-runtime-rpc.47bae3f9.js → chunk-runtime-rpc.5050afd6.js} +1 -1
- package/dist/{chunk-utils-global.2fab7e5c.js → chunk-utils-global.2529a727.js} +8 -2
- package/dist/{chunk-utils-timers.da6ac0a6.js → chunk-utils-timers.b1b3dfa6.js} +1 -1
- package/dist/{chunk-vite-node-externalize.fc385bba.js → chunk-vite-node-externalize.42b0363f.js} +25 -16
- package/dist/{chunk-vite-node-utils.46e2a803.js → chunk-vite-node-utils.317f59c6.js} +1 -1
- package/dist/cli.js +7 -7
- package/dist/entry.js +6 -6
- package/dist/index.js +4 -4
- package/dist/node.js +8 -8
- package/dist/{vendor-entry.ca05c118.js → vendor-entry.e4d01a65.js} +6 -6
- package/dist/{vendor-index.6c69a0a8.js → vendor-index.40be925a.js} +0 -0
- package/dist/worker.js +5 -5
- package/package.json +3 -3
|
@@ -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.317f59c6.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.9e9c5c75.js';
|
|
13
|
+
import { r as interpretSourcePos, b as parseStacktrace } from './chunk-utils-timers.b1b3dfa6.js';
|
|
14
14
|
import 'module';
|
|
15
15
|
import 'vm';
|
|
16
|
-
import './chunk-utils-global.
|
|
16
|
+
import './chunk-utils-global.2529a727.js';
|
|
17
17
|
import 'tty';
|
|
18
18
|
import 'local-pkg';
|
|
19
19
|
import 'path';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { fileURLToPath } from 'url';
|
|
2
|
-
import { h as resolve } from './chunk-utils-global.
|
|
2
|
+
import { h as resolve } from './chunk-utils-global.2529a727.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, h as resolve } from './chunk-utils-global.
|
|
4
|
+
import { t as toArray, h as resolve } from './chunk-utils-global.2529a727.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, g as getStream$1, c as crossSpawn$1, o as onetime$1 } from './vendor-index.
|
|
5
|
+
import { p as pathKey, s as signalExit, m as mergeStream$1, g as getStream$1, c as crossSpawn$1, o as onetime$1 } from './vendor-index.40be925a.js';
|
|
6
6
|
import require$$0$1 from 'os';
|
|
7
7
|
import './vendor-_commonjsHelpers.addc3445.js';
|
|
8
8
|
import 'assert';
|
package/dist/{chunk-integrations-globals.23cc66c3.js → chunk-integrations-globals.fda74a73.js}
RENAMED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { g as globalApis } from './chunk-constants.
|
|
2
|
-
import { i as index } from './vendor-entry.
|
|
1
|
+
import { g as globalApis } from './chunk-constants.9e9c5c75.js';
|
|
2
|
+
import { i as index } from './vendor-entry.e4d01a65.js';
|
|
3
3
|
import 'url';
|
|
4
|
-
import './chunk-utils-global.
|
|
4
|
+
import './chunk-utils-global.2529a727.js';
|
|
5
5
|
import 'tty';
|
|
6
6
|
import 'local-pkg';
|
|
7
7
|
import 'path';
|
|
8
8
|
import 'fs';
|
|
9
|
-
import './chunk-runtime-chain.
|
|
9
|
+
import './chunk-runtime-chain.67ecb3a0.js';
|
|
10
10
|
import 'chai';
|
|
11
11
|
import './vendor-_commonjsHelpers.addc3445.js';
|
|
12
|
-
import './chunk-runtime-rpc.
|
|
13
|
-
import './chunk-utils-timers.
|
|
12
|
+
import './chunk-runtime-rpc.5050afd6.js';
|
|
13
|
+
import './chunk-utils-timers.b1b3dfa6.js';
|
|
14
14
|
import './chunk-integrations-spy.bee66426.js';
|
|
15
15
|
import 'tinyspy';
|
|
16
16
|
import 'util';
|
|
17
|
-
import './chunk-defaults.
|
|
17
|
+
import './chunk-defaults.0fce304d.js';
|
|
18
18
|
import 'module';
|
|
19
19
|
|
|
20
20
|
function registerApiGlobally() {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import chai$1, { expect as expect$1, AssertionError, util } from 'chai';
|
|
2
2
|
import { c as commonjsGlobal } from './vendor-_commonjsHelpers.addc3445.js';
|
|
3
|
-
import { r as rpc } from './chunk-runtime-rpc.
|
|
4
|
-
import { i as isObject, j as join, d as dirname, g as getCallLastIndex, s as slash, a as getWorkerState, b as getNames, c as assertTypes, p as picocolors, n as noop, t as toArray, r as resetModules } from './chunk-utils-global.
|
|
3
|
+
import { r as rpc } from './chunk-runtime-rpc.5050afd6.js';
|
|
4
|
+
import { i as isObject, j as join, d as dirname, g as getCallLastIndex, s as slash, a as getWorkerState, b as getNames, c as assertTypes, p as picocolors, n as noop, t as toArray, r as resetModules } from './chunk-utils-global.2529a727.js';
|
|
5
5
|
import fs, { promises } from 'fs';
|
|
6
|
-
import { 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, s as stringify, m as matcherUtils, c as setTimeout, d as clearTimeout } from './chunk-utils-timers.
|
|
6
|
+
import { 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, s as stringify, m as matcherUtils, c as setTimeout, d as clearTimeout } from './chunk-utils-timers.b1b3dfa6.js';
|
|
7
7
|
import { i as isMockFunction, s as spyOn, f as fn, a as spies } from './chunk-integrations-spy.bee66426.js';
|
|
8
8
|
import require$$0, { format } from 'util';
|
|
9
9
|
|
|
@@ -1406,8 +1406,8 @@ Number of calls: ${picocolors.exports.bold(spy.mock.calls.length)}
|
|
|
1406
1406
|
const nthCallReturn = equals(callResult, value);
|
|
1407
1407
|
this.assert(nthCallReturn, `expected ${ordinalCall} "${spyName}" call to return #{exp}`, `expected ${ordinalCall} "${spyName}" call to not return #{exp}`, value, callResult);
|
|
1408
1408
|
});
|
|
1409
|
-
def("toSatisfy", function() {
|
|
1410
|
-
return this.be.satisfy;
|
|
1409
|
+
def("toSatisfy", function(matcher, message) {
|
|
1410
|
+
return this.be.satisfy(matcher, message);
|
|
1411
1411
|
});
|
|
1412
1412
|
utils.addProperty(chai.Assertion.prototype, "resolves", function __VITEST_RESOLVES__() {
|
|
1413
1413
|
utils.flag(this, "promise", "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.317f59c6.js';
|
|
2
2
|
import { normalizePath } from 'vite';
|
|
3
|
-
import { a as getWorkerState,
|
|
3
|
+
import { a as getWorkerState, E as isWindows, F as mergeSlashes, d as dirname, h as resolve, f as basename, G as getType, H as getAllProperties, s as slash } from './chunk-utils-global.2529a727.js';
|
|
4
4
|
import { existsSync, readdirSync } from 'fs';
|
|
5
|
-
import { d as distDir } from './chunk-constants.
|
|
5
|
+
import { d as distDir } from './chunk-constants.9e9c5c75.js';
|
|
6
6
|
|
|
7
7
|
var __defProp = Object.defineProperty;
|
|
8
8
|
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
@@ -433,7 +433,7 @@ async function ensurePackageInstalled(dependency, promptInstall = !process.env.C
|
|
|
433
433
|
message: picocolors.exports.reset(`Do you want to install ${picocolors.exports.green(dependency)}?`)
|
|
434
434
|
});
|
|
435
435
|
if (install) {
|
|
436
|
-
await (await import('./chunk-install-pkg.
|
|
436
|
+
await (await import('./chunk-install-pkg.73b84ae1.js')).installPackage(dependency, { dev: true });
|
|
437
437
|
process.stderr.write(picocolors.exports.yellow(`
|
|
438
438
|
Package ${dependency} installed, re-run the command to start.
|
|
439
439
|
`));
|
|
@@ -470,5 +470,11 @@ function getCallLastIndex(code) {
|
|
|
470
470
|
}
|
|
471
471
|
return null;
|
|
472
472
|
}
|
|
473
|
+
class AggregateErrorPonyfill extends Error {
|
|
474
|
+
constructor(errors, message = "") {
|
|
475
|
+
super(message);
|
|
476
|
+
this.errors = [...errors];
|
|
477
|
+
}
|
|
478
|
+
}
|
|
473
479
|
|
|
474
|
-
export {
|
|
480
|
+
export { AggregateErrorPonyfill as A, ensurePackageInstalled as B, stdout as C, extname as D, isWindows as E, mergeSlashes as F, getType as G, getAllProperties as H, clone as I, partitionSuiteChildren as J, hasTests as K, getWorkerState as a, getNames as b, assertTypes as c, dirname as d, notNullish as e, basename as f, getCallLastIndex as g, resolve as h, isObject as i, join as j, isAbsolute as k, relative as l, isNode as m, noop as n, getTests as o, picocolors as p, getFullName as q, resetModules as r, slash as s, toArray as t, hasFailed as u, hasFailedSnapshot as v, getSuites as w, normalize as x, deepMerge as y, toNamespacedPath as z };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { s as slash, e as notNullish, p as picocolors } from './chunk-utils-global.
|
|
1
|
+
import { s as slash, e as notNullish, p as picocolors } from './chunk-utils-global.2529a727.js';
|
|
2
2
|
|
|
3
3
|
const setTimeout$1 = globalThis.setTimeout;
|
|
4
4
|
const setInterval = globalThis.setInterval;
|
package/dist/{chunk-vite-node-externalize.fc385bba.js → chunk-vite-node-externalize.42b0363f.js}
RENAMED
|
@@ -2,30 +2,30 @@ import { Buffer } from 'buffer';
|
|
|
2
2
|
import path$a from 'path';
|
|
3
3
|
import childProcess from 'child_process';
|
|
4
4
|
import process$1 from 'process';
|
|
5
|
-
import { s as signalExit, m as mergeStream, g as getStream, c as crossSpawn, o as onetime$1 } from './vendor-index.
|
|
5
|
+
import { s as signalExit, m as mergeStream, g as getStream, c as crossSpawn, o as onetime$1 } from './vendor-index.40be925a.js';
|
|
6
6
|
import url, { fileURLToPath, pathToFileURL } from 'url';
|
|
7
7
|
import require$$0, { constants as constants$5, cpus, hostname } from 'os';
|
|
8
|
-
import { j as join, f as basename, d as dirname, h as resolve, p as picocolors, s as slash$2, k as isAbsolute, l as relative, m as isNode, o as getTests, q as getFullName, u as hasFailed, v as hasFailedSnapshot, w as getSuites, t as toArray, x as normalize, n as noop$1, y as deepMerge, z as toNamespacedPath, g as getCallLastIndex, e as notNullish,
|
|
8
|
+
import { j as join, f as basename, d as dirname, h as resolve, A as AggregateErrorPonyfill, p as picocolors, s as slash$2, k as isAbsolute, l as relative, m as isNode, o as getTests, q as getFullName, u as hasFailed, v as hasFailedSnapshot, w as getSuites, t as toArray, x as normalize, n as noop$1, y as deepMerge, z as toNamespacedPath, g as getCallLastIndex, e as notNullish, B as ensurePackageInstalled, C as stdout } from './chunk-utils-global.2529a727.js';
|
|
9
9
|
import { createServer, mergeConfig } from 'vite';
|
|
10
10
|
import fs$8, { promises, existsSync, readFileSync } from 'fs';
|
|
11
|
-
import { d as distDir, a as defaultPort, c as configFiles } from './chunk-constants.
|
|
11
|
+
import { d as distDir, a as defaultPort, c as configFiles } from './chunk-constants.9e9c5c75.js';
|
|
12
12
|
import readline from 'readline';
|
|
13
13
|
import require$$0$1 from 'util';
|
|
14
14
|
import require$$0$2 from 'stream';
|
|
15
15
|
import require$$2 from 'events';
|
|
16
16
|
import { c as commonjsGlobal } from './vendor-_commonjsHelpers.addc3445.js';
|
|
17
|
-
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.
|
|
17
|
+
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.317f59c6.js';
|
|
18
18
|
import createDebug from 'debug';
|
|
19
|
-
import { c as configDefaults, r as resolveC8Options, a as cleanCoverage, b as reportCoverage } from './chunk-defaults.
|
|
19
|
+
import { c as configDefaults, r as resolveC8Options, a as cleanCoverage, b as reportCoverage } from './chunk-defaults.0fce304d.js';
|
|
20
20
|
import { MessageChannel } from 'worker_threads';
|
|
21
21
|
import { Tinypool } from 'tinypool';
|
|
22
22
|
import { performance } from 'perf_hooks';
|
|
23
|
-
import { e as stripAnsi, h as stringWidth, i as ansiStyles, j as sliceAnsi, k as setInterval, o as clearInterval, q as cliTruncate, c as setTimeout$1, b as parseStacktrace, r as interpretSourcePos, s as stringify$5, u as unifiedDiff, a as posToNumber, l as lineSplitRE, d as clearTimeout$1 } from './chunk-utils-timers.
|
|
23
|
+
import { e as stripAnsi, h as stringWidth, i as ansiStyles, j as sliceAnsi, k as setInterval, o as clearInterval, q as cliTruncate, c as setTimeout$1, b as parseStacktrace, r as interpretSourcePos, s as stringify$5, u as unifiedDiff, a as posToNumber, l as lineSplitRE, d as clearTimeout$1 } from './chunk-utils-timers.b1b3dfa6.js';
|
|
24
24
|
import { resolveModule } from 'local-pkg';
|
|
25
25
|
import MagicString from './chunk-magic-string.41232190.js';
|
|
26
26
|
import { p as prompts } from './vendor-index.405e58ef.js';
|
|
27
27
|
|
|
28
|
-
var version = "0.12.
|
|
28
|
+
var version = "0.12.9";
|
|
29
29
|
|
|
30
30
|
function stripFinalNewline(input) {
|
|
31
31
|
const LF = typeof input === 'string' ? '\n' : '\n'.charCodeAt();
|
|
@@ -8198,9 +8198,12 @@ function createFakePool(ctx) {
|
|
|
8198
8198
|
invalidates,
|
|
8199
8199
|
id: 1
|
|
8200
8200
|
};
|
|
8201
|
-
|
|
8202
|
-
|
|
8203
|
-
|
|
8201
|
+
try {
|
|
8202
|
+
await worker[name](data, { transferList: [workerPort] });
|
|
8203
|
+
} finally {
|
|
8204
|
+
port.close();
|
|
8205
|
+
workerPort.close();
|
|
8206
|
+
}
|
|
8204
8207
|
};
|
|
8205
8208
|
};
|
|
8206
8209
|
return {
|
|
@@ -8226,7 +8229,7 @@ function createWorkerPool(ctx) {
|
|
|
8226
8229
|
return async (files, invalidates) => {
|
|
8227
8230
|
let id = 0;
|
|
8228
8231
|
const config = ctx.getSerializableConfig();
|
|
8229
|
-
await Promise.
|
|
8232
|
+
const results = await Promise.allSettled(files.map(async (file) => {
|
|
8230
8233
|
const { workerPort, port } = createChannel(ctx);
|
|
8231
8234
|
const data = {
|
|
8232
8235
|
port: workerPort,
|
|
@@ -8235,10 +8238,16 @@ function createWorkerPool(ctx) {
|
|
|
8235
8238
|
invalidates,
|
|
8236
8239
|
id: ++id
|
|
8237
8240
|
};
|
|
8238
|
-
|
|
8239
|
-
|
|
8240
|
-
|
|
8241
|
+
try {
|
|
8242
|
+
await pool.run(data, { transferList: [workerPort], name });
|
|
8243
|
+
} finally {
|
|
8244
|
+
port.close();
|
|
8245
|
+
workerPort.close();
|
|
8246
|
+
}
|
|
8241
8247
|
}));
|
|
8248
|
+
const errors = results.filter((r) => r.status === "rejected").map((r) => r.reason);
|
|
8249
|
+
if (errors.length > 0)
|
|
8250
|
+
throw new AggregateErrorPonyfill(errors, "Errors occurred while running tests. For more information, see serialized error.");
|
|
8242
8251
|
};
|
|
8243
8252
|
};
|
|
8244
8253
|
return {
|
|
@@ -10029,7 +10038,7 @@ function resolveConfig(options, viteConfig) {
|
|
|
10029
10038
|
resolved.maxThreads = parseInt(process.env.VITEST_MAX_THREADS);
|
|
10030
10039
|
if (process.env.VITEST_MIN_THREADS)
|
|
10031
10040
|
resolved.minThreads = parseInt(process.env.VITEST_MIN_THREADS);
|
|
10032
|
-
resolved.setupFiles = toArray(resolved.setupFiles || []).map((file) => normalize(resolveModule(file, { paths: [resolved.root] })));
|
|
10041
|
+
resolved.setupFiles = toArray(resolved.setupFiles || []).map((file) => normalize(resolveModule(file, { paths: [resolved.root] }) ?? resolve(resolved.root, file)));
|
|
10033
10042
|
resolved.api = resolveApiConfig(options);
|
|
10034
10043
|
if (options.related)
|
|
10035
10044
|
resolved.related = toArray(options.related).map((file) => resolve(resolved.root, file));
|
|
@@ -10958,7 +10967,7 @@ async function VitestPlugin(options = {}, ctx = new Vitest()) {
|
|
|
10958
10967
|
await ctx.setServer(options, server);
|
|
10959
10968
|
haveStarted = true;
|
|
10960
10969
|
if (options.api && options.watch)
|
|
10961
|
-
(await import('./chunk-api-setup.
|
|
10970
|
+
(await import('./chunk-api-setup.010a6158.js')).setup(ctx);
|
|
10962
10971
|
if (!options.watch)
|
|
10963
10972
|
await server.watcher.close();
|
|
10964
10973
|
}
|
|
@@ -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 { k as isAbsolute$2, h as resolve, j as join$2,
|
|
4
|
+
import { k as isAbsolute$2, h as resolve, j as join$2, D as extname$2, d as dirname$2 } from './chunk-utils-global.2529a727.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,13 +1,13 @@
|
|
|
1
1
|
import { EventEmitter } from 'events';
|
|
2
|
-
import { p as picocolors } from './chunk-utils-global.
|
|
3
|
-
import { v as version, s as startVitest, d as divider } from './chunk-vite-node-externalize.
|
|
2
|
+
import { p as picocolors } from './chunk-utils-global.2529a727.js';
|
|
3
|
+
import { v as version, s as startVitest, d as divider } from './chunk-vite-node-externalize.42b0363f.js';
|
|
4
4
|
import 'tty';
|
|
5
5
|
import 'local-pkg';
|
|
6
6
|
import 'path';
|
|
7
7
|
import 'buffer';
|
|
8
8
|
import 'child_process';
|
|
9
9
|
import 'process';
|
|
10
|
-
import './vendor-index.
|
|
10
|
+
import './vendor-index.40be925a.js';
|
|
11
11
|
import './vendor-_commonjsHelpers.addc3445.js';
|
|
12
12
|
import 'fs';
|
|
13
13
|
import 'assert';
|
|
@@ -16,17 +16,17 @@ import 'util';
|
|
|
16
16
|
import 'url';
|
|
17
17
|
import 'os';
|
|
18
18
|
import 'vite';
|
|
19
|
-
import './chunk-constants.
|
|
19
|
+
import './chunk-constants.9e9c5c75.js';
|
|
20
20
|
import 'readline';
|
|
21
|
-
import './chunk-vite-node-utils.
|
|
21
|
+
import './chunk-vite-node-utils.317f59c6.js';
|
|
22
22
|
import 'module';
|
|
23
23
|
import 'vm';
|
|
24
24
|
import 'debug';
|
|
25
|
-
import './chunk-defaults.
|
|
25
|
+
import './chunk-defaults.0fce304d.js';
|
|
26
26
|
import 'worker_threads';
|
|
27
27
|
import 'tinypool';
|
|
28
28
|
import 'perf_hooks';
|
|
29
|
-
import './chunk-utils-timers.
|
|
29
|
+
import './chunk-utils-timers.b1b3dfa6.js';
|
|
30
30
|
import './chunk-magic-string.41232190.js';
|
|
31
31
|
import './vendor-index.405e58ef.js';
|
|
32
32
|
|
package/dist/entry.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
export { r as run } from './vendor-entry.
|
|
1
|
+
export { r as run } from './vendor-entry.e4d01a65.js';
|
|
2
2
|
import 'fs';
|
|
3
|
-
import './chunk-utils-global.
|
|
3
|
+
import './chunk-utils-global.2529a727.js';
|
|
4
4
|
import 'tty';
|
|
5
5
|
import 'local-pkg';
|
|
6
6
|
import 'path';
|
|
7
|
-
import './chunk-runtime-chain.
|
|
7
|
+
import './chunk-runtime-chain.67ecb3a0.js';
|
|
8
8
|
import 'chai';
|
|
9
9
|
import './vendor-_commonjsHelpers.addc3445.js';
|
|
10
|
-
import './chunk-runtime-rpc.
|
|
11
|
-
import './chunk-utils-timers.
|
|
10
|
+
import './chunk-runtime-rpc.5050afd6.js';
|
|
11
|
+
import './chunk-utils-timers.b1b3dfa6.js';
|
|
12
12
|
import './chunk-integrations-spy.bee66426.js';
|
|
13
13
|
import 'tinyspy';
|
|
14
14
|
import 'util';
|
|
15
|
-
import './chunk-defaults.
|
|
15
|
+
import './chunk-defaults.0fce304d.js';
|
|
16
16
|
import 'module';
|
|
17
17
|
import 'url';
|
package/dist/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
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.
|
|
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.67ecb3a0.js';
|
|
2
2
|
export { assert, default as chai, should } from 'chai';
|
|
3
3
|
import './vendor-_commonjsHelpers.addc3445.js';
|
|
4
|
-
import './chunk-runtime-rpc.
|
|
5
|
-
import './chunk-utils-global.
|
|
4
|
+
import './chunk-runtime-rpc.5050afd6.js';
|
|
5
|
+
import './chunk-utils-global.2529a727.js';
|
|
6
6
|
import 'tty';
|
|
7
7
|
import 'local-pkg';
|
|
8
8
|
import 'path';
|
|
9
9
|
import 'fs';
|
|
10
|
-
import './chunk-utils-timers.
|
|
10
|
+
import './chunk-utils-timers.b1b3dfa6.js';
|
|
11
11
|
import './chunk-integrations-spy.bee66426.js';
|
|
12
12
|
import 'tinyspy';
|
|
13
13
|
import 'util';
|
package/dist/node.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { V as VitestPlugin, c as createVitest, s as startVitest } from './chunk-vite-node-externalize.
|
|
2
|
-
export { V as VitestRunner } from './chunk-runtime-mocker.
|
|
1
|
+
export { V as VitestPlugin, c as createVitest, s as startVitest } from './chunk-vite-node-externalize.42b0363f.js';
|
|
2
|
+
export { V as VitestRunner } from './chunk-runtime-mocker.f99f69c3.js';
|
|
3
3
|
import 'buffer';
|
|
4
4
|
import 'path';
|
|
5
5
|
import 'child_process';
|
|
6
6
|
import 'process';
|
|
7
|
-
import './vendor-index.
|
|
7
|
+
import './vendor-index.40be925a.js';
|
|
8
8
|
import './vendor-_commonjsHelpers.addc3445.js';
|
|
9
9
|
import 'fs';
|
|
10
10
|
import 'assert';
|
|
@@ -13,20 +13,20 @@ import 'stream';
|
|
|
13
13
|
import 'util';
|
|
14
14
|
import 'url';
|
|
15
15
|
import 'os';
|
|
16
|
-
import './chunk-utils-global.
|
|
16
|
+
import './chunk-utils-global.2529a727.js';
|
|
17
17
|
import 'tty';
|
|
18
18
|
import 'local-pkg';
|
|
19
19
|
import 'vite';
|
|
20
|
-
import './chunk-constants.
|
|
20
|
+
import './chunk-constants.9e9c5c75.js';
|
|
21
21
|
import 'readline';
|
|
22
|
-
import './chunk-vite-node-utils.
|
|
22
|
+
import './chunk-vite-node-utils.317f59c6.js';
|
|
23
23
|
import 'module';
|
|
24
24
|
import 'vm';
|
|
25
25
|
import 'debug';
|
|
26
|
-
import './chunk-defaults.
|
|
26
|
+
import './chunk-defaults.0fce304d.js';
|
|
27
27
|
import 'worker_threads';
|
|
28
28
|
import 'tinypool';
|
|
29
29
|
import 'perf_hooks';
|
|
30
|
-
import './chunk-utils-timers.
|
|
30
|
+
import './chunk-utils-timers.b1b3dfa6.js';
|
|
31
31
|
import './chunk-magic-string.41232190.js';
|
|
32
32
|
import './vendor-index.405e58ef.js';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { promises } from 'fs';
|
|
2
|
-
import { m as isNode, a as getWorkerState, t as toArray,
|
|
2
|
+
import { m as isNode, a as getWorkerState, t as toArray, I as clone, G as getType, l as relative, J as partitionSuiteChildren, K as hasTests, u as hasFailed, q as getFullName, r as resetModules } from './chunk-utils-global.2529a727.js';
|
|
3
3
|
import { importModule } from 'local-pkg';
|
|
4
|
-
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.
|
|
4
|
+
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.67ecb3a0.js';
|
|
5
5
|
import chai, { assert, should, util } from 'chai';
|
|
6
|
-
import { r as rpc } from './chunk-runtime-rpc.
|
|
7
|
-
import { d as clearTimeout, c as setTimeout, s as stringify } from './chunk-utils-timers.
|
|
8
|
-
import { t as takeCoverage } from './chunk-defaults.
|
|
6
|
+
import { r as rpc } from './chunk-runtime-rpc.5050afd6.js';
|
|
7
|
+
import { d as clearTimeout, c as setTimeout, s as stringify } from './chunk-utils-timers.b1b3dfa6.js';
|
|
8
|
+
import { t as takeCoverage } from './chunk-defaults.0fce304d.js';
|
|
9
9
|
import { format } from 'util';
|
|
10
10
|
|
|
11
11
|
var index = /*#__PURE__*/Object.freeze({
|
|
@@ -435,7 +435,7 @@ async function setupGlobalEnv(config) {
|
|
|
435
435
|
if (isNode)
|
|
436
436
|
await setupConsoleLogSpy();
|
|
437
437
|
if (config.globals)
|
|
438
|
-
(await import('./chunk-integrations-globals.
|
|
438
|
+
(await import('./chunk-integrations-globals.fda74a73.js')).registerApiGlobally();
|
|
439
439
|
}
|
|
440
440
|
function setupDefines(defines) {
|
|
441
441
|
for (const key in defines)
|
|
File without changes
|
package/dist/worker.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { h as resolve, a as getWorkerState } from './chunk-utils-global.
|
|
2
|
-
import { c as createBirpc, M as ModuleCacheMap } from './chunk-vite-node-utils.
|
|
3
|
-
import { d as distDir } from './chunk-constants.
|
|
4
|
-
import { e as executeInViteNode } from './chunk-runtime-mocker.
|
|
5
|
-
import { r as rpc } from './chunk-runtime-rpc.
|
|
1
|
+
import { h as resolve, a as getWorkerState } from './chunk-utils-global.2529a727.js';
|
|
2
|
+
import { c as createBirpc, M as ModuleCacheMap } from './chunk-vite-node-utils.317f59c6.js';
|
|
3
|
+
import { d as distDir } from './chunk-constants.9e9c5c75.js';
|
|
4
|
+
import { e as executeInViteNode } from './chunk-runtime-mocker.f99f69c3.js';
|
|
5
|
+
import { r as rpc } from './chunk-runtime-rpc.5050afd6.js';
|
|
6
6
|
import 'tty';
|
|
7
7
|
import 'local-pkg';
|
|
8
8
|
import 'path';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vitest",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.12.
|
|
4
|
+
"version": "0.12.9",
|
|
5
5
|
"description": "A blazing fast unit test framework powered by Vite",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"vite",
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
"@types/node": "^17.0.33",
|
|
95
95
|
"@types/prompts": "^2.4.0",
|
|
96
96
|
"@types/sinonjs__fake-timers": "^8.1.2",
|
|
97
|
-
"@vitest/ui": "0.12.
|
|
97
|
+
"@vitest/ui": "0.12.9",
|
|
98
98
|
"birpc": "^0.2.2",
|
|
99
99
|
"c8": "^7.11.2",
|
|
100
100
|
"cac": "^6.7.12",
|
|
@@ -121,7 +121,7 @@
|
|
|
121
121
|
"source-map-js": "^1.0.2",
|
|
122
122
|
"strip-ansi": "^7.0.1",
|
|
123
123
|
"typescript": "^4.6.4",
|
|
124
|
-
"vite-node": "0.12.
|
|
124
|
+
"vite-node": "0.12.9",
|
|
125
125
|
"ws": "^8.6.0"
|
|
126
126
|
},
|
|
127
127
|
"engines": {
|