Not working with react testing library

This issue has been tracked since 2022-07-14.

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

rbalves wrote this answer on 2022-11-01

Have you tried creating a mock?

jest.mock('react-lazyload', () => props => <div {...props} />)
More Details About Repo
Owner Name twobin
Repo Name react-lazyload
Full Name twobin/react-lazyload
Language JavaScript
Created Date 2015-08-07
Updated Date 2022-11-29
Star Count 5639
Watcher Count 52
Fork Count 482
Issue Count 153

YOU MAY BE INTERESTED

Issue Title Created Date Updated Date