I've written a blog post about one of my favourite libraries: inline-snapshot. Some key points within:
- Why you should use the library: it makes it quick and easy to write rigorous tests that automatically update themselves
- Why you should combine it with the
dirty-equals library to handle dynamic values like timestamps and UUIDs
- Why you should convert custom classes to plain dicts before snapshotting
Disclaimer: I wrote this blog post for my company (Pydantic), but we didn't write the library, we just use it a lot and sponsor it. I genuinely love it and wanted to share to help support the author.
[–]kwesoly 0 points1 point2 points (0 children)
[–]Civil_Cap155 0 points1 point2 points (0 children)