Individual skill
vitest-best-practices
Comprehensive vitest testing patterns covering test structure, AAA pattern, parameterized tests, assertions, mocking, test doubles, error handling, async testing, and performance optimization. Use when writing, reviewing, or refactoring vitest tests, or when user mentions vitest, testing, TDD, test coverage, mocking, assertions, or test files (*.test.ts, *.spec.ts).
.agent/skills/vitest-best-practices/SKILL.md
Source commit eba65ebbb0a78c4a7fd25aab28e94966eddbca5b
What was checked
- Matches the observed repository HEAD
- Yes
- Scanner rules are current
- No
- Repository scan complete
- No
- Skill scan complete
- Yes
- Observed behavior
- Not checked yet
- Last checked
- Nov 4, 2026
These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.
Install this skill
Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.
An install command is unavailable: current rules, complete repository and skill scans, an eligible behavior level and a permitted license are required.
Repository context
- Repository stars (not skill ratings)
- 336
- Repository last updated
- Aug 31, 2026
- License
- MIT
Observed agent integration: codex
- agentic-ai Repository topic
- ai Repository topic
- claude-code Repository topic
- codex Repository topic
- prd Repository topic
- ralph Repository topic
- ralph-loop Repository topic
- ralph-wiggum Repository topic
- testing Derived category
- writing Derived category
Files and excerpt
File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.
Browse files
AGENTS.mddoc · 2,897 bytesSKILL.mdcore · 4,881 bytesreferences/aaa-pattern.mddoc · 7,293 bytesreferences/assertions.mddoc · 10,287 bytesreferences/async-testing.mddoc · 10,424 bytesreferences/error-handling.mddoc · 11,115 bytesreferences/organization.mddoc · 5,148 bytesreferences/parameterized-tests.mddoc · 8,969 bytesreferences/performance.mddoc · 12,264 bytesreferences/snapshot-testing.mddoc · 10,552 bytesreferences/test-doubles.mddoc · 12,469 bytesreferences/vitest-features.mddoc · 10,972 bytes
Read excerpt
# Vitest Best Practices
## When to Apply This Skill
Use this skill when you encounter any of these scenarios:
### File Patterns
- Working with `*.test.ts`, `*.spec.ts`, or similar test files
- Creating new test files for TypeScript/JavaScript modules
- Reviewing existing vitest test suites
### User Intent Keywords