dugite
dugite copied to clipboard
Use Jest snapshots
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.