Skip to content
Skillpedia
Testing9.5k · #12260

convex-test

What it does

This skill writes tests for the functions in a Convex app. It is for builders who want to catch bugs before users do.

When to use it

  • ✓When you have written Convex functions and want tests for them.
  • ✓When you want to check that sign-in rules block people who should not get in.
  • ✓When you add scheduled jobs and want to confirm they run as expected.

Skill link

https://github.com/openclaw/clawhub/blob/main/.agents/skills/convex-test/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/openclaw/clawhub/blob/main/.agents/skills/convex-test/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

Example of what to ask your AI

“Write automated tests for my Convex functions, including the cases where a user is not signed in.”

5 new skills a week. 1 minute to read.

How it works

The agent installs the testing tools, writes tests that run against a simulated Convex backend in memory, seeds sample data, and calls your functions to check the results.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

<!-- 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

  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).
FAQ

Do the tests use my live database?

No. They run against an in-memory copy, not a live deployment.

Do the tests only check the normal case?

No. The skill covers sign-in and error paths as well as normal use.

Are the tests repeatable?

The skill keeps them deterministic, so they do not depend on the real clock or network.

Details

Original description by the author

Generate convex-test tests for the app's Convex functions.

repo: openclaw/clawhub

Popularity

GitHub stars
9.5k
Ranking position
#12260
License
MIT
Updated
11/2/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills