
Vitest
Catalog of 44 Vitest best-practice rules covering async tests, setup, mocking, performance, and snapshots.
- skills.sh installs
- 7.7K
- GitHub stars
- 227
- last updated
- Aug 21, 2026
What it does
- Covers 8 categories ranked by impact: async patterns, test setup and isolation, mocking, performance, snapshots, environment, assertions, and organization
- Lists 44 named rules with prefixes such as
async-,setup-,mock-, andperf-, each with a linked reference file - Guides fixing false-positive async assertions,
vi.mockhoisting,vi.spyOnversusvi.mock, pool selection, and happy-dom versus jsdom - Designed for writing new Vitest tests, debugging flaky or slow suites, reviewing PRs, and migrating from Jest
Install
$ npx -y skills add pproenca/dot-skills --skill vitest -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Vitest Best Practices
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.
When to Apply
Reference these guidelines when:
- Writing new Vitest tests
- Debugging flaky or slow tests
- Setting up test configuration
- Reviewing test code in PRs
- Migrating from Jest to Vitest
- Optimizing CI/CD test performance
Rule Categories by Priority
| Priority | Category | Impact | Prefix |
|---|---|---|---|
| 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- |
Quick Reference
1. Async Patterns (CRITICAL)
Details
- Repository
- github.com/pproenca/dot-skills
- Categories
- Testing & QA, Frontend & UI Code
- First seen
- May 16, 2026
More from pproenca/dot-skills
All 100- Zod7.3K
- React Hook Form3.1K
- Emilkowal Animations2.8K
- Nuqs2.4K
- Clean Architecture2.1K
- Typescript1.8K
- Code Simplifier1.6K
- Expo React Native Performance1.5K
- Nextjs1.2K
- Playwright1.2K
- Framer Motion1.2K
- Wxt Browser Extensions1.1K
- Tanstack Query983
- Msw910
- Clean Code869
- Terminal Ui866
- Ui Design836
- Typescript Refactor807
- React Refactor800
- Shadcn741
- Chrome Extension Ui739
- Chrome Extension735
- Shell713
- Tailwind665
Similar to Vitest
More Testing & QA
testing-best-practicesasyrafhussin/agent-skills975 installsPractical TDD and unit/integration testing guidelines with 34 TypeScript rules across seven prioritized categories.
javascript-testing-patternswshobson/agents21.4K installsComprehensive testing guide covering Jest and Vitest setup, unit, async, and mocking patterns for JavaScript and TypeScript.
jestmindrally/skills916 installsJest testing guidance for JavaScript and TypeScript covering structure, mocking, assertions, and async patterns.
rstest-best-practicesrstackjs/agent-skills1.5K installsRstest testing rules covering config, mocking, snapshots, coverage, CI sharding, and VM pool tuning.