**AI-friendly comprehensive testing guidance for Vitest with practical patterns and behavior-driven development.**
AI-friendly testing guidance for Vitest with focus on practical patterns, testability, and behavior-driven development.
📋 Note: This skill is currently in development (40% complete). See IMPLEMENTATION_STATUS.md for complete context on progress and how to resume development.
Testing fundamentals that guide all decisions:
Approaches for different testing scenarios:
Ready-to-use patterns for common scenarios:
Transform hard-to-test code into testable code:
Full implementations with tests:
Fast lookups and decision aids:
How this skill integrates with Claude Code agents:
1. Check Decision Tree → What type of test?
2. Apply F.I.R.S.T Principles → Fast, isolated tests
3. Use AAA Pattern → Arrange, Act, Assert
4. Follow Black Box Strategy → Test public APIs
5. Reference Complete Example → Template for implementation
1. Write Failing Test → Reproduce the bug
2. Fix Implementation → Make test pass
3. Add Edge Cases → Prevent regression
4. Verify with Coverage → Ensure adequate coverage
1. Ensure Tests Pass → Green before refactor
2. Extract Testable Units → Use refactoring patterns
3. Add Granular Tests → Test extracted units
4. Verify Behavior → All tests still pass
1. Check Test Coverage → Adequate coverage?
2. Review Test Quality → F.I.R.S.T principles?
3. Verify Black Box → Testing behavior not implementation?
4. Assess Maintainability → Clear, readable tests?
This skill follows these core beliefs:
Behavior over Implementation
Example-Driven Learning
Integration with Workflow
Testability by Design
Start here: Decision Tree - Find the right testing approach for your scenario
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer