๐Ÿงช
QualityTypeScript

Vitest

by antfu

Vitest is a Quality skill for Claude Code, published by antfu in skills.

5.8K stars317 forkson antfu/skillsAdded 2026/08/15Repository updated 2026/06/23
agent-skillsskills
Install in seconds
Install Vitest
Copy Vitest into your Claude Code skills folder. Run the command in your terminal, or review the source on GitHub before installing.
terminal
npx degit https://github.com/antfu/skills/tree/main/skills/vitest ~/.claude/skills/vitest

Requires Node.js. Downloads this skill only โ€” not the rest of the repository โ€” into your Claude Code skills folder.

Without Node.js

git clone https://github.com/antfu/skills.git

Clones the whole repository, then copy the skillโ€™s own directory into your skills folder yourself.

In this catalog

Source file
skills/vitest/SKILL.md in antfu/skills
Installs to
~/.claude/skills/vitest
Collection
One of 19 skills cataloged from this repository
Category
Quality โ€” 1354 skills

What Vitest does

Vitest is a fast unit testing framework powered by Vite with a Jest-compatible API. Use it when writing tests, mocking, configuring coverage, or working with test filtering and fixtures.

Vitest is cataloged under Quality on DirSkills. Vitest comes from a repository tagged agent-skills and skills.

Documentation

README

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.

Key Features:

  • 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

The skill is based on Vitest 5.x (beta), generated at 2026-06-22.

Core

This is the opening of the README. Read the full README on GitHub.

Frequently asked about Vitest

  • What else does antfu publish alongside Vitest?

    Vitest is one of 19 skills that DirSkills catalogs from antfu/skills, the repository it ships in. Its siblings there include Antfu Design, Anthony Fu Conventions and Nitro. Each one is a separate skill with its own page in this directory, installs the same way Vitest does, and is maintained by antfu in that same repository. The rest of the collection is listed on the antfu/skills page.

  • How does Vitest compare to other Quality skills?

    Vitest ranks #272 by stars among the 1354 Quality skills in this catalog. The most-starred ones next to it are Benchmark, Benchmark Optimization Loop and API Design Patterns. DirSkills ranks by the star count of the repository each skill ships in, so that order reflects how popular those repositories are rather than any review of Vitest against them. Open each page to compare what they document and how they install.

More from antfu/skills

Vitest is one of 19 skills cataloged on DirSkills from antfu/skills.

See all 19 skills โ†’
๐ŸŽจ
2w ago

Antfu Design

Antfu Design provides antfu-style design conventions for building interfaces with UnoCSS, using semantic tokens, light/dark parity, and micro-interaction polish. Use it when building or refactoring any interface with UnoCSS.
Frontend
5.8K317
๐Ÿ› ๏ธ
2w ago

Anthony Fu Conventions

Anthony Fu Conventions encodes Anthony Fu's opinionated tooling and conventions for JavaScript/TypeScript projects. Use it when setting up new projects, configuring ESLint/Prettier alternatives, monorepos, library publishing, or when the user mentions Anthony Fu's preferences.
Frontend
5.8K317
๐Ÿš€
2w ago

Nitro

Nitro is a framework-agnostic server toolkit for building and deploying web servers anywhere. Use it when working with nitro.config, server routes/event handlers, route rules, caching, storage, tasks, websockets, or deploying to Node, Bun, Deno, Cloudflare, or Vercel.
DevOps
5.8K317
๐ŸŸฉ
2w ago

Nuxt

Nuxt provides server-side rendering, auto-imports, and file-based routing for Vue apps. Use when building Nuxt apps, server routes, useFetch, middleware, or hybrid rendering.
Frontend
5.8K317
๐Ÿ
2w ago

Pinia

Pinia is the official Vue state management library, type-safe and extensible. Use when defining stores, working with state/getters/actions, or implementing store patterns in Vue apps.
Frontend
5.8K317
๐Ÿ“ฆ
2w ago

Pnpm

Pnpm manages Node.js dependencies with strict resolution and a content-addressable store. Use it when running pnpm-specific commands, configuring workspaces via pnpm-workspace.yaml, or managing catalogs, patches, overrides, and config dependencies.
DevOps
5.8K317