alpha-serializer-jest
TypeScript icon, indicating that this package has built-in type declarations

0.1.7 • Public • Published

alpha-serializer-jest

Snapshot serializer for jest test runner.

Install

npm install --save alpha-serializer-jest

Usage

Via global config

{
    ...
    "jest": {
        "snapshot-serializers": ["alpha-serializer-jest"]
    }
}

Or in your tests code

const snapshotSerializer = require('alpha-serializer-jest');
 
expect.addSnapshotSerializer(snapshotSerializer);
 
// with custom normalizer
const {create} = require('alpha-serializer-jest');
 
expect.addSnapshotSerializer(create(normalizer));

Package Sidebar

Install

npm i alpha-serializer-jest

Weekly Downloads

17

Version

0.1.7

License

MIT

Unpacked Size

7.59 kB

Total Files

15

Last publish

Collaborators

  • wookieb