Concept: Snapshot Files
Question
Should snapshot files (.snap) be committed to version control?
Hint
Snapshots need to persist between runs to be useful.
Explanation
Snapshot files should be committed to version control. They represent the expected output and must persist between test runs. If they're not committed, every run creates new snapshots and nothing is actually verified. Snapshot changes should be reviewed in code reviews to ensure the changes are intentional and correct.
Related Resources
Related Lessons
- Snapshot Testing
Using snapshots effectively.
Look up unfamiliar terms
A beginner-friendly glossary explains jargon in plain English — variables, functions, DOM, Promise, and more.
Decode error messages
Plain-English explanations of common errors — what they mean, why they happen, and how to fix them.
Build real projects
Apply what you learned by building guided projects with starter code and solutions.