vitest

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.

by antfu 5.8k GitHub stars MIT Updated Jun 23, 2026
vitest skill by antfu
vitest — Testing skill by antfu

Overview

vitest is an open-source testing skill for Claude Code and compatible agents, published by antfu. Its author describes it as: “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.”. The project has 5.8k stars on GitHub and is available under the MIT license. Add it to your setup with `git clone https://github.com/antfu/skills ~/.claude/skills/vitest`.

What vitest does

Vitest is a next-generation testing framework powered by Vite. It provides a Jest-compatible API with native ESM, TypeScript, and JSX support out of the box. Vitest shares the same config, transformers, resolvers, and plugins with your Vite app.

Best for

What’s inside

The SKILL.md for vitest is organised into these sections:

  • Core
  • Features
  • Advanced

Installation

Add vitest to your agent with:

git clone https://github.com/antfu/skills ~/.claude/skills/vitest

Review a skill’s source before installing it — skills can instruct your agent to run commands. This command comes from the skill’s public repository, which is the source of truth for setup steps. New to skills? Read how to install Claude Code skills.

Supported agents

Neither the skill nor its repository names a specific agent. It uses the SKILL.md format, which several agents can load — check the repository for any agent-specific requirements.

License

vitest is published under the MIT license.

Strengths

  • Clear MIT license — safe to read and adapt within its terms
  • Ships in antfu/skills, an established project with 5,770 GitHub stars

Author

antfu 19 skills in the catalog · GitHub profile ↗
View skills

Topics

Need a skill like this, tailored to your team?Build a custom skill →

Frequently asked questions

What does vitest 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.
How do I install vitest?
Run git clone https://github.com/antfu/skills ~/.claude/skills/vitest in your agent, then reload your skills. Review the source at https://github.com/antfu/skills before installing.
Is vitest free to use?
Yes. vitest is free and open source under the MIT license, so you can read, run, and adapt it within that license's terms.
Where does vitest come from?
vitest ships inside antfu/skills, a repository that contains 19 catalogued skills in total. The repository's 5,770 GitHub stars apply to that whole collection, not to this skill on its own.

Use for Vue.js testing. Covers Vitest, Vue Test Utils, component testing, mocking, testing patterns, and Playwright for E2E testing.

5.8k GitHub stars MIT Updated Jun 23, 2026 Free

Test Cherry Studio PRs by resolving and checking out a PR, statically inspecting its changes, running interactive UI tests against a safely tracked Electron instance through CDP, producing a structured report, cleaning up only the owned test instance, and restoring the original branch.

↑ GrowingActive Claude CodeCodex
52k GitHub stars AGPL-3.0-only Updated Sep 21, 2026 Free

Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.

↑ GrowingActive Claude CodeCodex
52k GitHub stars AGPL-3.0-only Updated Sep 21, 2026 Free