vitest 3.0.0-beta.4 → 3.0.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 (38) hide show
  1. package/dist/browser.d.ts +2 -2
  2. package/dist/chunks/{base.BJ8KO-VX.js → base.CUDzyU2J.js} +1 -1
  3. package/dist/chunks/{cac.BAYqQ2aM.js → cac.DZC9WjGM.js} +6 -6
  4. package/dist/chunks/{cli-api.Dhl34Trr.js → cli-api.CmJw5Cd_.js} +901 -65
  5. package/dist/chunks/{creator.Ot9GlSGw.js → creator.DztqrnyH.js} +1 -1
  6. package/dist/chunks/global.CnI8_G5V.d.ts +133 -0
  7. package/dist/chunks/{index.B2M9nD1V.js → index.CUcwvygK.js} +4 -4
  8. package/dist/chunks/{index.DQboAxJm.js → index.D9C26wCk.js} +1 -0
  9. package/dist/chunks/{index.CAueP3cK.js → index.TKSL1HjN.js} +188 -933
  10. package/dist/chunks/{reporters.Dcdq51WE.d.ts → reporters.Y8BYiXBN.d.ts} +340 -239
  11. package/dist/chunks/{resolveConfig.kZFMjKCQ.js → resolveConfig.CSLLD33d.js} +137 -52
  12. package/dist/chunks/{rpc.C3q9uwRX.js → rpc.TVf73xOu.js} +0 -1
  13. package/dist/chunks/{runBaseTests.URiUrnWK.js → runBaseTests.C0T_TQwH.js} +2 -2
  14. package/dist/chunks/{RandomSequencer.DB__To1b.js → typechecker.BJMkWMXo.js} +53 -106
  15. package/dist/chunks/{utils.yHKcm4dz.js → utils.DJWL04yX.js} +1 -1
  16. package/dist/chunks/{vite.DzluO1Kj.d.ts → vite.CQ0dHgkN.d.ts} +1 -1
  17. package/dist/chunks/{worker.BIVMnzXw.d.ts → worker.B1y96qmv.d.ts} +1 -1
  18. package/dist/chunks/{worker.Hz_LAzfd.d.ts → worker.CIpff8Eg.d.ts} +2 -4
  19. package/dist/cli.js +1 -1
  20. package/dist/config.d.ts +3 -3
  21. package/dist/coverage.d.ts +1 -1
  22. package/dist/coverage.js +5 -4
  23. package/dist/execute.d.ts +1 -1
  24. package/dist/index.d.ts +17 -118
  25. package/dist/node.d.ts +11 -8
  26. package/dist/node.js +25 -23
  27. package/dist/reporters.d.ts +1 -1
  28. package/dist/reporters.js +4 -6
  29. package/dist/runners.d.ts +1 -0
  30. package/dist/runners.js +7 -7
  31. package/dist/worker.js +1 -1
  32. package/dist/workers/forks.js +1 -1
  33. package/dist/workers/runVmTests.js +2 -2
  34. package/dist/workers/threads.js +1 -1
  35. package/dist/workers.d.ts +2 -2
  36. package/dist/workers.js +2 -2
  37. package/package.json +13 -13
  38. package/dist/chunks/types.BOjykUpq.d.ts +0 -27
package/dist/browser.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { b as CoverageProvider, c as CoverageProviderModule } from './chunks/reporters.Dcdq51WE.js';
1
+ import { b as CoverageProvider, c as CoverageProviderModule } from './chunks/reporters.Y8BYiXBN.js';
2
2
  import { a as SerializedCoverageConfig, S as SerializedConfig } from './chunks/config.BRtC-JeT.js';
3
3
  import * as spy$1 from '@vitest/spy';
4
4
  import * as _vitest_utils_diff from '@vitest/utils/diff';
@@ -20,7 +20,7 @@ import '@vitest/snapshot/manager';
20
20
  import 'node:fs';
21
21
  import '@vitest/snapshot/environment';
