50 words
1 minutes
Snapshot testing with Verify
2023-02-10

References:

https://github.com/VerifyTests/Verify

I have used this in the past and it’s pretty cool as you can compare complex data models, like JSON objects (it does serializing for you) during assert and you can ignore fields that doesn’t matter. I think it even ignores fields that typically changes (like guid’s) by default…

Verify Example

Snapshot testing with Verify
https://fuwari.vercel.app/posts/dotnet/snapshot-testing-with-verify/
Author
cognitive;overload
Published at
2023-02-10
License
CC BY