vitest 2.0.0-beta.2 → 2.0.0-beta.5

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 (46) hide show
  1. package/dist/browser.d.ts +5 -1
  2. package/dist/browser.js +18 -2
  3. package/dist/chunks/{integrations-globals.B5Jl0grA.js → integrations-globals.BK0Cn4q1.js} +3 -4
  4. package/dist/chunks/{runtime-console.CUES-L8X.js → runtime-console.DiVMr5d4.js} +54 -24
  5. package/dist/chunks/{runtime-runBaseTests._dXkRAZc.js → runtime-runBaseTests.C-Bkopka.js} +5 -6
  6. package/dist/cli.js +2 -2
  7. package/dist/config.cjs +2 -2
  8. package/dist/config.d.ts +2 -2
  9. package/dist/config.js +2 -2
  10. package/dist/coverage.d.ts +1 -1
  11. package/dist/environments.d.ts +1 -1
  12. package/dist/execute.d.ts +2 -2
  13. package/dist/execute.js +1 -1
  14. package/dist/index-C7JhjWOq.d.ts +1565 -0
  15. package/dist/index.d.ts +6 -1445
  16. package/dist/index.js +3 -4
  17. package/dist/node.d.ts +3 -6
  18. package/dist/node.js +7 -7
  19. package/dist/{reporters-DFgqsvtL.d.ts → reporters-qky6mwBH.d.ts} +398 -195
  20. package/dist/reporters.d.ts +1 -1
  21. package/dist/reporters.js +4 -4
  22. package/dist/runners.d.ts +4 -2
  23. package/dist/runners.js +9 -1
  24. package/dist/{suite-C_sqQjdz.d.ts → suite-B5_jYIf8.d.ts} +1 -1
  25. package/dist/suite.d.ts +2 -2
  26. package/dist/vendor/{base.VFkIJ66g.js → base.D4XK-wRp.js} +2 -2
  27. package/dist/vendor/{cac.CtP0aXu-.js → cac.sXjWMctD.js} +58 -20
  28. package/dist/vendor/{cli-api.B2QW76dQ.js → cli-api.BH9TJcYU.js} +487 -357
  29. package/dist/vendor/{constants.5SOfHUj0.js → constants.TCjCaw2D.js} +4 -3
  30. package/dist/vendor/{execute.CLLNVNnK.js → execute.BHj6OMh4.js} +3 -3
  31. package/dist/vendor/{index.CRxYS9H3.js → index.CyGfDRbW.js} +266 -49
  32. package/dist/vendor/{index.BfoZyXD1.js → index.DHRpy7zp.js} +1 -1
  33. package/dist/vendor/{index.CmILuxzC.js → index.DwR86H5i.js} +26 -3
  34. package/dist/vendor/{setup-common.XeoZAW8t.js → setup-common.BhJvzjns.js} +2 -2
  35. package/dist/vendor/{utils.D5gGkwyH.js → utils.YuQ3LT2a.js} +1 -1
  36. package/dist/vendor/{vi.ClD3hi7L.js → vi.C6AfDXK6.js} +97 -46
  37. package/dist/vendor/{vm.Bi3bljci.js → vm.Ow-X2mkS.js} +2 -2
  38. package/dist/workers/forks.js +2 -2
  39. package/dist/workers/runVmTests.js +4 -5
  40. package/dist/workers/threads.js +2 -2
  41. package/dist/workers/vmForks.js +3 -3
  42. package/dist/workers/vmThreads.js +3 -3
  43. package/dist/workers.d.ts +1 -1
  44. package/dist/workers.js +4 -4
  45. package/package.json +10 -10
  46. package/dist/vendor/run-once.DLomgGUH.js +0 -27
package/dist/index.js CHANGED
@@ -1,9 +1,8 @@
1
1
  export { afterAll, afterEach, beforeAll, beforeEach, describe, it, onTestFailed, onTestFinished, suite, test } from '@vitest/runner';
2
2
  export { b as bench } from './vendor/benchmark.BNLebNi5.js';
3
- export { i as isFirstRun, a as runOnce } from './vendor/run-once.DLomgGUH.js';
4
- export { c as createExpect, a as expect, v as vi, b as vitest } from './vendor/vi.ClD3hi7L.js';
5
- import { d as dist } from './vendor/index.CmILuxzC.js';
6
- export { b as assertType, g as getRunningMode, i as inject, a as isWatchMode } from './vendor/index.CmILuxzC.js';
3
+ import { d as dist } from './vendor/index.DwR86H5i.js';
4
+ export { e as assertType, g as getRunningMode, b as inject, i as isFirstRun, c as isWatchMode, a as runOnce } from './vendor/index.DwR86H5i.js';
5
+ export { c as createExpect, a as expect, v as vi, b as vitest } from './vendor/vi.C6AfDXK6.js';
7
6
  import * as chai from 'chai';
