Snapshot update

From berkcangumusisik/claude-code-practices · View interactive version

Snapshot update is an AI agent skill from the GitHub repository berkcangumusisik/claude-code-practices. Reviews and selectively updates outdated Jest/Vitest snapshots

How to use this skill

Skill file

Update Snapshots

  1. Find outdated snapshots:
npx jest --updateSnapshot --dry-run 2>/dev/null || bun test --update-snapshots --dry-run 2>/dev/null || echo "Run manually"
  1. For each snapshot that would change:
  1. Ask the user:
  1. On confirmation, update snapshots:
npx jest --updateSnapshot
  1. 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.