Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better snapshot serialiser. #53

Open
zavr-1 opened this issue Mar 20, 2019 · 1 comment
Open

Better snapshot serialiser. #53

zavr-1 opened this issue Mar 20, 2019 · 1 comment

Comments

@zavr-1
Copy link
Contributor

zavr-1 commented Mar 20, 2019

When JSON is written, some fields will be lost, which are reported as missing on the snapshot test when the actual data has not yet lost them. Do JSON.parse(JSON.stringify(res)) before comparing to the snapshot.

@zavr-1
Copy link
Contributor Author

zavr-1 commented Mar 20, 2019

  • handle errors when cannot parse snapshot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant