createSerializer
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'}));