Backend & APIAttention100100/100

Convex Test

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

ou envoie-le directement à ton agent.

Installer dans ton projet

$ npx arboris-cli@latest install convex-test
get-convex
get-convex/agent-skills
Contenu à copier
---
name: convex-test
description: "Generate convex-test tests for the app's Convex functions."
---

<!-- 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).
Colle ce Markdown dans ton agent ou utilise les boutons ci-dessus pour l’écrire dans ton projet.

Ce que fait Convex Test

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

Comment utiliser Convex Test

1
Copie le prompt
Un clic copie le prompt packagé (ou l'envoie à ton agent).
2
L'agent installe le skill
Il ajoute le SKILL.md et ses ressources à ton projet.
3
Activation automatique
Le skill s'active dès que le contexte correspond.

Déclencheurs pour Convex Test

Dis simplement à ton agent quelque chose comme :

Applique le skill convex-test à cette tâche
Utilise convex-test pour améliorer cette implémentation
Passe en revue ce sujet avec convex-test

Skills liés à Convex Test