Skip to main content

testing-quality

Use when running tests, writing test cases, checking coverage, or doing type-checks. Triggers on test, unit test, vitest, Playwright, E2E test, pytest, type-check, tsc --noEmit, test coverage, regression test, test suite, pnpm test, npx vitest, npx playwright test, test file, .test.ts, .spec.ts, describe, it, expect, mock.

来源信息

仓库
george11642/george-plugins
最近来源活动
2026年3月11日 22:42
检测到的 SKILL.md 语言
英语
星标
2
分支
0

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
testing-quality
description
Use when running tests, writing test cases, checking coverage, or doing type-checks. Triggers on test, unit test, vitest, Playwright, E2E test, pytest, type-check, tsc --noEmit, test coverage, regression test, test suite, pnpm test, npx vitest, npx playwright test, test file, .test.ts, .spec.ts, describe, it, expect, mock.
# Testing Quality ## Commands | Task | Command | |------|---------| | All unit tests | `npm test` / `pnpm test` | | Single test file | `npx vitest path/to/test` | | E2E tests | `npx playwright test` | | Type check | `npx tsc --noEmit` or `npm run type-check` | | Python tests | `pytest` | | Coverage | `npx vitest --coverage` | ## Test Conventions - Unit tests: `*.test.ts` co-located with source - E2E tests: `e2e/*.spec.ts` (check project CLAUDE.md for exact path) - E2E auth state and test users: check project CLAUDE.md ## When to Test - After ANY code change: run unit tests - After TypeScript changes: run type-check - After Convex schema changes: `npx convex dev --once` - After UI changes: browser screenshot verification - New features MUST include unit tests - Bug fixes MUST include regression tests ## Test Patterns ```typescript // Vitest import { describe, it, expect } from 'vitest'; describe('feature', () => { it('should work', () => { expect(true).toBe(true); }); }); ```
在 GitHub 查看