
Description
vitest is an agent skill from the antfu skills collection that helps a coding agent write, mock and configure unit tests with Vitest. Vitest is a testing framework powered by Vite, with a Jest-compatible API, native ESM, and built-in TypeScript and JSX support without extra configuration. It shares its config, transformers, resolvers and plugins with your Vite app, and it uses Vite's transformation pipeline for fast test updates. Its smart watch mode reruns only the tests affected by a change, based on the module graph, and it runs tests in parallel across worker threads. Coverage can be collected with V8 or Istanbul, and it includes snapshot testing, mocking and spy utilities. Most Jest test suites can move over with little change. The skill covers writing tests, mocking, configuring coverage and working with test options. The skill is based on Vitest 5.0.1 and was generated on 2026-09-25. It is listed on skills.sh, where the page shows install counts, GitHub stars and security audit results. Install it with npx skills add https://github.com/antfu/skills --skill vitest.…
Highlights
- Jest-compatible test API
- Native ESM, TypeScript and JSX
- Shares config with your Vite app
- Watch mode reruns affected tests
- V8 or Istanbul coverage
- Installs from skills.sh
Ratings & Reviews
No ratings yet
Be the first to rate vitest.
People also visit
vitest FAQ
What does this skill cover?
Writing unit tests with Vitest, including mocking, coverage configuration and test options.
Is Vitest like Jest?
Yes. It has a Jest-compatible API, so most Jest suites are a drop-in replacement, according to the skill.
Which version does the skill cover?
The skill is based on Vitest 5.0.1 and was generated on 2026-09-25.
How do I install it?
Run npx skills add https://github.com/antfu/skills --skill vitest.
What are the security audit results?
skills.sh lists three audits: Gen Agent Trust Hub Pass, Socket Pass and Snyk Pass.
How popular is it?
The page shows about 40.7K installs, and the antfu/skills repository has 6.0K GitHub stars.
What are the best vitest alternatives?
Popular alternatives to vitest include principle-test-behavior-not-implementation, frontend-testing and vitest. See all vitest alternatives








