Vitest v5.0.0-rc.1

v5.0.0-rc.1Pre-release
Added 4
  • Support nested projects
  • Report the duration breakdown as percentages
  • Support -p shorthand for --project in CLI
  • Support require(esm) in vm pools
Changed 8
  • Inline projects extend the root config by default
  • Enable mocking Temporal without fake timers
  • Use > as separator in -t and calculate only once
  • Fail the test when an asynchronous assertion is not awaited
  • Share the Vite server between inline projects
  • Save failure screenshots in attachmentsDir in browser mode
  • Preserve class mock prototype methods on instances in spy
  • Add better promise support in expects and matchers in types
Fixed 8
  • Coalesce concurrent watch-mode restarts
  • Prevent vitest --typecheck from reporting false success when tsc process crashes
  • Collect in-source tests when the module is cached
  • Swap replace() arguments so timeout error stack shows the real message
  • Fix stale mock metadata breaking automocking with isolate:false
  • Don't lose worker output on teardown
  • Ignore channel events in a tester opened as a top-level window in browser mode
  • Resolve connectTimeout from the project config in browser mode
   🚨 Breaking Changes
   🚀 Features
   🐞 Bug Fixes
   🏎 Performance
    View changes on GitHub
View original

Upgraded? How did it go?

Discussion