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.
2 Replies
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
Wow that testing link didn't work at all. I'll put it on our list to fix. Here are a few resources:
https://stack.convex.dev/testing-react-components-with-convex
https://stack.convex.dev/generating-fake-data
https://discord.com/channels/1019350475847499849/1111830940126298122
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