https://github.com/eyolas/jest-serializer-supertest
Remove date and url from your supertest response Jest snapshots
https://github.com/eyolas/jest-serializer-supertest
Last synced: 8 months ago
JSON representation
Remove date and url from your supertest response Jest snapshots
- Host: GitHub
- URL: https://github.com/eyolas/jest-serializer-supertest
- Owner: eyolas
- Created: 2017-07-16T20:34:31.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2022-12-03T15:44:35.000Z (over 3 years ago)
- Last Synced: 2025-10-09T19:34:53.295Z (8 months ago)
- Language: JavaScript
- Size: 423 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# jjest-serializer-supertest
[![NPM version][npm-image]][npm-url]
[](http://www.repostatus.org/#active)
Remove absolute paths from your Jest snapshots.
#### Quick Start
```bash
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:
```js
const serializer = require('jest-serializer-supertest')
expect.addSnapshotSerializer(serializer)
```
[npm-image]: https://img.shields.io/npm/v/jest-serializer-supertest.svg?style=flat-square
[npm-url]: https://github.com/eyolas/jest-serializer-supertest