Agent Skills
› openclaw/clawhub
› convex-test
convex-test
GitHub该技能用于为Convex应用生成测试用例,结合convex-test和vitest在内存后端对函数进行测试,覆盖参数、返回值、认证路径及定时任务。
Trigger Scenarios
需要为Convex函数编写单元测试时
需要验证Convex查询或变更的边界条件与错误路径时
Install
npx skills add openclaw/clawhub --skill convex-test -g -y
SKILL.md
Frontmatter
{
"name": "convex-test",
"description": "Generate convex-test tests for the app's Convex functions."
}
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).
Version History
- d6a8c68 Current 2026-08-20 02:44


