开发者社区> 镜像站> NPM> jest-serializer-ansi
jest-serializer-ansi
Jest serializer to strip ANSI escape codes
Last updated 3 years ago by joaogranado .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm 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 (3 years ago)

4 Versions

  • 1.0.3                                ...           3 years ago
  • 1.0.2                                ...           3 years ago
  • 1.0.1                                ...           3 years ago
  • 1.0.0                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 7
This Month 5
Last Day 3
Last Week 50
Last Month 123
Dependencies (3)
Dev Dependencies (2)
Dependents (1)