[CRITICAL] Replace explicit 'any' types with proper mocks in tests #261
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Priority: CRITICAL - Quality Rails violation
CLAUDE.md Violation: Quality Rails blocks
@typescript-eslint/no-explicit-any: errorProblem:
Test files use explicit
anytypes (6+ instances), violating TypeScript strict mode and quality standards.Files Affected:
apps/orchestrator/src/api/agents/agents.controller.spec.ts(Lines 9, 10, 16, 24, 165, 179)apps/orchestrator/src/coordinator/coordinator-client.service.spec.ts(Lines 12, 24)Acceptance Criteria:
anytypes replaced with proper mock typespnpm --filter @mosaic/orchestrator lintshows 0no-explicit-anyerrorsExample Fix:
Code Review Confidence: 92%
Found by: pr-review-toolkit:code-reviewer
✅ Fixed: Replaced all explicit 'any' types with proper type assertions. All tests now have proper type safety.