dugite icon indicating copy to clipboard operation
dugite copied to clipboard

Use Jest snapshots

Open j-f1 opened this issue 7 years ago • 0 comments

Jest’s snapshot testing feature converts the passed object to a human-readable string that is saved to a separate file. It can be used to ensure that objects are structured as expected without having to check each property individually. There are also ways to make checks on the snapshotted object less strict.

j-f1 avatar Nov 06 '18 12:11 j-f1