Enzym do JSON
$ npm install --save-dev enzyme-to-json
Rich Rattlesnake
$ npm install --save-dev enzyme-to-json
import {createSerializer} from 'enzyme-to-json';
expect.addSnapshotSerializer(createSerializer({mode: 'deep'}));