Snapshot Test Helper
Write effective snapshot tests for UI components with proper scope and maintenance strategies.
Usage
Describe your components and this skill will help you write meaningful snapshot tests.
Examples
- "Write snapshot tests for my React form component"
- "Should I use inline snapshots or external snapshot files?"
- "My snapshot tests keep breaking on unrelated changes, how do I fix this?"
Guidelines
- Keep snapshots focused on the component's key output
- Use inline snapshots for small, stable component outputs
- Review snapshot changes carefully during code review
- Avoid snapshotting entire page trees, test individual components
- Combine snapshots with behavioral assertions for thorough coverage