convex-test
Generate convex-test tests for the app's Convex functions.
- 32,720
- installs
- 0 up / 0 down, score 0.00
- votes
- 66
- repo stars
- Updated
- less than a month ago
- In the catalog since
- 30 Sept 2026
- From
- get-convex/agent-skills
Skill instructions
Rendered from the published SKILL.md, 19 lines.
Generate Convex tests
Use convex-test + vitest to test functions against an in-memory backend: args/returns, auth paths, indexes, and scheduled functions.
Workflow
- Install convex-test + vitest.
- Write tests using convexTest(schema): seed via t.run, call t.query/t.mutation, assert.
- Cover auth (withIdentity), error paths, and scheduled functions (t.finishInProgressScheduledFunctions).
- Run vitest; keep tests deterministic.
Rules
- Use convex-test (in-memory), not a live deployment.
- Cover auth + error paths, not just the happy path.
- Keep tests deterministic (no real time/network).