react-lazy-load-image-component icon indicating copy to clipboard operation
react-lazy-load-image-component copied to clipboard

Error when test rendering component using React Test Library

Open wisnuvb opened this issue 1 year ago • 2 comments

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

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 🙏

wisnuvb avatar Sep 28 '22 08:09 wisnuvb