This skill generates Vitest unit tests in JavaScript and TypeScript, leveraging Vite-native speed and a Jest-compatible API with ESM support. It provides concrete patterns for mocking (using vi.fn/vi.mock), snapshot testing, React component testing, in-source testing, and configuration. It also includes a quick-reference command table and anti-patterns guide to help agents avoid common mistakes.
Domains: testing, development · Tags: frontend, testing, unit-testing, mocking · 3 downloads
mkdir -p .claude/skills
curl -sSL https://skillpatch.dev/install_skill/vitest-skill | tar -xz -C .claude/skills/Works with Claude Code, Cursor, GitHub Copilot, Codex and any agent that reads the open SKILL.md standard. Every skill on SkillPatch passes an automated 6-dimension security review before it is published.
Browse all skills · What are agent skills? · Quick setup guide