contexttesting / zoroaster

A modern JavaScript testing framework for Node.js with support for test contexts and masks.
https://www.contexttesting.com
MIT License
5 stars 0 forks source link

Better snapshot serialiser. #53

Open zavr-1 opened 5 years ago

zavr-1 commented 5 years ago

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 commented 5 years ago