snapshot-test-cleanup
Installation
SKILL.md
snapshot-test-cleanup
A structured refactoring skill for replacing snapshot tests with targeted, meaningful assertions — so tests catch real regressions instead of rubber-stamping every render.
Why Snapshots Become Brittle
Snapshot tests fail for two reasons: real bugs and irrelevant changes. The problem is they can't tell which is which. A snapshot fails when:
- A classname was renamed
- A dependency bumped its version and changed whitespace
- A dev ran
--updateSnapshotto silence CI without reading the diff - An actual regression occurred