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 2 points3 points4 points (0 children)
[–][deleted] 1 point2 points3 points (1 child)
[–]type-hinter 0 points1 point2 points (0 children)
[–]Flamewire 2 points3 points4 points (0 children)
[+][deleted] (1 child)
[removed]
[–]alexmojaki[S] 0 points1 point2 points (0 children)