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 |…