What’s New

Vitest v5.0.0-beta.4

v5.0.0-beta.4Pre-release
Added
  • Show trace view steps in editor panel in browser mode
  • Support html reporter single file output
Changed
  • toHaveTextContent is strict, add toMatchTextContent as alternative
  • Rewrite the benchmark public API
  • Enable locators.exact by default in browser mode
  • Improve performance in hot paths
Fixed
  • Preserve vi.defineHelper callsite for async error stack
  • Respect disableConsoleIntercept in browser mode
  • ForceRerunTriggers uses directory globs against files
  • Unify typechecking and ast collection
  • Don't print typecheck warning more than once
  • Correct column when parsing tests
  • Fix stale source map on watch mode in browser
  • Escape inline orchestrator scripts in browser
  • Disable client CDP API when allowWrite/allowExec: false in browser
  • Skip hoist transform without ast mock calls in mocker
  • Fix module graph in browser mode with --ui
  • Render ANSI color codes in editor panel inline error widget in UI
  • Allow gpu in headless chrome in webdriverio
Removed
  • Throw an error if hoistable methods are outside the top level scope
   🚨 Breaking Changes
   🚀 Features
   🐞 Bug Fixes
   🏎 Performance
    View changes on GitHub
View original