v4.0.0-beta.19
Breaking Changes📦 vitestView on GitHub →
⚠ 1 breaking🐛 7 fixes🔧 6 symbols
Summary
Vitest v4.0.0-beta.19 removes the tinypool dependency and includes several bug fixes across browser, coverage, and module‑runner areas.
⚠️ Breaking Changes
- Pools have been rewritten to no longer depend on `tinypool`. Code that imported or configured `tinypool` will break; remove `tinypool` usage or update pool configuration to the new API.
Migration Steps
- Remove any direct imports or configuration of `tinypool`.
- Update pool usage to the new built‑in pool implementation provided by Vitest.
- Run the test suite and address any errors related to missing `tinypool`.
🐛 Bug Fixes
- Disabled trackUnhandledErrors when inspector is enabled.
- Browser: Allowed service workers to mock the network in Chromium without breaking vi.mock.
- Browser: Added support for sync `not.toBeInTheDocument()`.
- Coverage: V8 now ignores Vite's generated CJS import helpers.
- Coverage: `coverage.exclude` now keeps only string entries.
- Module-runner: Fixed resolution of `resolvedSources`.
- Module-runner: Added support for `getBuiltins`.
🔧 Affected Symbols
tinypoolpoolmodule-runnercoverage.excluderesolvedSourcesgetBuiltins