v5.0.0-beta.4
v5.0.0-beta.4
vitest
Release Notes
🚨 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 (d0b4f)
toHaveTextContentis strict, addtoMatchTextContentas alternative - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/10473 (18f30)- benchmark: Rewrite the public API - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/10113 (19f6e)
- browser: Enable
locators.exactby default - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/10430 (e2032)
🚀 Features
- browser: Show trace view steps in editor panel - by @hi-ogawa and Codex in https://github.com/vitest-dev/vitest/issues/10404 (8c4b6)
- 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 (f757e)
🐞 Bug Fixes
- Preserve
vi.defineHelpercallsite for async error stack - by @macayu17 and @hi-ogawa in https://github.com/vitest-dev/vitest/issues/10415 (ac697) - Respect
disableConsoleInterceptin browser mode - by @Copilot, hi-ogawa, @hi-ogawa and Codex in https://github.com/vitest-dev/vitest/issues/10391 (66110) - 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 (4fee2)
- Unify typechecking and ast collection - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/10449 (af993)
- Don't print typecheck warning more than once - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/10461 (15275)
- Correct collumn when parsing tests - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/10467 (7c2fc)
- browser:
- Fix stale source map on watch mode - by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/10389 (6d772)
- Escape inline orchestrator scripts - by @hi-ogawa and Codex in https://github.com/vitest-dev/vitest/issues/10412 (c22cf)
- Disable client
cdpAPI whenallowWrite/allowExec: false- by @hi-ogawa and Codex in https://github.com/vitest-dev/vitest/issues/10444 (63e3b)
- mocker:
- Skip hoist transform without ast mock calls - by @hi-ogawa and Codex in https://github.com/vitest-dev/vitest/issues/10410 (0468e)
- ui:
- Fix module graph in browser mode with --ui - by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/10386 (3003c)
- 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 (766b8)
- webdriverio:
- Allow gpu in headless chrome - by @rotempasharel1 in https://github.com/vitest-dev/vitest/issues/10376 (f310a)
🏎 Performance
- Improve performance in hot paths - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/10446 (03faf)