Testing with React Testing Library
Hi! I am trying to test my component using react testing library.
My test is simply rendering the component:
But I get this error:
My guess is that I have to somehow wrap the DestinationForm component with some context so that it is aware of the query client but I'm not sure how to.
I'm super new to testing so any help is appreciated(:
Thank you!
1 Reply
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View