Change8

v3.2.4

📦 vitestView on GitHub →
🐛 13 fixes🔧 13 symbols

Summary

Vitest v3.2.4 delivers a series of bug fixes across multiple areas (CLI, browser, coverage, expect, pool, reporter, runner, UI) and updates non‑major dependencies, with no breaking changes.

Migration Steps

  1. Run `npm install vitest@3.2.4` (or `pnpm add vitest@3.2.4`, `yarn add vitest@3.2.4`).
  2. No breaking changes; code should work without modifications.

🐛 Bug Fixes

  • Use correct path for optimisation of strip-literal (commit 44940d9dd).
  • Print uint and buffer as a simple string (commit b86bf0d99).
  • Browser: Show a helpful error when spying on an export (commit 5600772c2).
  • CLI: `vitest run --watch` now correctly enables watch mode (commit 657e83f9f).
  • CLI: Use absolute path environment on Windows (commit 85dc0195f).
  • CLI: Throw error when `--shard x/<count>` exceeds count of test files (commit 8a18c8e20).
  • Coverage: Ignore SCSS in browser mode (commit 0c3be6f63).
  • Deps: Update all non‑major dependencies (commit 93f3200e4).
  • Expect: Handle async errors in expect.soft (commit 686996912).
  • Pool: Auto‑adjust `minWorkers` when only `maxWorkers` is specified (commit 14dc0724f).
  • Reporter: `task.meta` is now available in custom reporter's errors (commit 27df68a0e).
  • Runner: Preserve handler wrapping on extend (commit a92812b70).
  • UI: Ensure ui config option works correctly (commit 42eeb2ee6).

🔧 Affected Symbols

strip-literal optimisationuint printingbuffer printingbrowser.spyExportErrorcli.watchModecli.absolutePathEnvWindowscli.shardCountValidationcoverage.ignoreSCSSexpect.softpool.minWorkersreporter.task.metarunner.handlerWrappingui.configOption