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

الانتقال إلى التثبيت

معلومات المصدر

المستودع
get-convex/convex-backend-skill
آخر نشاط في المصدر
٧ يوليو ٢٠٢٦ في ١٦:٤١
لغة SKILL.md المكتشفة
الإنجليزية
النجوم
٦
التفرعات
٨

خيارات التثبيت

يُحدَّد Prompt الذي يراجع المصدر أولًا بشكل افتراضي. يمكنك التبديل إلى أمر مباشر أو تنزيل نسخة محلية.

مراجعة ملفات المصدر

اقرأ SKILL.md وأي ملفات مرافقة يعرضها SkillsMP قبل أن تقرر التثبيت.

عرض SKILL.md

SKILL.md
تعليمات المصدر · معاينة للقراءة فقط
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).
عرض على GitHub