Problem Statement
What does snapshot testing in Jest verify?
Explanation
Snapshot testing ensures that the output of a component hasn’t changed unexpectedly.
When a UI change is intentional, developers must update the stored snapshot manually.
Get the Preplance app for a seamless learning experience. Practice offline, get daily streaks, and stay ahead with real-time interview updates.
Get it on
Google Play
4.9/5 Rating on Store
React Native · Interview Question
Detailed answer, explanation and code for this interview question. Ideal for React Native interview preparation, coding rounds and viva questions.
What does snapshot testing in Jest verify?
Master React Native with our complete collection of questions, tutorials and guides.