jest snapshot serializer for stripping ANSI escape codes
MIT License
jest snapshot serializer for stripping ANSI escape codes
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
In setup file or test file:
import serializerAnsi from 'jest-snapshot-serializer-ansi'
expect.addSnapshotSerializer(serializerAnsi)
# lint
pnpm run lint
# build
pnpm run build
# test
pnpm run test
MIT © Ika