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.

VI

vitest-dev · Testing & QA

STARS17.3K
FORKS2.1K
COMMITS—
CONTRIBUTORS755
VERSIONv5.0.0-beta.7
UPDATEDyesterday
TypeScriptUnit TestingViteMIT

Common commercial products in this category: BrowserStack, Sauce Labs, TestRail

What can it do?
  • 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.
User reviews
  • ↑ 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()...”

My note

Alternative pages

More in: Testing & QA