Vitest v5.1.0-beta.1

v5.1.0-beta.1Pre-release
Added 8
  • Add --last-failed to run only failed tests
  • Support Temporal.Instant and Temporal.ZonedDateTime in vi.setSystemTime()
  • Introduce --since-last-run flag
  • Expose per-retry/repeat attempt result
  • Support fake timers for node:timers and node:timers/promise
  • Mock modules through an import map in browser mode
  • Introduce experimental pointer API in browser mode
  • Capture aria snapshot in trace view in browser mode
Changed 5
  • Drop experimental label from trace view in browser mode
  • Change default browser port to 23315
  • Update all non-major dependencies
  • Reuse fsModuleCache in static collection
  • Map only first frame for trace locations in browser mode
Fixed 6
  • Rerun setup files after --changed filtering
  • Return the mock to concurrent imports
  • Don't fail on console log pending at teardown
  • Reference chai types in every d.ts chunk
  • Advance fake timers in actions and expect.element in browser mode
  • V8 coverage autoAttachSubprocess uses the .tmp directory

From Vitest

   🚀 Features
   🐞 Bug Fixes
   🏎 Performance
    View changes on GitHub
View original

Upgraded? How did it go?

Discussion