ClaudeCodeMod

All shelves / Skills

convex-test

convex/agent-skills · 46.2k installs · 68 stars

Skill Use convex-test + vitest to test functions against an in-memory backend: args/returns, auth paths, indexes, and scheduled functions.

Install

In your shell
npx -y skills add convex/agent-skills --skill convex-test --agent claude-code

Run in a terminal. Claude loads the skill when a task calls for it. Check the repo's README before you run it.

Open the repo

Files

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

  1. Install convex-test + vitest.
  2. Write tests using convexTest(schema): seed via t.run, call t.query/t.mutation, assert.
  3. Cover auth (withIdentity), error paths, and scheduled functions (t.finishInProgressScheduledFunctions).
  4. 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).

Facts

Kind
Skill
Repo
convex/agent-skills
Group
Uncategorized
Installs
46.2k
Stars
68

Same name on this shelf 1

  1. 1288convex-testget-convex/agent-skills31k

From the same repo

  1. 912convex-advisorconvex/agent-skills46.2k
  2. 913convex-addconvex/agent-skills46.2k
  3. 914convex-agentconvex/agent-skills46.2k
  4. 915convex-costconvex/agent-skills46.2k
  5. 916convex-insightsconvex/agent-skills46.2k
  6. 917convex-migrate-rehearseconvex/agent-skills46.2k