Testing React Components with Convex
Stack convex.dev
This is what was read here when it was published. convex.dev no longer carries it in what it publishes now.
Listen to this summary
Oftentimes during testing we want to mock out our backend so we can unit test our UI components without talking to our actual server code. In this article, we’ll explore options for testing React components that call Convex React hooks using mocking and dependency injection. To do this, I’ve written a sample TypeScript React app using the Vitest testing framework. The patterns presented in this post are also applicable to other JavaScript apps and frameworks.
More ways to use this
Open on another device
Scan to open this page. Your saved notes and account access are not included.
The adversary economy: How threat actors are reacting to PHP2Shell