Skip to content

Add vitest test runner with fixture loader and mock activation #249

@snipcodeit

Description

@snipcodeit

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

  • Add vitest test runner with fixture loader and mock activation

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

Metadata

Metadata

Assignees

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions