jest-snapshot-serializer-ansi

v2.1.0
jest snapshot serializer for stripping ANSI escape codes

jest-snapshot-serializer-ansi

npm build

jest snapshot serializer for stripping ANSI escape codes

Changelog

Install

npm install jest-snapshot-serializer-ansi

Note: This package is now pure ESM, you may want to install jest-snapshot-serializer-ansi@1 if you'd like to use it in CJS environment

Usage

In setup file or test file:

import serializerAnsi from 'jest-snapshot-serializer-ansi'
expect.addSnapshotSerializer(serializerAnsi)

Development

# lint
pnpm run lint

# build
pnpm run build

# test
pnpm run test

License

MIT © Ika

npm i jest-snapshot-serializer-ansi

Metadata

  • MIT
  • >=16
  • Ika
  • released 7/15/2023

Downloads

Maintainers