Back to Daily Feed 
Vitest v5.0.0-beta.4: Breaking Changes, Browser Trace View, and HTML Reporter
Must Read
Originally published on Vitest Releases
View Original Article
Share this article:
Summary & Key Takeaways
- Vitest v5.0.0-beta.4 includes several breaking changes, notably in
toHaveTextContentandbenchmarkAPI. - Hoistable methods outside top-level scope now throw errors.
- A new browser trace view step is available in the editor panel.
- The HTML reporter now supports single-file output.
- Performance improvements have been made in hot paths.
- Browser mode now enables
locators.exactby default. vi.defineHelpercallsite is preserved for async error stacks.
Our Commentary
A beta for a major version always brings a mix of excitement and trepidation. The breaking changes are something to watch, but the new features sound genuinely useful. A browser trace view in the editor? Yes, please. And a single-file HTML reporter is a nice touch for sharing results. It's good to see continued investment in performance too. Vitest keeps pushing the envelope for modern JavaScript testing.
View Original Article
Share this article: