skills/skills.volces.com/snapshot-writer

snapshot-writer

Installation
SKILL.md

Snapshot Test Writer

Snapshot tests are the fastest way to catch unintended UI changes. But writing them for every component gets tedious fast. This tool reads your React components and generates snapshot tests automatically. It figures out the props, renders the component, and creates the snapshot assertions.

One command. Zero config. Just works.

Quick Start

npx ai-snapshot-test src/components/

What It Does

  • Reads React components and generates Jest snapshot test files
  • Automatically detects props and creates test cases with different prop combinations
  • Handles components with context providers and wrapper dependencies
  • Generates both default state and edge case snapshots
  • Outputs .test.tsx files ready to run with Jest
Installs
3
First Seen
Apr 21, 2026
snapshot-writer from skills.volces.com