vitest 4.0.0-beta.6 → 4.0.0-beta.8

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 (31) hide show
  1. package/dist/browser.d.ts +3 -3
  2. package/dist/chunks/{browser.d.Cawq_X_N.d.ts → browser.d.DOMmqJQx.d.ts} +1 -1
  3. package/dist/chunks/{cac.WE-urWw5.js → cac.By1HvRIk.js} +7 -7
  4. package/dist/chunks/{cli-api.CZz3evYC.js → cli-api.C-JHgQgp.js} +383 -210
  5. package/dist/chunks/{config.d.CKNVOKm0.d.ts → config.d._GBBbReY.d.ts} +1 -0
  6. package/dist/chunks/{coverage.BPRS6xgn.js → coverage.DarITf6U.js} +7 -7
  7. package/dist/chunks/{index.VNI-1z5c.js → index.AzwzFtyi.js} +14 -5
  8. package/dist/chunks/{index.7w0eqmYM.js → index.BuwjkI-q.js} +1 -1
  9. package/dist/chunks/{index.BG0gqZH-.js → index.DfviD7lX.js} +16 -8
  10. package/dist/chunks/{moduleRunner.d.8kKUsuDg.d.ts → moduleRunner.d.CX4DuqOx.d.ts} +1 -1
  11. package/dist/chunks/{plugin.d.DuiQJfUL.d.ts → plugin.d.CHe6slQs.d.ts} +1 -1
  12. package/dist/chunks/{reporters.d.CqR9-CDJ.d.ts → reporters.d.37tJQ2uV.d.ts} +950 -995
  13. package/dist/chunks/{typechecker.Cd1wvxUM.js → typechecker.DSo_maXz.js} +1 -1
  14. package/dist/chunks/{worker.d.Db-UVmXc.d.ts → worker.d.BKu8cnnX.d.ts} +1 -1
  15. package/dist/chunks/{worker.d.D9QWnzAe.d.ts → worker.d.DYlqbejz.d.ts} +1 -1
  16. package/dist/cli.js +3 -3
  17. package/dist/config.d.ts +9 -9
  18. package/dist/coverage.d.ts +7 -7
  19. package/dist/coverage.js +2 -2
  20. package/dist/environments.js +1 -1
  21. package/dist/index.d.ts +6 -6
  22. package/dist/module-evaluator.d.ts +3 -3
  23. package/dist/node.d.ts +24 -12
  24. package/dist/node.js +11 -16
  25. package/dist/reporters.d.ts +7 -7
  26. package/dist/reporters.js +3 -3
  27. package/dist/runners.d.ts +1 -1
  28. package/dist/worker.js +1 -1
  29. package/dist/workers.d.ts +3 -3
  30. package/dist/workers.js +1 -1
  31. package/package.json +10 -11
package/dist/browser.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- import { S as SerializedCoverageConfig, a as SerializedConfig } from './chunks/config.d.CKNVOKm0.js';
1
+ import { S as SerializedCoverageConfig, a as SerializedConfig } from './chunks/config.d._GBBbReY.js';
2
2
  import { R as RuntimeCoverageModuleLoader } from './chunks/coverage.d.BZtK59WP.js';
3
3
  import { SerializedDiffOptions } from '@vitest/utils/diff';
4
- import { V as VitestModuleRunner } from './chunks/moduleRunner.d.8kKUsuDg.js';
4
+ import { V as VitestModuleRunner } from './chunks/moduleRunner.d.CX4DuqOx.js';
5
5
  export { collectTests, processError, startTests } from '@vitest/runner';
6
6
  import * as spy from '@vitest/spy';
7
7
  export { spy as SpyModule };
@@ -11,7 +11,7 @@ import '@vitest/pretty-format';
11
11
  import '@vitest/snapshot';
12
12
  import 'node:vm';
13
13
  import 'vite/module-runner';
14
- import './chunks/worker.d.D9QWnzAe.js';
14
+ import './chunks/worker.d.DYlqbejz.js';
15
15
  import './chunks/environment.d.2fYMoz3o.js';
16
16
  import '@vitest/mocker';
17
17
  import './chunks/mocker.d.BE_2ls6u.js';
