Snapshot Testing
← Back to Advanced Testing Techniques
Record output and detect unintended changes. The first run saves a snapshot of the output; subsequent runs compare against it. Any change must be explicitly approved. Common for React components, API responses, and serialized data.
Key Properties
Related
- Visual Regression Testing (visual snapshots)