·vitest

Vitest testing framework patterns for test setup, async testing, mocking with vi.*, snapshots, and test performance (formerly test-vitest). This skill should be used when writing or debugging Vitest tests. This skill does NOT cover TDD methodology (use test-tdd skill), API mocking with MSW (use test-msw skill), or Jest-specific APIs.

5Installs·0Trend·@thongdn-it

Installation

$npx skills add https://github.com/thongdn-it/react-agent-skills --skill vitest

SKILL.md

Comprehensive performance optimization and best practices guide for Vitest testing framework. Contains 44 rules across 8 categories, prioritized by impact to guide test writing, refactoring, and code review.

| 1 | Async Patterns | CRITICAL | async- | | 2 | Test Setup & Isolation | CRITICAL | setup- | | 3 | Mocking Patterns | HIGH | mock- | | 4 | Performance | HIGH | perf- | | 5 | Snapshot Testing | MEDIUM | snap- | | 6 | Environment | MEDIUM | env- | | 7 | Assertions | LOW-MEDIUM | assert- | | 8 | Test Organization | LOW | org- |

Read individual reference files for detailed explanations and code examples:

Vitest testing framework patterns for test setup, async testing, mocking with vi.*, snapshots, and test performance (formerly test-vitest). This skill should be used when writing or debugging Vitest tests. This skill does NOT cover TDD methodology (use test-tdd skill), API mocking with MSW (use test-msw skill), or Jest-specific APIs. Source: thongdn-it/react-agent-skills.

View raw

Facts (cite-ready)

Stable fields and commands for AI/search citations.

Install command
npx skills add https://github.com/thongdn-it/react-agent-skills --skill vitest
Category
</>Dev Tools
Verified
First Seen
2026-02-01
Updated
2026-02-18

Quick answers

What is vitest?

Vitest testing framework patterns for test setup, async testing, mocking with vi.*, snapshots, and test performance (formerly test-vitest). This skill should be used when writing or debugging Vitest tests. This skill does NOT cover TDD methodology (use test-tdd skill), API mocking with MSW (use test-msw skill), or Jest-specific APIs. Source: thongdn-it/react-agent-skills.

How do I install vitest?

Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.) Copy and run this command: npx skills add https://github.com/thongdn-it/react-agent-skills --skill vitest Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code or Cursor

Where is the source repository?

https://github.com/thongdn-it/react-agent-skills