react-lazyload icon indicating copy to clipboard operation
react-lazyload copied to clipboard

Not working with react testing library

Open sjaugmented opened this issue 3 years ago • 1 comments

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

sjaugmented avatar Jul 14 '22 22:07 sjaugmented

Have you tried creating a mock?

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

rbalves avatar Nov 01 '22 16:11 rbalves