testing-patterns
Installation
SKILL.md
Testing Patterns & Best Practices
Testing Principles
1. Test Behavior, Not Implementation
- Test what the code does, not how it does it
- Tests shouldn't break when refactoring
- Focus on inputs and outputs
2. Arrange-Act-Assert (AAA)
// Arrange - Set up test data
const user = { name: 'John', email: 'john@example.com' }
// Act - Execute the code
const result = validateUser(user)