DEV Community

Discussion on: Why I've Stopped Writing Snapshots Tests in Jest

Collapse
 
jessekphillips profile image
Jesse Phillips • Edited

Never tested with snapshots, avoid test recording. Basically you identified what I find wrong with the optimize for fixing tests mantality.

The expectation that you can just update your tests when an expected change happens allowing for tests to surface unexpected changes, ignores the behavior of the human mind. Evaluation of the test needing to change will dwindle especially when easy to update.

Edit: This does not mean do the same thing and make it hard to update.