Post

✅Announcing Vitest 4.0 ✅ Our latest Vitest update brings Browser Mode to stable, allowing you to test your UI in real browsers like Chrome. Also new: - Visual Regression Testing to catch unintended UI changes - Playwright Trace support for easier debugging voidzero.dev/posts/announ...

voidzero.devAnnouncing Vitest 4.0Vitest 4.0 is released with Browser Mode being marked stable, Visual Regression testing support, and Playwright Trace support. The Vitest team will focus on performance improvement in the upcoming…

9 reposts92 likes

Kind of confused about browser mode, why would I want to wrap playwrights excellent api and test runner, with an API that probably can’t do everything that playwright does yet?

I think the main difference is the test code itself and the code tested runs in the browser, only using playwright for interacting with the page this is really handy in unit tests. You don't have to switch between node/browser brain as much