← スキル一覧に戻る

testing-base
by JasonPaff
Website for Bobblehead Collectors
⭐ 2🍴 0📅 2026年1月19日
SKILL.md
name: testing-base description: Enforces project shared testing conventions for test structure, file naming, description patterns, assertions, and anti-patterns. This base skill is loaded by all test-type specialists.
Testing Base Skill
Purpose
This skill provides shared testing conventions used across all test types (unit, component, integration, E2E). It establishes consistent patterns for test structure, file organization, naming conventions, and common anti-patterns to avoid.
Activation
This skill activates when:
- Creating or modifying any test file (
.test.ts,.test.tsx,.spec.ts) - Working with test setup files in
tests/setup/ - Implementing test factories or mock handlers
Workflow
- Detect testing work (file path contains
tests/or matches test file patterns) - Load
references/Testing-Base-Conventions.md - Apply shared conventions to all test code
- Validate against common anti-patterns
- Report any violations found
Key Patterns (REQUIRED)
Test Structure
- Follow the project's test directory organization
- Use correct file naming patterns for each test type
- Keep test files close to their corresponding source files in the test hierarchy
Description Conventions
- Use
describe/itblocks with clear, behavior-focused descriptions - Organize tests: positive cases first, edge cases, then error cases
- Use globals (no imports needed for
describe/it/expect/vi)
Assertion Patterns
- Use semantic assertions (
toBeInTheDocument,toHaveLength, etc.) - Prefer specific matchers over generic
toBe(true) - Use
async/awaitproperly with async assertions
Anti-Patterns to Avoid
- Never test implementation details
- Never use
test.onlyin committed code - Never skip test cleanup
- Never use arbitrary timeouts
- Never hardcode test data (use factories)
- Never test multiple behaviors in one test
References
references/Testing-Base-Conventions.md- Complete shared testing conventions
スコア
総合スコア
40/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です