jest-serializer-supertest
v1.6.5
Published
Remove date and url from your supertest response Jest snapshots
Downloads
167
Readme
jjest-serializer-supertest
Remove absolute paths from your Jest snapshots.
Quick Start
npm install --save-dev jest-serializer-supertest
Add this to your package.json
Jest config:
"jest": {
"snapshotSerializers": [
"jest-serializer-supertest"
]
}
Or include only in individual tests:
const serializer = require('jest-serializer-supertest')
expect.addSnapshotSerializer(serializer)