npm.io
1.6.5 • Published 6 years ago

jest-serializer-supertest

Licence
MIT
Version
1.6.5
Deps
2
Size
132 kB
Vulns
0
Weekly
0
Stars
2

jjest-serializer-supertest

NPM version Project Status: Active – The project has reached a stable, usable state and is being actively developed.

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)