react-lazy-load-image-component
react-lazy-load-image-component copied to clipboard
Error when test rendering component using React Test Library
I run the test (RTL) getting error TypeError: Cannot read properties of undefined (reading 'prototype')
while rendering component.
![Screen Shot 2022-09-28 at 15 21 58](https://user-images.githubusercontent.com/3140168/192728068-99f9dd5c-a7f9-48bd-a998-abae14ee7342.png)
I've tried looking everywhere but can't find a solution. I post here to get enlightenment on how to test this component. The screenshot above shows that I immediately called the component, although not directly, the result was still an error. Thanks 🙏