vitest 1.5.0 → 1.5.2

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 (36) hide show
  1. package/dist/browser.d.ts +2 -1
  2. package/dist/browser.js +1 -1
  3. package/dist/chunks/{integrations-globals.2J_Aii2q.js → integrations-globals.k0N5-dd1.js} +2 -2
  4. package/dist/chunks/{runtime-runBaseTests.3fVSWBsC.js → runtime-runBaseTests.-x-nNuJ_.js} +4 -4
  5. package/dist/cli.js +2 -60
  6. package/dist/config.d.ts +2 -1
  7. package/dist/coverage.d.ts +4 -2
  8. package/dist/coverage.js +2 -2
  9. package/dist/environments.d.ts +2 -1
  10. package/dist/execute.d.ts +2 -1
  11. package/dist/index.d.ts +5 -4
  12. package/dist/index.js +3 -3
  13. package/dist/node.d.ts +26 -4
  14. package/dist/node.js +11 -9
  15. package/dist/{reporters-LqC_WI4d.d.ts → reporters-xEmem8D4.d.ts} +88 -41
  16. package/dist/reporters.d.ts +2 -1
  17. package/dist/reporters.js +3 -2
  18. package/dist/runners.d.ts +2 -1
  19. package/dist/runners.js +1 -1
  20. package/dist/{suite-ynYMzeLu.d.ts → suite-HPAKvIxA.d.ts} +1 -1
  21. package/dist/suite.d.ts +3 -2
  22. package/dist/vendor/{base.BjeeYg4o.js → base.gAwDs8Jc.js} +1 -1
  23. package/dist/vendor/cac.8mXc9Oj6.js +1406 -0
  24. package/dist/vendor/{cac.qnW6GNL2.js → cli-api._n4_Wp_j.js} +139 -1542
  25. package/dist/vendor/{index.12jbrDSD.js → index.0RrMQKD8.js} +1 -1
  26. package/dist/vendor/{index.kSaPvGW6.js → index.GlXSU9xI.js} +21 -208
  27. package/dist/vendor/{index.-ITFwqG_.js → index.gHZzsRJQ.js} +1 -1
  28. package/dist/vendor/{setup-common.A1De6efh.js → setup-common.7SXMSI--.js} +5 -2
  29. package/dist/vendor/utils.VYmeMh-u.js +217 -0
  30. package/dist/vendor/{vi.Fxjax7rQ.js → vi.Y_w82WR8.js} +5 -1
  31. package/dist/workers/forks.js +1 -1
  32. package/dist/workers/runVmTests.js +4 -4
  33. package/dist/workers/threads.js +1 -1
  34. package/dist/workers.d.ts +2 -1
  35. package/dist/workers.js +1 -1
  36. package/package.json +9 -9
@@ -1,6 +1,6 @@
1
1
  import { Custom } from '@vitest/runner';
2
2
  import '@vitest/runner/utils';
3
- import { ap as BenchFunction, aq as BenchmarkAPI } from './reporters-LqC_WI4d.js';
3
+ import { an as BenchFunction, ao as BenchmarkAPI } from './reporters-xEmem8D4.js';
4
4
  import { Options } from 'tinybench';
5
5
 
6
6
  declare function getBenchOptions(key: Custom): Options;
package/dist/suite.d.ts CHANGED
@@ -1,13 +1,14 @@
1
1
  export { createTaskCollector, getCurrentSuite, getFn, getHooks, setFn, setHooks } from '@vitest/runner';
2
2
  export { createChainable } from '@vitest/runner/utils';
3
- export { g as getBenchFn, a as getBenchOptions } from './suite-ynYMzeLu.js';
4
- import './reporters-LqC_WI4d.js';
3
+ export { g as getBenchFn, a as getBenchOptions } from './suite-HPAKvIxA.js';
4
+ import './reporters-xEmem8D4.js';
5
5
  import 'vite';
6
6
  import 'vite-node';
7
7
  import '@vitest/snapshot';
8
8
  import '@vitest/expect';
9
9
  import '@vitest/utils';
10
10
  import 'tinybench';
11
+ import 'node:stream';
11
12
  import 'vite-node/client';
12
13
  import '@vitest/snapshot/manager';
13
14
  import 'vite-node/server';
@@ -25,7 +25,7 @@ async function runBaseTests(state) {
25
25
  ctx.files.forEach((i) => state.moduleCache.delete(i));
26
26
  const [executor, { run }] = await Promise.all([
27
27
  startViteNode({ state, requestStubs: getDefaultRequestStubs() }),
28
- import('../chunks/runtime-runBaseTests.3fVSWBsC.js')
28
+ import('../chunks/runtime-runBaseTests.-x-nNuJ_.js')
29
29
  ]);
30
30
  await run(
31
31
  ctx.files,