TanStackT
TanStack3y ago
3 replies
skinny-azure

Vue useQuery and Vitest

Does any one have a snipet an example or a hint how do you go about testing a component that has a useQuery in it?

Do we just mock the async function that the query is using?
image.png
Was this page helpful?