Claude-skill-registry context-testing-infrastructure

install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/context-testing-infrastructure" ~/.claude/skills/majiayu000-claude-skill-registry-context-testing-infrastructure && rm -rf "$T"
manifest: skills/data/context-testing-infrastructure/SKILL.md
source content

Testing Infrastructure

Navigate tiered testing strategy (ui-mock, auth-stub, full-stack), fixtures, and configs.

Overview

Three-tier testing strategy for speed/isolation balance. See

docs/testing/STRATEGY.md
.

E2E Test Tiers

Tier 1: UI Mock

  • Location:
    frontend/e2e-tiers/tier-ui-mock/
  • Speed: <5s
  • Purpose: UI-only, no backend

Tier 2: Auth Stub

  • Location:
    frontend/e2e-tiers/tier-auth-stub/
  • Speed: <30s
  • Purpose: Real frontend + stubbed auth

Tier 3: Full Stack

  • Location:
    frontend/e2e-tiers/tier-full-stack/
  • Speed: ~60s+
  • Purpose: Complete integration

E2E Tests

  • frontend/e2e/*.spec.ts
    - Main E2E tests
  • frontend/e2e-smoke/*.spec.ts
    - Smoke tests

Backend Tests

  • backend/tests/unit/
    - Unit tests
  • backend/tests/integration/
    - Integration tests
  • backend/tests/manual/
    - Manual tests
  • backend/tests/conftest.py
    - Pytest fixtures
  • backend/tests/fixtures/
    - Mock fixtures

Test Utilities

  • scripts/lib/db_test_utils.py
    - Database utilities
  • scripts/test_*.py
    - Test helpers
  • scripts/quick_fix_test_data.py
    - Quick data generation
  • scripts/generate-dev-data.ts
    - Dev data seeding
  • frontend/src/test-utils/
    - Frontend test utilities

Smoke Tests

  • backend/smoke_endpoints.py
    - Backend health checks
  • frontend/e2e-smoke/
    - Frontend smoke tests

Configuration

  • frontend/playwright*.config.ts
    - Playwright configs
  • pytest.ini
    - Pytest configuration
  • frontend/vitest.config.ts
    - Vitest config (if used)

Documentation

  • Internal:
    docs/testing/STRATEGY.md

Related Areas

  • See
    context-plaid-integration
    for Plaid test patterns
  • See
    context-clerk-integration
    for auth stub patterns
  • See
    context-infrastructure
    for CI integration