Skip to content

Latest commit

 

History

History
3 lines (2 loc) · 354 Bytes

prefer-snapshot-tests.md

File metadata and controls

3 lines (2 loc) · 354 Bytes

Prefer Snapshot Tests

Where possible Jest's snapshot testing feature is used in order to validate key parts of the API response. Where this is not straightforward, for example when the response returns creation dates which vary over time, we've fallen back to more specific assertions.