Mocks clear by default; reporter outputs move to .vitest
v5.0.0-beta.6
4 features3 enhancements10 fixesThis release4 featuresNew capabilities3 enhancementsImprovements to existing features10 fixesBug fixesAI-tallied from the release notes
From the original release noteView original ↗
🚨 Breaking Changes
- Add
screenshotDirectoryconfig tobrowser.expect.toMatchScreenshot- by @macarie in https://github.com/vitest-dev/vitest/issues/10592 <samp>(a60de)</samp> - Update
@sinonjs/fake-timersand support mockingTemporal- by @hi-ogawa, Hiroshi Ogawa and OpenCode (claude-opus-4-8) in https://github.com/vitest-dev/vitest/issues/10654 <samp>(f8b15)</samp> - Remove webdriverio package - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/10675 <samp>(5fed6)</samp>
- Clear mocks by default before each test - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/10613 <samp>(0f646)</samp>
- Don't emit localStorage warnings on Node 26, fail gracefully when worker fails to start - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/10293 <samp>(334ed)</samp>
- reporters:
- Write json and junit reporter output files to
.vitestby default - by @hi-ogawa, Hiroshi Ogawa, OpenCode (claude-opus-4-8) and @AriPerkkio in https://github.com/vitest-dev/vitest/issues/10621 <samp>(58577)</samp>
- Write json and junit reporter output files to
- ui:
- Harden UI API access - by @hi-ogawa, Hiroshi Ogawa and Codex in https://github.com/vitest-dev/vitest/issues/10583 <samp>(4c26d)</samp>
- Change html reporter default output to
.vitest- by @hi-ogawa and Hiroshi Ogawa in https://github.com/vitest-dev/vitest/issues/10620 <samp>(29c36)</samp>
🚀 Features
- vitest: Create
vi.when()- by @macarie in https://github.com/vitest-dev/vitest/issues/10174 <samp>(3900e)</samp>
🐞 Bug Fixes
- Fix
setImmediateawait in detect-async-leak - by @hi-ogawa and Hiroshi Ogawa in https://github.com/vitest-dev/vitest/issues/10608 <samp>(dd62b)</samp> - Fix per-project
sequenceconfig - by @hi-ogawa, Hiroshi Ogawa and OpenCode (claude-opus-4-8) in https://github.com/vitest-dev/vitest/issues/10659 <samp>(40cdc)</samp> - Add handshake timeout to iframe communication - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/10656 <samp>(3545f)</samp>
- Don't print column in test names when
includeTaskLocationis enabled - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/10681 <samp>(bd9cc)</samp> - browser:
- Always derive a positive locator action timeout - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/10626 <samp>(5b864)</samp>
- Resize the browser ui only if it's not headless - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/10662 <samp>(b5c61)</samp>
- Check fs access in builtin commands - by @hi-ogawa, Hiroshi Ogawa and OpenCode (claude-opus-4-8) in https://github.com/vitest-dev/vitest/issues/10674 <samp>(33f96)</samp>
- coverage:
- Non-awaited module imports cause wrong offsets - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/10643 <samp>(c4090)</samp>
- Fail fast when
coverage.reportsDirectoryconflicts between concurrent runs - by @jgamaraalv and @AriPerkkio in https://github.com/vitest-dev/vitest/issues/10466 <samp>(833f0)</samp>
- pool:
- Improve error message when worker exits unexpectedly - by @filmaj and @AriPerkkio in https://github.com/vitest-dev/vitest/issues/10587 <samp>(76139)</samp>
- types:
- Allow
changedin configuration options - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/10651 <samp>(0da12)</samp>
- Allow
- vm:
- Fix external module resolve error with deps optimizer query for encoded URI - by @SveLil in https://github.com/vitest-dev/vitest/issues/10658 <samp>(90c4e)</samp>
View changes on GitHub
Fetched July 6, 2026
