What problem does it solve?
Writing consistent visual regression snapshot tests for React components is repetitive and error-prone, requiring knowledge of Sentry's theme setup, import conventions, and snapshot naming patterns.
Core Features & Use Cases
- Automated Snapshot File Generation: Creates colocated
<component-name>.snapshots.tsx files following Sentry's established design system patterns.
- Prop Analysis: Reads component TypeScript props to identify union variants, boolean toggles, and interactive states worth snapshotting.
- Theme Coverage: Automatically wraps all snapshots in light and dark theme loops using
describe.each.
- Use Case: When adding a new core component like a Switch or Alert, ask the Skill to generate snapshot tests and it produces a complete file covering variants, sizes, disabled states, and both themes with correct imports and metadata.
Quick Start
Ask the AI to generate snapshot tests for the Button component in static/app/components/core/button.