vitest 0.9.0 → 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.
- package/dist/{chunk-api-setup.e8071f5b.js → chunk-api-setup.d764f144.js} +4 -4
- package/dist/{chunk-constants.596ee4d5.js → chunk-constants.a6ce1057.js} +1 -1
- package/dist/{chunk-defaults.731639a8.js → chunk-defaults.aecec9d4.js} +1 -1
- package/dist/{chunk-integrations-globals.d1145578.js → chunk-integrations-globals.5686bfb8.js} +5 -5
- package/dist/{chunk-runtime-chain.a5280da7.js → chunk-runtime-chain.e17b859e.js} +155 -2578
- package/dist/{chunk-runtime-mocker.ff55be7d.js → chunk-runtime-mocker.d325f149.js} +6 -4
- package/dist/{chunk-runtime-rpc.3f693817.js → chunk-runtime-rpc.9e81f15b.js} +1 -1
- package/dist/{chunk-utils-global.35d3b35d.js → chunk-utils-global.46331799.js} +2 -2
- package/dist/{chunk-utils-timers.73950dcb.js → chunk-utils-timers.6cfeb494.js} +2433 -10
- package/dist/{chunk-vite-node-externalize.2004587d.js → chunk-vite-node-externalize.9aaddc2d.js} +51 -37
- package/dist/{chunk-vite-node-utils.5fa30ee7.js → chunk-vite-node-utils.3400d522.js} +1 -1
- package/dist/cli.js +9 -9
- package/dist/entry.js +6 -6
- package/dist/index.d.ts +9 -6
- package/dist/index.js +4 -4
- package/dist/node.d.ts +4 -1
- package/dist/node.js +9 -9
- package/dist/{vendor-index.ee829ed6.js → vendor-index.13468339.js} +3 -3
- package/dist/worker.js +5 -5
- package/package.json +4 -4
|
@@ -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.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 } 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.46331799.js';
|
|
4
4
|
import { existsSync, readdirSync } from 'fs';
|
|
5
|
-
import { d as distDir } from './chunk-constants.
|
|
5
|
+
import { d as distDir } from './chunk-constants.a6ce1057.js';
|
|
6
6
|
|
|
7
7
|
var __defProp = Object.defineProperty;
|
|
8
8
|
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
@@ -30,7 +30,9 @@ function getAllProperties(obj) {
|
|
|
30
30
|
if (curr === Object.prototype || curr === Function.prototype || curr === RegExp.prototype)
|
|
31
31
|
break;
|
|
32
32
|
const props = Object.getOwnPropertyNames(curr);
|
|
33
|
+
const symbs = Object.getOwnPropertySymbols(curr);
|
|
33
34
|
props.forEach((prop) => allProps.add(prop));
|
|
35
|
+
symbs.forEach((symb) => allProps.add(symb));
|
|
34
36
|
} while (curr = Object.getPrototypeOf(curr));
|
|
35
37
|
return Array.from(allProps);
|
|
36
38
|
}
|
|
@@ -184,7 +186,7 @@ const _VitestMocker = class {
|
|
|
184
186
|
async ensureSpy() {
|
|
185
187
|
if (_VitestMocker.spyModule)
|
|
186
188
|
return;
|
|
187
|
-
_VitestMocker.spyModule = await this.request(resolve(distDir, "spy.js"));
|
|
189
|
+
_VitestMocker.spyModule = await this.request(`/@fs/${slash(resolve(distDir, "spy.js"))}`);
|
|
188
190
|
}
|
|
189
191
|
async requestWithMock(dep) {
|
|
190
192
|
var _a;
|
|
@@ -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.
|
|
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",
|
|
@@ -422,4 +422,4 @@ function getCallLastIndex(code) {
|
|
|
422
422
|
return null;
|
|
423
423
|
}
|
|
424
424
|
|
|
425
|
-
export { extname as A, isWindows as B, mergeSlashes as C, partitionSuiteChildren as D, hasTests as E, index as a, getCallLastIndex as b, getNames as c,
|
|
425
|
+
export { extname as A, isWindows as B, mergeSlashes as C, partitionSuiteChildren as D, hasTests as E, index as a, getCallLastIndex as b, getNames as c, assertTypes as d, c as e, notNullish as f, getWorkerState as g, basename as h, isObject as i, join as j, dirname as k, isAbsolute as l, relative as m, noop as n, getTests as o, getFullName as p, hasFailed as q, resetModules as r, slash as s, toArray as t, hasFailedSnapshot as u, getSuites as v, resolve as w, deepMerge as x, toNamespacedPath as y, ensurePackageInstalled as z };
|