A snapshot serializer for Ezyme
npm install jest-serializer-enzymeThis is a serializer for Enzyme backed by enzyme-to-json, I suggest looking at enzyme-to-json for the implementation details
#### Install it
```
npm install --save-dev jest-serializer-enzyme
#### Add it to your jest config
`json`
"jest": {
"snapshotSerializers": ["
}
More about Jest's snapshotSerializer config here.
#### Enjoy
`javascript
import React from 'react';
import { shallow } from 'enzyme';
const Bar = ({ text }) =>
{text}
const Foo = () => (
it('Renders', () => {
const wrapper = shallow(
expect(wrapper).toMatchSnapshot();
});
``