Skip to main content

test

Generate tests for Convex functions with convex-test (queries/mutations/auth/scheduling, in-memory). TRIGGER when the user wants tests / a test suite for their Convex backend / 'how do I test this'.

Ir para a instalação

Informações da origem

Repositório
get-convex/convex-backend-skill
Última atividade na origem
7 de julho de 2026 às 16:41
Idioma detectado do SKILL.md
inglês
Estrelas
6
Forks
8

Opções de instalação

Por padrão, está selecionado o prompt que primeiro revisa a origem. Você pode mudar para um comando direto ou baixar uma cópia local.

Revise os arquivos de origem

Leia o SKILL.md e os arquivos complementares exibidos pelo SkillsMP antes de decidir se vai instalar.

Exibindo SKILL.md

SKILL.md
Instruções da origem · Visualização somente leitura
name
test
description
Generate tests for Convex functions with convex-test (queries/mutations/auth/scheduling, in-memory). TRIGGER when the user wants tests / a test suite for their Convex backend / 'how do I test this'.
# 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).
Ver no GitHub