Reminds me of the awesome bug report I saw once: ‘Everything is broken. Steps to reproduce: do anything. Expected result: it should work’.
—Felipe Knorr Kuhn
Introduction
When we think about writing tests, we usually think about defining expected results and then writing tests to validate them. But what if we know our code already executes as expected, and all we want to do is to prevent regression in the future?
Snapshot testing is all about saving our current state persistency once we know it’s stable and then making an ongoing comparison in each run.
What is Snapshot Testing
How to ...