Testing · Junior · Question 58 of 78
What does a snapshot test do?
- ✓Correct answer: Saves the serialized output on the first run and compares it on later runs
- 2Takes a screenshot of the page in a real browser
- 3Checks that the component renders in under 16 ms
Explanation
An intentional change is accepted with -u (update). Large snapshots are easy to approve without reading - prefer small, focused ones.