v5.0.0-beta.4
🚨 Breaking Changes
- Throw an error if hoistable methods are outside the top level scope - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/10460 <samp>(d0b4f)</samp>
toHaveTextContentis strict, addtoMatchTextContentas alternative - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/10473 <samp>(18f30)</samp>- benchmark: Rewrite the public API - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/10113 <samp>(19f6e)</samp>
- browser: Enable
locators.exactby default - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/10430 <samp>(e2032)</samp>
🚀 Features
- browser: Show trace view steps in editor panel - by @hi-ogawa and Codex in https://github.com/vitest-dev/vitest/issues/10404 <samp>(8c4b6)</samp>
- reporter: Support html reporter single file output - by @hi-ogawa, Codex and Claude Opus 4.7 (1M context) in https://github.com/vitest-dev/vitest/issues/10235 <samp>(f757e)</samp>
🐞 Bug Fixes
- Preserve
vi.defineHelpercallsite for async error stack - by @macayu17 and @hi-ogawa in https://github.com/vitest-dev/vitest/issues/10415 <samp>(ac697)</samp> - Respect
disableConsoleInterceptin browser mode - by @Copilot, hi-ogawa, @hi-ogawa and Codex in https://github.com/vitest-dev/vitest/issues/10391 <samp>(66110)</samp> - ForceRerunTriggers uses directory globs against files - by @Patrick-Clausen and Patrick Clausen in https://github.com/vitest-dev/vitest/issues/10421 and https://github.com/vitest-dev/vitest/issues/10420 <samp>(4fee2)</samp>
- Unify typechecking and ast collection - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/10449 <samp>(af993)</samp>
- Don't print typecheck warning more than once - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/10461 <samp>(15275)</samp>
- Correct collumn when parsing tests - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/10467 <samp>(7c2fc)</samp>
- browser:
- Fix stale source map on watch mode - by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/10389 <samp>(6d772)</samp>
- Escape inline orchestrator scripts - by @hi-ogawa and Codex in https://github.com/vitest-dev/vitest/issues/10412 <samp>(c22cf)</samp>
- Disable client
cdpAPI whenallowWrite/allowExec: false- by @hi-ogawa and Codex in https://github.com/vitest-dev/vitest/issues/10444 <samp>(63e3b)</samp>
- mocker:
- Skip hoist transform without ast mock calls - by @hi-ogawa and Codex in https://github.com/vitest-dev/vitest/issues/10410 <samp>(0468e)</samp>
- ui:
- Fix module graph in browser mode with --ui - by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/10386 <samp>(3003c)</samp>
- Render ANSI color codes in editor panel inline error widget - by @Copilot, hi-ogawa and @hi-ogawa in https://github.com/vitest-dev/vitest/issues/10418 <samp>(766b8)</samp>
- webdriverio:
- Allow gpu in headless chrome - by @rotempasharel1 in https://github.com/vitest-dev/vitest/issues/10376 <samp>(f310a)</samp>
🏎 Performance
- Improve performance in hot paths - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/10446 <samp>(03faf)</samp>
View changes on GitHub
Fetched June 1, 2026