v5.0.0-beta.6
v5.0.0-beta.6
vitest
Release Notes
🚨 Breaking Changes
- Add
screenshotDirectoryconfig tobrowser.expect.toMatchScreenshot- by @macarie in https://github.com/vitest-dev/vitest/issues/10592 (a60de) - 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 (f8b15) - Remove webdriverio package - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/10675 (5fed6)
- Clear mocks by default before each test - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/10613 (0f646)
- 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 (334ed)
- 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 (58577)
- 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 (4c26d)
- Change html reporter default output to
.vitest- by @hi-ogawa and Hiroshi Ogawa in https://github.com/vitest-dev/vitest/issues/10620 (29c36)
🚀 Features
- vitest: Create
vi.when()- by @macarie in https://github.com/vitest-dev/vitest/issues/10174 (3900e)
🐞 Bug Fixes
- Fix
setImmediateawait in detect-async-leak - by @hi-ogawa and Hiroshi Ogawa in https://github.com/vitest-dev/vitest/issues/10608 (dd62b) - Fix per-project
sequenceconfig - by @hi-ogawa, Hiroshi Ogawa and OpenCode (claude-opus-4-8) in https://github.com/vitest-dev/vitest/issues/10659 (40cdc) - Add handshake timeout to iframe communication - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/10656 (3545f)
- Don't print column in test names when
includeTaskLocationis enabled - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/10681 (bd9cc) - browser:
- Always derive a positive locator action timeout - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/10626 (5b864)
- Resize the browser ui only if it's not headless - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/10662 (b5c61)
- 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 (33f96)
- coverage:
- Non-awaited module imports cause wrong offsets - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/10643 (c4090)
- Fail fast when
coverage.reportsDirectoryconflicts between concurrent runs - by @jgamaraalv and @AriPerkkio in https://github.com/vitest-dev/vitest/issues/10466 (833f0)
- pool:
- Improve error message when worker exits unexpectedly - by @filmaj and @AriPerkkio in https://github.com/vitest-dev/vitest/issues/10587 (76139)
- types:
- Allow
changedin configuration options - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/10651 (0da12)
- 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 (90c4e)