Skip to content

eyolas/jest-serializer-supertest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

Remove date and url from your supertest response Jest snapshots

Resources

Stars

Watchers

Forks

Packages

No packages published