Not working with react testing library
sjaugmented opened this issue · 1 comments
sjaugmented commented
All of my unit tests are failing with the console error: [TypeError: Cannot read properties of null (reading 'addEventListener')]
rbalves commented
Have you tried creating a mock?
jest.mock('react-lazyload', () => props => <div {...props} />)