-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Overview
Implement mock adapters for testing and port workflow state management as pure functions (Functional Core).
Research Source
research/research-workflows-tdd-migration-deep.md- Migration Roadmap Phase 2 (Tasks 3-5)
Tasks
- Create src/adapters/mocks/mock-github.ts implementing IGitHubClient
- Create src/adapters/mocks/mock-claude.ts implementing IClaudeClient
- Create src/adapters/mocks/mock-process.ts implementing IProcessRunner
- Create src/core/workflow-state.ts with WorkflowState type
- Create tests/unit/core/workflow-state.test.ts
Complexity
5/10
Acceptance Criteria
- Mock adapters implement all port interfaces
- WorkflowState type covers: setup, planning, implementing, completed, failed
- State transitions are pure functions (no side effects)
- Unit tests pass without vi.mock
Dependencies
Plan File
plans/workflow-2-testing-infrastructure.md
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels