Back to Daily Feed 
Vitest v5.0.0-beta.2: Breaking Changes & New Features for Testing
Worth Reading
Originally published on Vitest Releases
View Original Article
Share this article:
Summary & Key Takeaways
- Vitest v5.0.0-beta.2 introduces several breaking changes, including default
attachmentsDirmoving to.vitest/attachments/. - The
sequentialtest/suite options have been removed in favor ofconcurrent. - Locators are now represented as objects instead of strings.
- The
expectpackage is now inlined, and deprecated entry points have been removed. - New features include exposing default reporters through
configDefaults.reporters. - Improved merge reports for non-sharded multi-environment runs are now supported.
- The release also adds
logger.formatErrorand browser-specific enhancements for screenshot path resolution and trace highlighting.
Our Commentary
A beta for a major version always signals exciting times ahead, and Vitest v5.0.0-beta.2 is no exception. The breaking changes, especially around attachmentsDir and the shift from sequential to concurrent testing, suggest a push towards more streamlined and modern testing practices. We appreciate the clarity in these changes, even if they require some migration effort. The new features, like exposing default reporters and better merge report support, are quality-of-life improvements that will undoubtedly make the testing workflow smoother for many developers. It's good to see Vitest continuing to evolve and refine its approach.
Share this article: