0
Snapshot test
Kullanıcı arayüzü bileşenleri veya serileştirilebilir çıkışlar için anlık görüntü testleri oluşturun.
yazan kuscubasiece·8 Eylül 2026
Kaynak: rohitg00/awesome-claude-code-toolkit · Apache-2.0
Kullanıcı arayüzü bileşenleri veya serileştirilebilir çıkışlar için anlık görüntü testleri oluşturun.
Kaynak: rohitg00/awesome-claude-code-toolkit · Apache-2.0
mkdir -p .claude/commands && curl -sL https://www.antrophiclove.com/api/kaynak/snapshot-test/raw -o .claude/commands/snapshot-test.mdHedef dosya: .claude/commands/snapshot-test.md
Generate snapshot tests for UI components or serializable outputs.
@testing-library/react with render for DOM snapshots.react-test-renderer for tree snapshots if needed.Generated: <N> snapshot tests in <file>
Snapshots:
- <ComponentName> default rendering
- <ComponentName> loading state
- <ComponentName> error state
- <ComponentName> with data
Snapshot file: <path to .snap file>
toMatchInlineSnapshot) for small outputs under 20 lines.