22
22
  import 'vite-node/client';
23
- import './chunks/worker.Hz_LAzfd.js';
23
+ import './chunks/worker.CIpff8Eg.js';
24
24
  import 'node:vm';
25
25
  import '@vitest/mocker';
26
26
  import './chunks/mocker.cRtM890J.js';
@@ -26,7 +26,7 @@ async function runBaseTests(method, state) {
26
26
  ));
27
27
  const [executor, { run }] = await Promise.all([
28
28
  startViteNode({ state, requestStubs: getDefaultRequestStubs() }),
29
- import('./runBaseTests.URiUrnWK.js')
29
+ import('./runBaseTests.C0T_TQwH.js')
30
30
  ]);
31
31
  const fileSpecs = ctx.files.map(
32
32
  (f) => typeof f === "string" ? { filepath: f, testLocations: void 0 } : f
@@ -618,7 +618,7 @@ class CAC extends EventEmitter {
618
618
 
619
619
  const cac = (name = "") => new CAC(name);
620
620
 
621
- var version = "3.0.0-beta.4";
621
+ var version = "3.0.0";
622
622
 
623
623
  const apiConfig = (port) => ({
624
624
  port: {
@@ -1567,13 +1567,13 @@ async function start(mode, cliFilters, options) {
1567
1567
  } catch {
1568
1568
  }
1569
1569
  try {
1570
- const { startVitest } = await import('./cli-api.Dhl34Trr.js').then(function (n) { return n.f; });
1570
+ const { startVitest } = await import('./cli-api.CmJw5Cd_.js').then(function (n) { return n.f; });
1571
1571
  const ctx = await startVitest(mode, cliFilters.map(normalize), normalizeCliOptions(cliFilters, options));
1572
1572
  if (!ctx.shouldKeepServer()) {
1573
1573
  await ctx.exit();
1574
1574
  }
1575
1575
  } catch (e) {
1576
- const { divider } = await import('./utils.yHKcm4dz.js').then(function (n) { return n.u; });
1576
+ const { divider } = await import('./utils.DJWL04yX.js').then(function (n) { return n.u; });
1577
1577
  console.error(`
1578
1578
  ${c.red(divider(c.bold(c.inverse(" Startup Error "))))}`);
1579
1579
  console.error(e);
@@ -1589,7 +1589,7 @@ async function init(project) {
1589
1589
  console.error(new Error('Only the "browser" project is supported. Use "vitest init browser" to create a new project.'));
1590
1590
  process.exit(1);
1591
1591
  }
1592
- const { create } = await import('./creator.Ot9GlSGw.js');
1592
+ const { create } = await import('./creator.DztqrnyH.js');
1593
1593
  await create();
1594
1594
  }
1595
1595
  async function collect(mode, cliFilters, options) {
@@ -1598,7 +1598,7 @@ async function collect(mode, cliFilters, options) {
1598
1598
  } catch {
1599
1599
  }
1600
1600
  try {
1601
- const { prepareVitest, processCollected, outputFileList } = await import('./cli-api.Dhl34Trr.js').then(function (n) { return n.f; });
1601
+ const { prepareVitest, processCollected, outputFileList } = await import('./cli-api.CmJw5Cd_.js').then(function (n) { return n.f; });
1602
1602
  const ctx = await prepareVitest(mode, {
1603
1603
  ...normalizeCliOptions(cliFilters, options),
1604
1604
  watch: false,
@@ -1620,7 +1620,7 @@ async function collect(mode, cliFilters, options) {
1620
1620
  }
1621
1621
  await ctx.close();
1622
1622
  } catch (e) {
1623
- const { divider } = await import('./utils.yHKcm4dz.js').then(function (n) { return n.u; });
1623
+ const { divider } = await import('./utils.DJWL04yX.js').then(function (n) { return n.u; });
1624
1624
  console.error(`
1625
1625
  ${c.red(divider(c.bold(c.inverse(" Collect Error "))))}`);
1626
1626
  console.error(e);