snapshot-test-refactorer
CommunityImprove brittle snapshot tests.
Authorzinohome
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill addresses the brittleness and maintenance overhead of traditional snapshot tests by providing strategies to refactor them into more focused, resilient, and maintainable assertions.
Core Features & Use Cases
- Refactor Brittle Snapshots: Convert large, failure-prone snapshots into specific, targeted assertions that test behavior rather than implementation details.
- Reduce Snapshot Size: Learn techniques to extract only meaningful data and assertions, making diffs easier to review.
- Use Case: When a minor UI change causes a snapshot test to fail, indicating the snapshot is too broad, use this Skill to rewrite the test to only assert on the critical elements that should have changed.
Quick Start
Refactor the snapshot tests in the current directory to use specific assertions instead of full component snapshots.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: snapshot-test-refactorer Download link: https://github.com/zinohome/CozyChat/archive/main.zip#snapshot-test-refactorer Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.