Description
Configure vitest as the test runner. Add test/setup.js that auto-activates mock-github and mock-gsd-agent before each suite. Implement loadFixture(name) helper. Add npm test and npm run test:watch scripts.
Acceptance Criteria
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
create-lib-mock-gsd-agent-cjs-with-fake-task-a
Scope Hints
- Estimated route:
plan-phase
- Labels: testing,infrastructure
Description
Configure vitest as the test runner. Add test/setup.js that auto-activates mock-github and mock-gsd-agent before each suite. Implement loadFixture(name) helper. Add npm test and npm run test:watch scripts.
Acceptance Criteria
Milestone Context
plan-phaseMilestone 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
create-lib-mock-gsd-agent-cjs-with-fake-task-a
Scope Hints
plan-phase