Closed rakeshkk16 closed 3 years ago
I have the exact same Error using Typescript, testing with Jest in a create-react-app bootstrap
I have this issue too. did anyone solve it? usealert seems to be the only thing breaking my unit tests :/
Actually, found the solution. It's here: https://github.com/schiehll/react-alert/issues/148
(wrap in AlertProvider)
TypeError: Cannot read property 'current' of undefined
I am not using useRef in my component and test cases started failing only after adding this react alert.