スキル一覧に戻る
JasonPaff

integration-testing

by JasonPaff

Website for Bobblehead Collectors

2🍴 0📅 2026年1月19日
GitHubで見るManusで実行

SKILL.md


name: integration-testing description: Enforces project integration testing conventions for facades, server actions, and database operations using Testcontainers with real PostgreSQL.

Integration Testing Skill

Purpose

This skill provides integration testing conventions for facades, server actions, and database operations. Integration tests use real database interactions via Testcontainers.

Activation

This skill activates when:

  • Creating or modifying files in tests/integration/
  • Testing facades or business logic
  • Testing server actions
  • Testing database queries with real data
  • Working with Testcontainers

File Patterns

  • tests/integration/**/*.test.ts
  • tests/integration/**/*.integration.test.ts

Workflow

  1. Detect integration test work (file path contains tests/integration/)
  2. Load references/Integration-Testing-Conventions.md
  3. Also load testing-base skill for shared conventions
  4. Apply integration test patterns with database helpers
  5. Ensure proper database cleanup between tests

Key Patterns (REQUIRED)

Database Management

  • Database auto-starts via global setup (Testcontainers)
  • Use getTestDb() from tests/setup/test-db.ts
  • Use resetTestDatabase() or cleanupTable() in beforeEach
  • Mock @/lib/db to use test database

Factory Usage

  • Use factories from tests/fixtures/ for test data
  • Create realistic test scenarios with proper relationships
  • Clean up created data between tests

External Service Mocking

  • Mock Sentry for breadcrumb verification
  • Mock CacheService for cache behavior control
  • Mock Redis client to avoid connection issues

References

  • references/Integration-Testing-Conventions.md - Complete integration 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

レビュー

💬

レビュー機能は近日公開予定です