v4.1.3
🚀 Experimental Features
- Add
experimental.preParseflag - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/10070 <samp>(78273)</samp> - Support
browser.locators.exactoption - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/10013 <samp>(48799)</samp> - Add
TestAttachment.bodyEncoding- by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/9969 <samp>(89ca0)</samp> - Support custom snapshot matcher - by @hi-ogawa, Claude Sonnet 4.6 and Codex in https://github.com/vitest-dev/vitest/issues/9973 <samp>(59b0e)</samp>
🐞 Bug Fixes
- Advance fake timers with
expect.pollinterval - by @hi-ogawa and Claude Sonnet 4.6 in https://github.com/vitest-dev/vitest/issues/10022 <samp>(3f5bf)</samp> - Add
@vitest/coverage-v8and@vitest/coverage-istanbulas optional dependency - by @alan-agius4 in https://github.com/vitest-dev/vitest/issues/10025 <samp>(146d4)</samp> - Fix
defineHelperfor webkit async stack trace + update playwright 1.59.0 - by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/10036 <samp>(5a5fa)</samp> - Fix suite hook throwing errors for unused auto test-scoped fixture - by @hi-ogawa and Claude Sonnet 4.6 in https://github.com/vitest-dev/vitest/issues/10035 <samp>(39865)</samp>
- expect:
- Remove
JestExtendError.contextfrom verbose error reporting - by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/9983 <samp>(66751)</samp> - Don't leak "runner" types - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/10004 <samp>(ec204)</samp>
- Remove
- snapshot:
- Fix flagging obsolete snapshots for snapshot properties mismatch - by @hi-ogawa and Claude Sonnet 4.6 in https://github.com/vitest-dev/vitest/issues/9986 <samp>(6b869)</samp>
- Export custom snapshot matcher helper from
vitest- by @hi-ogawa and Codex in https://github.com/vitest-dev/vitest/issues/10042 <samp>(691d3)</samp>
- ui:
- Don't leak vite types - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/10005 <samp>(fdff1)</samp>
- vm:
- Fix external module resolve error with deps optimizer query - by @hi-ogawa and Claude Sonnet 4.6 in https://github.com/vitest-dev/vitest/issues/10024 <samp>(9dbf4)</samp>
View changes on GitHub
Fetched June 1, 2026