EvaE
Convex Community14mo ago
17 replies
Eva

React Testing Library + Vitest + Convex Test?

Can convex-test be used with Vitest and React Testing Library during unit tests for components?

Docs for convex-test point to examples of testing queries and mutations directly (from within the backend convex directory). Can it also be used to mock component tests which indirectly trigger Convex queries and mutations? Are there best practice examples of this I can see?
Was this page helpful?