gen-test
星标1
分支0
更新时间2026年3月8日 16:56
Generate a vitest test file following project TDD conventions
安装
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
SKILL.md
readonly菜单
Generate a vitest test file following project TDD conventions
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | gen-test |
| description | Generate a vitest test file following project TDD conventions |
| disable-model-invocation | true |
Create a vitest test file for a given source file, following this project's conventions.
/gen-test <path-to-source-file>
__tests__/ (e.g., lib/foo/bar.ts → __tests__/lib/foo/bar.test.ts).import { describe, expect, it } from 'vitest'@/ alias@testing-library/react and @testing-library/user-eventnpx vitest run <test-file-path> to verify tests execute.