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
Perhaps a bit late, but i managed to get a solution of this problem by using https://enzymejs.github.io/enzyme/docs/api/ShallowWrapper/getElement.html
describe("Button", () => {
it("should render basic button correctly", () => {
const tree = shallow();
expect(tree.getElement()).toMatchSnapshot();
});
});
this work on Jest 26.5.3 and enzyme 3.10.5