What’s New

Vitest v5.0.0-beta.5

v5.0.0-beta.5Pre-release
Added
  • Display nested mark trace in UI in browser mode
  • Add --repeats CLI option
  • Allow thresholds.autoUpdate to receive previous threshold as argument in coverage
Changed
  • Allow mutating happy-dom/jsdom window object
  • Expose concurrencyId/workerId on TestModule's diagnostics, make id 1-based
  • Require sessionId for orchestrator html request in browser mode
  • Allow thresholds.perFile to accept an object in coverage
Fixed
  • Fix mixed stdout/stderr log timestamps in onUserConsoleLog
  • Fix importOriginal with optimizer and query import
  • Correct transform time calculation in merged report
  • Wait for orchestrator readiness before resolving browser sessions
  • Wait for iframe tester readiness before preparing
  • Encode iframeId in tester iframe URL
  • Avoid matching sibling project roots in coverage
  • Hoist vi.mock() for vite-plus/test imports
  • Prevent test run hang on worker crash
  • Strip non-serializable functions from inline diff config
Removed
  • Don't lookup config file from ancestor directories
  • Inline @vitest/runner package, do not publish it anymore
   🚨 Breaking Changes
   🚀 Features
   🐞 Bug Fixes
    View changes on GitHub
View original