snapshot-test-refactorer

Community

Refactor brittle snapshot tests

AuthorCamilo8902
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 resilient, focused assertions.

Core Features & Use Cases

  • Reduce Snapshot Size: Learn techniques to extract only the essential data from snapshots.
  • Focused Assertions: Replace broad snapshots with specific tests for behavior and critical data points.
  • Use Case: When your snapshot tests fail on minor UI tweaks or whitespace changes, use this Skill to refactor them into tests that verify the actual functionality and important content.

Quick Start

Use the snapshot-test-refactorer skill to refactor the snapshot tests in the provided code.

Dependency Matrix

Required Modules

None required

Components

scriptsreferences

💻 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/Camilo8902/GabyCosmetics/archive/main.zip#snapshot-test-refactorer

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.