mikeysee
mikeysee2y ago

Docs on Testing

One of the few things that is missing from the excellent docs is testing. I would love to see a section dedicated to this and the best practices. As @james talked about Testing at length in his talk (https://discord.com/channels/1019350475847499849/1132904064179511317/1133213369722228786) I would have thought it would have been something you would have wanted to highlight.
No description
2 Replies
Indy
Indy2y ago
Agreed we can definitely do better about this in docs. The team has internally been working on some ideas on how to make this easier. We do have some patterns in Stack, and occasionally talked about it in discord: https://search.convex.dev/?q=Testing
Convex Developer Search
Search Docs, Stack, Discord all at once
Indy
Indy2y ago
Testing React Components with Convex
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 ar...
Testing Your App: How to Generate Fake Data
Learn how to generate fake data for your dev deployments using the Faker library