8
7
  export { chai };
9
8
  export { assert, should } from 'chai';
package/dist/node.d.ts CHANGED
@@ -1,6 +1,7 @@
1
- import { V as VitestRunMode, U as UserConfig, h as VitestOptions, i as Vitest, R as ResolvedConfig, P as ProvidedContext, j as WorkspaceProject, e as RuntimeRPC, T as TestSequencer, k as WorkspaceSpec } from './reporters-DFgqsvtL.js';
2
- export { p as BrowserProvider, o as BrowserProviderInitializationOptions, q as BrowserProviderOptions, r as BrowserScript, l as ProcessPool, n as TestSequencerConstructor, m as VitestPackageInstaller } from './reporters-DFgqsvtL.js';
1
+ import { V as VitestRunMode, U as UserConfig, h as VitestOptions, i as Vitest, R as ResolvedConfig, P as ProvidedContext, j as WorkspaceProject, e as RuntimeRPC, T as TestSequencer, k as WorkspaceSpec } from './reporters-qky6mwBH.js';
2
+ export { s as BrowserCommand, p as BrowserProvider, o as BrowserProviderInitializationOptions, q as BrowserProviderOptions, r as BrowserScript, H as HTMLOptions, t as JUnitOptions, J as JsonOptions, l as ProcessPool, n as TestSequencerConstructor, m as VitestPackageInstaller } from './reporters-qky6mwBH.js';
3
3
  import { UserConfig as UserConfig$1, Plugin } from 'vite';
4
+ export { isFileServingAllowed } from 'vite';
4
5
  import { Writable } from 'node:stream';
5
6
  import '@vitest/runner';
6
7
  import 'vite-node';
@@ -25,10 +26,6 @@ interface CliOptions extends UserConfig {
25
26
  * Override the watch mode
26
27
  */
27
28
  run?: boolean;
28
- /**
29
- * Retry the test suite if it crashes due to a segfault (default: true)
30
- */
31
- segfaultRetry?: number;
32
29
  /**
33
30
  * Removes colors from the console output
34
31
  */
package/dist/node.js CHANGED
@@ -1,12 +1,12 @@
1
- export { b as VitestPackageInstaller, V as VitestPlugin, a as createMethodsRPC, c as createVitest, r as registerConsoleShortcuts, s as startVitest } from './vendor/cli-api.B2QW76dQ.js';
2
- export { p as parseCLI } from './vendor/cac.CtP0aXu-.js';
3
- export { B as BaseSequencer } from './vendor/index.CRxYS9H3.js';
1
+ export { b as VitestPackageInstaller, V as VitestPlugin, a as createMethodsRPC, c as createVitest, r as registerConsoleShortcuts, s as startVitest } from './vendor/cli-api.BH9TJcYU.js';
2
+ export { p as parseCLI } from './vendor/cac.sXjWMctD.js';
3
+ export { B as BaseSequencer } from './vendor/index.CyGfDRbW.js';
4
+ export { isFileServingAllowed } from 'vite';
4
5
  import 'pathe';
5
- import './vendor/constants.5SOfHUj0.js';
6
+ import './vendor/constants.TCjCaw2D.js';
6
7
  import './vendor/coverage.ChSqD-qS.js';
7
8
  import './vendor/index.DeR1hhfY.js';
8
9
  import 'node:console';
9
- import 'vite';
10
10
  import 'node:path';
11
11
  import 'node:url';
12
12
  import 'node:process';
@@ -52,14 +52,14 @@ import 'node:util';
52
52
  import 'vite-node/utils';
53
53
  import 'magic-string';
54
54
  import '@vitest/utils/ast';
55
- import './vendor/utils.D5gGkwyH.js';
56
55
  import './vendor/index._7XLd8Kd.js';
57
56
  import './vendor/global.7bFbnyXl.js';
58
57
  import 'node:readline';
59
58
  import 'readline';
59
+ import './vendor/utils.YuQ3LT2a.js';
60
60
  import './vendor/tasks.WC7M-K-v.js';
61
61
  import 'node:perf_hooks';
62
- import './chunks/runtime-console.CUES-L8X.js';
62
+ import './chunks/runtime-console.DiVMr5d4.js';
63
63
  import 'node:stream';
64
64
  import './vendor/date.BKM1wewY.js';
65
65
  import 'execa';