nuǝɯ pǝɥsᴉꞁod mǝu
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

alpha-serializer-jest

0.1.0 • 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"]
    }
}

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));

install

npm i alpha-serializer-jest

Downloadsweekly downloads

0

version

0.1.0

license

MIT

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability