vitest
Vitest fast unit testing framework powered by Vite with Jest-compatible API. Use when writing tests, mocking, configuring coverag…
What it does
- Vite-native: Uses Vite's transformation pipeline for fast HMR-like test updates
- Jest-compatible: Drop-in replacement for most Jest test suites
- Smart watch mode: Only reruns affected tests based on module graph
- Native ESM, TypeScript, JSX support without configuration
- Multi-threaded workers for parallel test execution
- Built-in coverage via V8 or Istanbul
- Snapshot testing, mocking, and spy utilities
Derived from the skill's own SKILL.md documentation · extracted 2026-07-23
Vitest fast unit testing framework powered by Vite with Jest-compatible API. Use when writing tests, mocking, configuring coverage, or working with test filtering and fixtures.
Source
Repository: https://github.com/antfu/skills
vitest FAQ
What does the vitest skill do?
Vitest fast unit testing framework powered by Vite with Jest-compatible API. Use when writing tests, mocking, configuring coverage, or working with test filtering and fixtures. Vite-native: Uses Vite's transformation pipeline for fast HMR-like test updates Jest-compatible: Drop-in replacement for most Jest test suites
How do I install vitest?
Run: npx -y skills add https://github.com/antfu/skills --skill vitest --agent claude-code — the source lives at github.com/antfu/skills.
Maintain vitest?
Let people know it's listed here — add the badge (live metrics, light/dark aware) or a plain link to your README or docs.
[](https://getagentictools.com/skills/antfu-skills-vitest?ref=badge) npx agentictools info skills/antfu-skills-vitest The second line is the CLI lookup for this page — handy in READMEs and docs.