Question 7 of 10Pro Only
What is snapshot testing with Jest? What are its advantages and disadvantages?
Sample answer preview
Snapshot testing is a technique where Jest captures the render output of a component and compares it to future runs. It is useful for detecting unexpected changes in the interface. Here is how it works.
snapshottoMatchSnapshottoMatchInlineSnapshotregression testingUI testing