Issue with useMutation() when trying to test React component
Hi,
I am having issues with my test failing since it cannot render the component properly because of this error:
Component:
If someone has also set up testing with vitest in their project, I would also be down to just start from the beginning with you. I have been trying to get this to render all day 😕
4 Replies
dont have a ton of xp here but im guessing that the problem is that vitest is not running your compoent thru next
and trpc requires this thing in _app.tsx
also fun fact. if you start your code with:
uhh
hard to write
but 3 backticks + 'ts' then you get syntax highlighting in discord
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Hey @zeztron probably a long shot since it's been so long since you posted this. Can you share an example of what you are talking about here?
Yes, can you please provide an example of this?