Open JPStrydom opened 6 years ago
I am experiencing the same issue.
I managed to temporarily solve the issue by having the following in my jest-setup.js
file:
import React from 'react';
import { configure } from 'enzyme';
import Adapter from 'enzyme-adapter-react-16';
configure({ adapter: new Adapter() });
jest.mock('react-crossfade-image', () => <div />);
This isn't an ideal solution, but it works for the time being.
Whenever I have this package imported in a file, Jest gives me the following error message for that file:
I tried adding it as a transform ignore pattern, but it didn't work.
Any idea how to fix t?