26th September 2023
TIL
Snapshot testing with Syrupy
— I'm a big fan of snapshot testing - writing tests where you compare the output of some function to a previously saved version, and can re-generate that version from scratch any time something changes.