Skip to content

Create lib/mock-github.cjs with GitHub API interceptors for tests #247

@snipcodeit

Description

@snipcodeit

Description

Implement a mock GitHub API layer that intercepts gh CLI calls and octokit requests during test runs. Must cover: issue CRUD, milestone CRUD, label operations, PR creation, and GraphQL board mutations. Responses should be configurable per test scenario via fixture files in test/fixtures/github/.

Acceptance Criteria

  • Create lib/mock-github.cjs with GitHub API interceptors for tests

Milestone Context

Milestone v6 — Local Testing & Simulation Framework
Phase Phase 47: Mock Infrastructure
GSD Route plan-phase
Phase Position Phase 1 of 4 in milestone

Milestone Goal

Offline test suite with mock GitHub API and fake GSD agents to validate MGW orchestration logic without requiring live GitHub tokens or active Claude API calls.

Phase Goal

Build the foundational mock layer — GitHub API interceptors and fake GSD agent stubs that respond predictably so test scenarios can run fully offline.

Dependencies

none

Scope Hints

  • Estimated route: plan-phase
  • Labels: testing,infrastructure

Metadata

Metadata

Assignees

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions