Mock onError using Jest and React Testing Library
Hi everyone, need some help on how to mock the onError function. Basically I want to test the onError function if there's an error I want to test if the error displays? BTW I'm using react Toastify to display notification. any help is appreciated.
thanks,
So far I managed to make the success notification
thanks,
So far I managed to make the success notification
