← スキル一覧に戻る

test-infrastructure
by JasonPaff
Website for Bobblehead Collectors
⭐ 2🍴 0📅 2026年1月19日
SKILL.md
name: test-infrastructure description: Enforces project test infrastructure conventions for factories, MSW handlers, mock data, Page Objects, and shared test utilities.
Test Infrastructure Skill
Purpose
This skill provides test infrastructure conventions for creating reusable testing foundations including factories, MSW handlers, mock data, and Page Object Model classes.
Activation
This skill activates when:
- Creating or modifying files in
tests/fixtures/ - Creating or modifying files in
tests/mocks/ - Creating or modifying files in
tests/helpers/ - Creating or modifying Page Objects in
tests/e2e/pages/ - Creating or modifying E2E helpers in
tests/e2e/helpers/
File Patterns
tests/fixtures/**/*.factory.tstests/mocks/**/*.handlers.tstests/mocks/**/*.mock.tstests/mocks/data/**/*.mock.tstests/e2e/pages/**/*.page.tstests/e2e/helpers/**/*.tstests/helpers/**/*.ts
Workflow
- Detect infrastructure work (file path matches patterns above)
- Load
references/Test-Infrastructure-Conventions.md - Also load
testing-baseskill for shared conventions - Apply infrastructure patterns for the specific type
- Ensure consistent naming and export patterns
Key Patterns (REQUIRED)
Factories
- Async functions returning database entities
- Accept
overridesparameter for customization - Generate unique IDs using timestamps
- Export named factory functions
MSW Handlers
- Use
httpfrom MSW for route handlers - Return
HttpResponse.json()for JSON responses - Export handlers array for server setup
Page Objects
- Extend
BasePageclass - Define abstract
urlproperty - Use
byTestIdhelper for element location
Mock Data
- Export typed mock objects
- Use realistic data patterns
- Include edge case variations
References
references/Test-Infrastructure-Conventions.md- Complete infrastructure 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
レビュー
💬
レビュー機能は近日公開予定です