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.
Files changed (30) hide show
  1. package/LICENSE.md +7 -0
  2. package/dist/{chunk-api-setup.7290422e.js → chunk-api-setup.d70fc960.js} +5 -5
  3. package/dist/{chunk-constants.e59013dc.js → chunk-constants.d540b1d1.js} +1 -1
  4. package/dist/{chunk-defaults.9aa0ce42.js → chunk-defaults.04d5d90b.js} +1 -1
  5. package/dist/{chunk-install-pkg.7dd40977.js → chunk-install-pkg.73b84ae1.js} +113 -115
  6. package/dist/chunk-integrations-globals.d2c09cd2.js +29 -0
  7. package/dist/chunk-integrations-spy.f036df6f.js +102 -0
  8. package/dist/{chunk-runtime-chain.94cf66a4.js → chunk-runtime-chain.f863f182.js} +934 -897
  9. package/dist/{chunk-runtime-mocker.7f4b1850.js → chunk-runtime-mocker.111ac858.js} +3 -3
  10. package/dist/{chunk-runtime-rpc.4b80b6bd.js → chunk-runtime-rpc.8f648236.js} +1 -1
  11. package/dist/{chunk-utils-global.10dcdfa6.js → chunk-utils-global.37a7c822.js} +8 -10
  12. package/dist/{chunk-utils-timers.4800834c.js → chunk-utils-timers.12bc05d1.js} +1404 -1057
  13. package/dist/{chunk-vite-node-externalize.ddf2a6fb.js → chunk-vite-node-externalize.5c678054.js} +1773 -4417
  14. package/dist/{chunk-vite-node-utils.7f0053fb.js → chunk-vite-node-utils.33447cc0.js} +71 -71
  15. package/dist/cli.js +13 -13
  16. package/dist/entry.js +15 -919
  17. package/dist/index.d.ts +92 -25
  18. package/dist/index.js +8 -8
  19. package/dist/node.d.ts +25 -7
  20. package/dist/node.js +12 -12
  21. package/dist/spy.js +2 -102
  22. package/dist/vendor-_commonjsHelpers.addc3445.js +3 -0
  23. package/dist/vendor-entry.369fd6c9.js +949 -0
  24. package/dist/vendor-index.405e58ef.js +6291 -0
  25. package/dist/{vendor-index.87b2fc14.js → vendor-index.40be925a.js} +167 -152
  26. package/dist/worker.js +6 -6
  27. package/package.json +11 -11
  28. package/dist/chunk-integrations-globals.c040aaa9.js +0 -23
  29. package/dist/vendor-_commonjsHelpers.34b404ce.js +0 -7
  30. 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.7f0053fb.js';
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 { 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.10dcdfa6.js';
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.e59013dc.js';
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,4 +1,4 @@
1
- import { g as getWorkerState } from './chunk-utils-global.10dcdfa6.js';
1
+ import { b as getWorkerState } from './chunk-utils-global.37a7c822.js';
2
2
 
3
3
  const rpc = () => {
4
4
  return getWorkerState().rpc;
@@ -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(c.dim(" > "));
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(c.red(`${c.inverse(c.red(" MISSING DEP "))} Can not find dependency '${dependency}'
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.ee829ed6.js').then(function (n) { return n.i; });
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: c.reset(`Do you want to install ${c.green(dependency)}?`)
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.7dd40977.js')).installPackage(dependency, { dev: true });
388
- process.stderr.write(c.yellow(`
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, 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 };
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 };