@@ -1,4 +1,4 @@
1
- import { T as TestExecutionMethod } from './worker.d.D9QWnzAe.js';
1
+ import { T as TestExecutionMethod } from './worker.d.DYlqbejz.js';
2
2
 
3
3
  type SerializedTestSpecification = [project: {
4
4
  name: string | undefined;
@@ -3,7 +3,7 @@ import { EventEmitter } from 'events';
3
3
  import { normalize } from 'pathe';
4
4
  import c from 'tinyrainbow';
5
5
  import { a as defaultPort, d as defaultBrowserPort } from './constants.D_Q9UYh-.js';
6
- import { R as ReportersMap } from './index.VNI-1z5c.js';
6
+ import { R as ReportersMap } from './index.AzwzFtyi.js';
7
7
 
8
8
  function toArr(any) {
9
9
  return any == null ? [] : Array.isArray(any) ? any : [any];
@@ -619,7 +619,7 @@ class CAC extends EventEmitter {
619
619
 
620
620
  const cac = (name = "") => new CAC(name);
621
621
 
622
- var version = "4.0.0-beta.6";
622
+ var version = "4.0.0-beta.8";
623
623
 
624
624
  const apiConfig = (port) => ({
625
625
  port: {
@@ -870,8 +870,8 @@ const cliOptionsConfig = {
870
870
  description: "If connection to the browser takes longer, the test suite will fail (default: `60_000`)",
871
871
  argument: "<timeout>"
872
872
  },
873
+ trackUnhandledErrors: { description: "Control if Vitest catches uncaught exceptions so they can be reported (default: `true`)" },
873
874
  orchestratorScripts: null,
874
- testerScripts: null,
875
875
  commands: null,
876
876
  viewport: null,
877
877
  screenshotDirectory: null,
@@ -1335,10 +1335,10 @@ async function start(mode, cliFilters, options) {
1335
1335
  process.title = "node (vitest)";
1336
1336
  } catch {}
1337
1337
  try {
1338
- const { startVitest } = await import('./cli-api.CZz3evYC.js').then(function (n) { return n.f; }), ctx = await startVitest(mode, cliFilters.map(normalize), normalizeCliOptions(cliFilters, options));
1338
+ const { startVitest } = await import('./cli-api.C-JHgQgp.js').then(function (n) { return n.j; }), ctx = await startVitest(mode, cliFilters.map(normalize), normalizeCliOptions(cliFilters, options));
1339
1339
  if (!ctx.shouldKeepServer()) await ctx.exit();
1340
1340
  } catch (e) {
1341
- const { errorBanner } = await import('./index.VNI-1z5c.js').then(function (n) { return n.u; });
1341
+ const { errorBanner } = await import('./index.AzwzFtyi.js').then(function (n) { return n.u; });
1342
1342
  if (console.error(`\n${errorBanner("Startup Error")}`), console.error(e), console.error("\n\n"), process.exitCode == null) process.exitCode = 1;
1343
1343
  process.exit();
1344
1344
  }
@@ -1353,7 +1353,7 @@ async function collect(mode, cliFilters, options) {
1353
1353
  process.title = "node (vitest)";
1354
1354
  } catch {}
1355
1355
  try {
1356
- const { prepareVitest, processCollected, outputFileList } = await import('./cli-api.CZz3evYC.js').then(function (n) { return n.f; }), ctx = await prepareVitest(mode, {
1356
+ const { prepareVitest, processCollected, outputFileList } = await import('./cli-api.C-JHgQgp.js').then(function (n) { return n.j; }), ctx = await prepareVitest(mode, {
1357
1357
  ...normalizeCliOptions(cliFilters, options),
1358
1358
  watch: false,
1359
1359
  run: true
@@ -1371,7 +1371,7 @@ async function collect(mode, cliFilters, options) {
1371
1371
  }
1372
1372
  await ctx.close();
1373
1373
  } catch (e) {
1374
- const { errorBanner } = await import('./index.VNI-1z5c.js').then(function (n) { return n.u; });
1374
+ const { errorBanner } = await import('./index.AzwzFtyi.js').then(function (n) { return n.u; });
1375
1375
  if (console.error(`\n${errorBanner("Collect Error")}`), console.error(e), console.error("\n\n"), process.exitCode == null) process.exitCode = 1;
1376
1376
  process.exit();
1377
1377
  }