[CRITICAL] Fix TypeScript compilation errors in orchestrator tests #260

Closed
opened 2026-02-02 23:15:53 +00:00 by jason.woltje · 1 comment
Owner

Priority: CRITICAL - Blocks deployment

Problem:
TypeScript compilation fails with 14 errors in test files, preventing builds.

Files Affected:

  • apps/orchestrator/src/api/agents/agents.controller.spec.ts:23
  • apps/orchestrator/src/coordinator/quality-gates.service.spec.ts:825,840,853,862,874

Issues:

  1. AgentsController test missing third constructor argument (KillswitchService)
  2. Missing QualityGateResult type import in quality-gates tests

Acceptance Criteria:

  • pnpm --filter @mosaic/orchestrator typecheck passes with 0 errors
  • All test files compile successfully
  • AgentsController tests include KillswitchService mock
  • QualityGateResult type properly imported

Fix:

// agents.controller.spec.ts:23
controller = new AgentsController(queueService, spawnerService, killswitchService);

// quality-gates.service.spec.ts (add import)
import { QualityGateResult } from './quality-gates.service';

Code Review Confidence: 95%
Found by: pr-review-toolkit:code-reviewer

**Priority:** CRITICAL - Blocks deployment **Problem:** TypeScript compilation fails with 14 errors in test files, preventing builds. **Files Affected:** - `apps/orchestrator/src/api/agents/agents.controller.spec.ts:23` - `apps/orchestrator/src/coordinator/quality-gates.service.spec.ts:825,840,853,862,874` **Issues:** 1. AgentsController test missing third constructor argument (KillswitchService) 2. Missing QualityGateResult type import in quality-gates tests **Acceptance Criteria:** - [ ] `pnpm --filter @mosaic/orchestrator typecheck` passes with 0 errors - [ ] All test files compile successfully - [ ] AgentsController tests include KillswitchService mock - [ ] QualityGateResult type properly imported **Fix:** ```typescript // agents.controller.spec.ts:23 controller = new AgentsController(queueService, spawnerService, killswitchService); // quality-gates.service.spec.ts (add import) import { QualityGateResult } from './quality-gates.service'; ``` **Code Review Confidence:** 95% **Found by:** pr-review-toolkit:code-reviewer
jason.woltje added this to the M6-AgentOrchestration (0.0.6) milestone 2026-02-02 23:15:53 +00:00
jason.woltje added the testingorchestrator labels 2026-02-02 23:15:53 +00:00
Author
Owner

Fixed: TypeScript compilation now succeeds with 0 errors. All test files compile successfully.

✅ Fixed: TypeScript compilation now succeeds with 0 errors. All test files compile successfully.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: mosaic/stack#260