convex-test
Generate Deterministic Convex Tests
Convex applications need reliable coverage for data access, authentication, errors, and scheduled work. This skill guides you through focused Vitest tests against an in-memory backend.
使用我的智能体安装
将此请求复制给你的智能体,其中包含权威 Skill 页面和清单。
Review the Skillstore skill "convex-test" from https://skillstore.io/skills/get-convex-convex-test.md and its manifest at https://skillstore.io/api/skills/get-convex-convex-test/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.你的智能体仍应展示其计划,并按安全策略请求必要确认。
Agent 可读资源
当 AI Agent、爬虫或脚本需要干净上下文,而不是读取完整页面时,请使用这些链接。
测试它
正在使用“convex-test”。 Test a task mutation that requires a signed-in user and rejects an empty title.
预期结果:
A Vitest scenario seeds the user, calls the mutation with an identity, checks the created task, and verifies the validation error for an empty title.
正在使用“convex-test”。 Verify that a query returns a user's completed tasks through an index.
预期结果:
A deterministic in-memory scenario seeds completed and open tasks, runs the query, and confirms that only the matching completed tasks appear.
正在使用“convex-test”。 Test a scheduled cleanup that removes expired records.
预期结果:
The test schedules cleanup, completes pending scheduled work, and verifies that expired records are removed while current records remain.
安全审计
安全The skill is a prompt-only guide for writing Convex tests with convex-test and Vitest. No suspicious patterns or harmful intent were found in the 24-line SKILL.md.
分享与引用此报告
分享版本化评估报告、中性徽章、嵌入卡片和引用。Skillstore 只报告证据,不判断该 Skill 是否安全。
复制报告链接
https://skillstore.io/skills/get-convex-convex-test/audits/1?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdown 徽章
[](https://skillstore.io/skills/get-convex-convex-test?utm_source=security_passport_badge)HTML 徽章
<a href="https://skillstore.io/skills/get-convex-convex-test?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/get-convex-convex-test/security.svg" alt="Skillstore security assessment" loading="lazy"></a>嵌入卡片
<iframe src="https://skillstore.io/embed/skills/get-convex-convex-test.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>学术引用 (APA · BibTeX · CFF)
APA 引用
get-convex. (2026). convex-test security audit report (audit version 1) [Author version unspecified]. Skillstore. https://skillstore.io/skills/get-convex-convex-test/audits/1BibTeX 引用
@techreport{get-convex-get-convex-convex-test-2026,
author = {get-convex},
title = {convex-test security audit report (audit version 1)},
institution = {Skillstore},
year = {2026},
number = {1},
url = {https://skillstore.io/skills/get-convex-convex-test/audits/1},
note = {Author version unspecified}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "convex-test security audit report (audit version 1)"
version: "unspecified"
type: report
authors:
- name: "get-convex"
date-released: "2026-09-21"
url: "https://skillstore.io/skills/get-convex-convex-test/audits/1"
identifiers:
- type: other
value: "skillstore:get-convex-convex-test:audit:1"
description: "Skillstore immutable audit report identifier"
Skillstore 评分
评分依据 证据置信度: 中你能构建什么
Add Backend Coverage
Create focused tests for new Convex queries and mutations before merging application changes.
Verify Access Rules
Exercise authenticated, unauthenticated, and unauthorized paths with controlled test identities.
Stabilize Scheduled Work
Test scheduled functions, error paths, and indexed data access with repeatable in-memory scenarios.
试试这些提示
Write a basic convex-test and Vitest test for my Convex mutation. Cover valid arguments, the returned value, and one seeded record.
Create tests for this Convex function with authenticated and unauthenticated identities. Verify the expected result and error behavior for each path.
Build deterministic tests for this Convex query using seeded in-memory data. Check its index filtering, ordering, empty result, and returned fields.
Design a complete convex-test suite for this scheduled Convex workflow. Cover setup, scheduling, pending work completion, error paths, and final database state.
最佳实践
- Use the in-memory convex-test backend instead of a live deployment.
- Cover authentication, error paths, and successful paths.
- Keep seeded data, identities, and time-dependent behavior deterministic.
避免
- Do not test only the successful path.
- Do not depend on real network calls or live deployment state.
- Do not leave scheduled work unfinished when asserting final state.
常见问题
What does this skill test?
Which test tools does it use?
Does it require a live Convex deployment?
Can it test authentication?
Can it test scheduled functions?
How should tests remain reliable?
开发者详情
作者
get-convex许可证
MIT
Skillstore 修订
r1
版本提示
作者未声明版本。
引用
0105ed4377e5f5985bd39b291028f5faeb43cbf2
维护新鲜度
2026/9/21
使用量
0 次下载 · 0 次浏览
文件结构
📄 SKILL.md