Snapshot Testing in the Backend
The first time I learned about snapshot testing was in the context of front-end testing. It made a lot of sense. Writing an assertion-based test to check if a component was correctly rendered as HTML is tricky. And difficulty grows with the complexity of the output. Snapshot testing seemed a reasonable technique to get the job done, even with some caveats.