Skip to main content

test

Write convex-test tests for Convex functions (in-memory, auth + error paths). TRIGGER on a test-this-backend request.

Source facts

Repository
convex/convex-codex-plugin
Last source activity
July 7, 2026 at 16:41
Detected SKILL.md language
English
Stars
5
Forks
0

Install options

The review-first prompt is selected by default. You can switch to a direct command or download a local copy.

Review the source files

Read SKILL.md and any companion files shown by SkillsMP before deciding whether to install.

Showing SKILL.md

SKILL.md
Source instructions · Read-only preview
name
test
description
Write convex-test tests for Convex functions (in-memory, auth + error paths). TRIGGER on a test-this-backend request.
license
Apache-2.0
# Generate Convex tests Use convex-test + vitest to test functions against an in-memory backend: args/returns, auth paths, indexes, and scheduled functions. ## Steps 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).
View on GitHub