Vitest Browser Mode Guide

(howtotestfrontend.com)

27 points | by howToTestFE 5 days ago

2 comments

  • syspec 17 minutes ago
    I used to do this with Karma test runner. The best part was how it didn't try to capture everything, so debugging with breakpoints was really easy.

    I like Vitest browser mode, but it's a pain to just "detach" for a specific frame and run that test in isolation, with my actual breakpoints.

  • gwynforthewyn 48 minutes ago
    More options in the ecosystem seems better, but I was surprised to see this in the linked vitest docs:

    > However, to run tests in CI you need to install either playwright or webdriverio. We also recommend switching to either one of them for testing locally instead of using the default preview provider since it relies on simulating events instead of using Chrome DevTools Protocol.