What’s New

Vitest v5.0.0-beta.6

v5.0.0-beta.6Pre-release
Added
  • Create vi.when() for conditional mocking
Changed
  • Add screenshotDirectory config to browser.expect.toMatchScreenshot
  • Update @sinonjs/fake-timers and support mocking Temporal
  • Write json and junit reporter output files to .vitest by default
  • Change html reporter default output to .vitest
  • Harden UI API access
Fixed
  • Fix setImmediate await in detect-async-leak
  • Fix per-project sequence config
  • Add handshake timeout to iframe communication
  • Don't print column in test names when includeTaskLocation is enabled
  • Always derive a positive locator action timeout in browser
  • Resize the browser ui only if it's not headless
  • Check fs access in builtin commands
  • Fix non-awaited module imports causing wrong offsets in coverage
  • Fail fast when coverage.reportsDirectory conflicts between concurrent runs
  • Improve error message when worker exits unexpectedly
  • Allow changed in configuration options
  • Fix external module resolve error with deps optimizer query for encoded URI
Removed
  • Remove webdriverio package
  • Clear mocks by default before each test
   🚨 Breaking Changes
   🚀 Features
   🐞 Bug Fixes
    View changes on GitHub
View original