So I\'m writing a test for my Item component and I tried to render the ItemCard
component and then use that wrapper to create a snapshot but it returns an empty
For jest v24 you need to use snapshot serializer like https://github.com/adriantoine/enzyme-to-json
source: https://github.com/facebook/jest/issues/7802
use debug() method after the wrapper
it('renders and matches the snapshot', () => {
const wrapper = shallow(<ItemCard me item={fakeItem} showButtons />);
// console.log(wrapper.debug());
expect(wrapper.debug()).toMatchSnapshot(); });