
Description
Generate convex-test tests for the app's Convex functions.
SKILL.md
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).
More skills from the agent-skills repository
View all 30 skillsconvex
guide Convex project setup and usage
Aug 4BackendConvexDatabaseconvex-add
add capabilities to Convex applications
Aug 4BackendConvexEngineeringconvex-advisor
analyze Convex deployment performance and costs
Aug 4ConvexCost OptimizationObservabilityPerformanceconvex-agent
add AI agent backends to Convex
Aug 4AgentsConvexLLMRAGconvex-auth
add authentication to Convex applications
Aug 4AuthAuthenticationConvexconvex-backup
configure and test Convex database backups
Aug 4BackupConvexDatabaseReliability
More from Convex
View publisherconvex-billing
integrate Stripe billing in Convex apps
agent-skills
Aug 4ConvexPaymentsStripeconvex-cost
analyze and forecast Convex application costs
agent-skills
Aug 4AnalyticsCost OptimizationPerformanceconvex-create-component
build reusable Convex components
agent-skills
Jul 12API DevelopmentArchitectureBackendConvexconvex-crons
add scheduled cron jobs to Convex
agent-skills
Aug 4AutomationConvexSchedulingconvex-deploy-guard
manage Convex deployment safety and consent
agent-skills
Aug 4ConvexDeploymentOperationsSecurityconvex-design
build reactive backends with Convex
agent-skills
Aug 4AuthBackendConvexDatabase +1