Skip to content

Using snapshots to mock output of functions/methods #936

Closed Answered by noahnu
NixBiks asked this question in Q&A
Discussion options

You must be logged in to vote

This has come up a few times. The main issue is that syrupy was not built with deserialization in mind. When we do snapshot equality checks we compare 2 serialized strings, not the deserialized data. I think it's theoretically possible with a custom extension, perhaps even with the single file extension that stores raw data with no transformations.

#928

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by noahnu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants