twobin/react-lazyload

Not working with react testing library

sjaugmented opened this issue · 1 comments

All of my unit tests are failing with the console error: [TypeError: Cannot read properties of null (reading 'addEventListener')]

Have you tried creating a mock?

jest.mock('react-lazyload', () => props => <div {...props} />)