Loading...
Loading...
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.
npx skill4agent add thongdn-it/react-agent-skills vitest| Priority | Category | Impact | Prefix |
|---|---|---|---|
| 1 | Async Patterns | CRITICAL | |
| 2 | Test Setup & Isolation | CRITICAL | |
| 3 | Mocking Patterns | HIGH | |
| 4 | Performance | HIGH | |
| 5 | Snapshot Testing | MEDIUM | |
| 6 | Environment | MEDIUM | |
| 7 | Assertions | LOW-MEDIUM | |
| 8 | Test Organization | LOW | |
async-await-assertionsasync-return-promisesasync-fake-timersasync-waitfor-pollingasync-concurrent-expectasync-act-wrapperasync-error-handlingsetup-beforeeach-cleanupsetup-restore-mockssetup-avoid-shared-statesetup-beforeall-expensivesetup-reset-modulessetup-test-factoriesmock-vi-mock-hoistingmock-spyon-vs-mockmock-implementation-not-valuemock-msw-networkmock-avoid-overmockingmock-type-safetymock-clear-between-testsperf-pool-selectionperf-disable-isolationperf-happy-domperf-shardingperf-run-mode-ciperf-bail-fast-failsnap-inline-over-filesnap-avoid-largesnap-stable-serializationsnap-review-updatessnap-describe-intentenv-per-file-overrideenv-setup-filesenv-globals-configenv-browser-api-mockingassert-specific-matchersassert-edge-casesassert-one-assertion-conceptassert-expect-assertionsassert-toequal-vs-tobeorg-file-colocationorg-describe-nestingorg-test-namingorg-test-skip-onlytest-tddtest-mswtypescriptAGENTS.md