Vitest
Vitest is a next-generation test framework that uses the Vite infrastructure. Vite uses configuration, transformer and plugins directly; it also offers native ESM support and TypeScript/JSX compatibility. The Jest-compatible API features built-in Chai assertions and intelligent instant (instant) tracking mode.
Vitest
100vitest-dev · Testing & QA
Common commercial products in this category: BrowserStack, Sauce Labs, TestRail
- You use the configuration and plugins of your Vite application directly in the testing environment.
- You write tests with Jest compatible API and built-in Jest Snapshot support.
- You create local code coverage reports and run component tests in browser mode.
- ↑ PositiveHacker News
Vitest Browser Mode Guide
“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…”
- • NeutralHacker News
Jest/Vitest interactive course (runs in the browser)
“100%. its a horrible code smell, and AI loves to jest.mock (or vi.mock()). (The most recent blog post on my site covers this as one of the things to look out for in AI generated tests...) in JS (with Jest/Vitest) it is far too easy to call mock()...”