Skip to content

createSerializer

Choose a tag to compare

@adriantoine adriantoine released this 03 Oct 11:37
· 101 commits to master since this release

A new function createSerializer has been added thanks to @vlad-zhukov (#76) πŸŽ‰

This function allows you to use the serializer with the option object, for example:

import {createSerializer} from 'enzyme-to-json';

expect.addSnapshotSerializer(createSerializer({mode: 'deep'}));