Back to Daily Feed 
Vitest 5.0: Performance Boosts, New Features, and Breaking Changes
Must Read
Originally published on Vitest Releases
View Original Article
Share this article:
Summary & Key Takeaways
- Vitest 5.0 is officially released, focusing on performance enhancements.
- It introduces many new features and addresses long-standing bugs.
- The release includes breaking changes, requiring Node.js 22 and Vite 6.4.
- Key changes involve replacing
loupe.inspectwithpretty-formatand updating default attachment directories. expectpackage is now inlined, and deprecated entry points are removed.- New
toHaveTextContentis strict, withtoMatchTextContentas an alternative. - Browser testing features like
screenshotDirectoryconfig are added.
Our Commentary
A major Vitest release is always exciting for the testing community. Performance is paramount, so we're eager to see the real-world impact of these optimizations. The breaking changes are a bit of a hurdle, but requiring Node.js 22 and Vite 6.4 keeps the ecosystem moving forward. It's a solid update.
View Original Article
Share this article: