vitest 0.9.2 → 0.10.0
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/LICENSE.md +7 -0
- package/dist/{chunk-api-setup.7290422e.js → chunk-api-setup.d70fc960.js} +5 -5
- package/dist/{chunk-constants.e59013dc.js → chunk-constants.d540b1d1.js} +1 -1
- package/dist/{chunk-defaults.9aa0ce42.js → chunk-defaults.04d5d90b.js} +1 -1
- package/dist/{chunk-install-pkg.7dd40977.js → chunk-install-pkg.73b84ae1.js} +113 -115
- package/dist/chunk-integrations-globals.d2c09cd2.js +29 -0
- package/dist/chunk-integrations-spy.f036df6f.js +102 -0
- package/dist/{chunk-runtime-chain.94cf66a4.js → chunk-runtime-chain.f863f182.js} +934 -897
- package/dist/{chunk-runtime-mocker.7f4b1850.js → chunk-runtime-mocker.111ac858.js} +3 -3
- package/dist/{chunk-runtime-rpc.4b80b6bd.js → chunk-runtime-rpc.8f648236.js} +1 -1
- package/dist/{chunk-utils-global.10dcdfa6.js → chunk-utils-global.37a7c822.js} +8 -10
- package/dist/{chunk-utils-timers.4800834c.js → chunk-utils-timers.12bc05d1.js} +1404 -1057
- package/dist/{chunk-vite-node-externalize.ddf2a6fb.js → chunk-vite-node-externalize.5c678054.js} +1773 -4417
- package/dist/{chunk-vite-node-utils.7f0053fb.js → chunk-vite-node-utils.33447cc0.js} +71 -71
- package/dist/cli.js +13 -13
- package/dist/entry.js +15 -919
- package/dist/index.d.ts +92 -25
- package/dist/index.js +8 -8
- package/dist/node.d.ts +25 -7
- package/dist/node.js +12 -12
- package/dist/spy.js +2 -102
- package/dist/vendor-_commonjsHelpers.addc3445.js +3 -0
- package/dist/vendor-entry.369fd6c9.js +949 -0
- package/dist/vendor-index.405e58ef.js +6291 -0
- package/dist/{vendor-index.87b2fc14.js → vendor-index.40be925a.js} +167 -152
- package/dist/worker.js +6 -6
- package/package.json +11 -11
- package/dist/chunk-integrations-globals.c040aaa9.js +0 -23
- package/dist/vendor-_commonjsHelpers.34b404ce.js +0 -7
- package/dist/vendor-index.ee829ed6.js +0 -5707
|
@@ -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.33447cc0.js';
|
|
2
2
|
import { normalizePath } from 'vite';
|
|
3
|
-
import {
|
|
3
|
+
import { b as getWorkerState, B as isWindows, C as mergeSlashes, h as dirname, f as basename, k as resolve, s as slash } from './chunk-utils-global.37a7c822.js';
|
|
4
4
|
import { existsSync, readdirSync } from 'fs';
|
|
5
|
-
import { d as distDir } from './chunk-constants.
|
|
5
|
+
import { d as distDir } from './chunk-constants.d540b1d1.js';
|
|
6
6
|
|
|
7
7
|
var __defProp = Object.defineProperty;
|
|
8
8
|
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import path from 'path';
|
|
2
1
|
import require$$0 from 'tty';
|
|
3
2
|
import { isPackageExists } from 'local-pkg';
|
|
3
|
+
import path from 'path';
|
|
4
4
|
|
|
5
5
|
var picocolors = {exports: {}};
|
|
6
6
|
|
|
@@ -63,8 +63,6 @@ let createColors = (enabled = isColorSupported) => ({
|
|
|
63
63
|
picocolors.exports = createColors();
|
|
64
64
|
picocolors.exports.createColors = createColors;
|
|
65
65
|
|
|
66
|
-
var c = picocolors.exports;
|
|
67
|
-
|
|
68
66
|
function normalizeWindowsPath(input = "") {
|
|
69
67
|
if (!input.includes("\\")) {
|
|
70
68
|
return input;
|
|
@@ -367,25 +365,25 @@ function resetModules() {
|
|
|
367
365
|
});
|
|
368
366
|
}
|
|
369
367
|
function getFullName(task) {
|
|
370
|
-
return getNames(task).join(
|
|
368
|
+
return getNames(task).join(picocolors.exports.dim(" > "));
|
|
371
369
|
}
|
|
372
370
|
async function ensurePackageInstalled(dependency, promptInstall = !process.env.CI && process.stdout.isTTY) {
|
|
373
371
|
if (isPackageExists(dependency))
|
|
374
372
|
return true;
|
|
375
|
-
process.stderr.write(
|
|
373
|
+
process.stderr.write(picocolors.exports.red(`${picocolors.exports.inverse(picocolors.exports.red(" MISSING DEP "))} Can not find dependency '${dependency}'
|
|
376
374
|
|
|
377
375
|
`));
|
|
378
376
|
if (!promptInstall)
|
|
379
377
|
return false;
|
|
380
|
-
const prompts = await import('./vendor-index.
|
|
378
|
+
const prompts = await import('./vendor-index.405e58ef.js').then(function (n) { return n.i; });
|
|
381
379
|
const { install } = await prompts.prompt({
|
|
382
380
|
type: "confirm",
|
|
383
381
|
name: "install",
|
|
384
|
-
message:
|
|
382
|
+
message: picocolors.exports.reset(`Do you want to install ${picocolors.exports.green(dependency)}?`)
|
|
385
383
|
});
|
|
386
384
|
if (install) {
|
|
387
|
-
await (await import('./chunk-install-pkg.
|
|
388
|
-
process.stderr.write(
|
|
385
|
+
await (await import('./chunk-install-pkg.73b84ae1.js')).installPackage(dependency, { dev: true });
|
|
386
|
+
process.stderr.write(picocolors.exports.yellow(`
|
|
389
387
|
Package ${dependency} installed, re-run the command to start.
|
|
390
388
|
`));
|
|
391
389
|
process.exit(1);
|
|
@@ -422,4 +420,4 @@ function getCallLastIndex(code) {
|
|
|
422
420
|
return null;
|
|
423
421
|
}
|
|
424
422
|
|
|
425
|
-
export { extname as A, isWindows as B, mergeSlashes as C, partitionSuiteChildren as D, hasTests as E, index as a,
|
|
423
|
+
export { extname as A, isWindows as B, mergeSlashes as C, partitionSuiteChildren as D, hasTests as E, index as a, getWorkerState as b, getNames as c, assertTypes as d, notNullish as e, basename as f, getCallLastIndex as g, dirname as h, isObject as i, join as j, resolve as k, isAbsolute as l, relative 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, deepMerge as x, toNamespacedPath as y, ensurePackageInstalled as z };
|