jest-serializer-ansi
Jest serializer to strip ANSI escape codes
Last updated 9 years ago by joaogranado .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install jest-serializer-ansi 
SYNC missed versions from official npm registry.

jest-serializer-ansi

Jest serializer to strip ANSI escape codes

Installation

npm install --save-dev jest-serializer-ansi
yarn add jest-serializer-ansi

Add the serializer to snapshotSerializers field in your package.json as follows:

{
  ...
  "jest": {
    "snapshotSerializers": [
      "jest-serializer-ansi"
    ]
  }
}

Or include only in individual tests:

const serializer = require('jest-serializer-ansi');

expect.addSnapshotSerializer(serializer);

Current Tags

  • 1.0.3                                ...           latest (9 years ago)

4 Versions

  • 1.0.3                                ...           9 years ago
  • 1.0.2                                ...           9 years ago
  • 1.0.1                                ...           9 years ago
  • 1.0.0                                ...           9 years ago
Maintainers (1)
Downloads
Total 17
Today 0
This Week 0
This Month 9
Last Day 0
Last Week 3
Last Month 1
Dependencies (3)
Dev Dependencies (2)
Dependents (0)
None

© 2010 - cnpmjs.org x YWFE | Home | YWFE