
Convex Test
Generate convex-test tests for the app's Convex functions.
Install
npx skills add openclaw/clawhub --skill convex-test -g -a claude-code -y- Repository
- openclaw/clawhub9.5k
- Category
- Testing
- Updated
- 3d ago
- License
- MIT
- Context cost
- Lightabout 176 tokens
- Runs scripts
- No, instructions only
What it does
Generate convex-test tests for the app's Convex functions.
<!-- GENERATED from convex-agents content/capabilities/test.json, do not edit by hand. -->
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).


