You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Snapshot testing is actually a big implementation detail. It saves component names, prop names and much more that will probably break on every refactor.
Snapshot False negatives quickly erode the team's trust in a test to actually find bugs and instead come to be seen as a chore on a checklist, also, most developers will just update the snapshot and get it over with.
Pros:
Inline snapshot is a good tool, using it to check equality of an object, classes or any small object can be useful and added to the specific test (not added as a different file).
Cons:
The text was updated successfully, but these errors were encountered: