Back to Daily Feed 
Vitest v5.1.0 Unleashes Powerful New Testing & Debugging Features
Must Read
Originally published on Vitest Releases
View Original Article
Share this article:
Summary & Key Takeaways
- New
--last-failedand--since-last-runflags streamline test execution. vi.setSystemTime()now supportsTemporal.InstantandTemporal.ZonedDateTime.- Per-retry/repeat attempt results are now exposed for more granular control.
- Fake timers have expanded support for
node:timersandnode:timers/promise. - Developers can now interactively review failed snapshots directly.
- Browser module mocking is improved with import map support.
- The trace view is out of experimental, with new timeline and failure-only modes.
- An experimental pointer API and
ariasnapshot capture enhance UI testing. - Coverage providers can now store data in the file system module cache.
Our Commentary
Vitest just keeps getting better, doesn't it? The --last-failed and --since-last-run flags are absolute game-changers for iterative development. I'm also really excited about the interactive snapshot review; that's going to save so much time. It feels like they're really listening to what developers need for a smoother, faster testing workflow. This release is packed.
View Original Article
Share this article: