Software Development

Vitest

Vitest is a test runner for JavaScript and TypeScript that operates on Vite and provides a Jest‑compatible API, built‑in mocking, snapshots, and code coverage. It allows developers to set up and run unit tests in Vite or Node projects, write tests with describe/it/expect, mock modules with vi.mock, and configure coverage thresholds and test projects via vitest.config.ts. The tool also supports migration from Jest and upgrades to Vitest 5, streamlining testing workflows for modern web applications.

Publisher / source
TerminalSkills Library
Upstream record
TerminalSkills/skills
Version
Version 4
Published
Publication review
Approved for publication
Content fingerprint
20a398530e538dc9540109a24e0ce114d182491d02c1a2286518a71266b792de