Update Snapshots
- Find outdated snapshots:
npx jest --updateSnapshot --dry-run 2>/dev/null || bun test --update-snapshots --dry-run 2>/dev/null || echo "Run manually"
- For each snapshot that would change:
- Show the diff (old vs new)
- Explain what component/output changed
- Classify: intentional UI change vs potential regression
- Ask the user:
- Update all? (if all changes are clearly intentional)
- Review each one? (if any look suspicious)
- On confirmation, update snapshots:
npx jest --updateSnapshot
- List what was updated and flag any that looked suspicious for manual review.
Use this skill with your AI agent:
Open on Skill Issue to copy, download, or add to your library.
Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.