Skip to content

fix: resolve all remaining test failures after monorepo migration#129

Merged
justn-hyeok merged 1 commit intov2from
fix/sprint0-remaining-tests
Mar 18, 2026
Merged

fix: resolve all remaining test failures after monorepo migration#129
justn-hyeok merged 1 commit intov2from
fix/sprint0-remaining-tests

Conversation

@justn-hyeok
Copy link
Copy Markdown
Collaborator

Summary

Fixes all 10 remaining test failures from monorepo migration:

  • TUI tests (9 files): Use Vite resolve.dedupe for react/ink/ink-select-input to prevent duplicate React instances. Fix ModelSelector data path depth.
  • Orchestrator tests (1 file): Fix vi.doMock paths for bandit-store.js and auto-approve.js
  • vitest.config.ts: Replace explicit react/ink aliases with resolve.dedupe, use fs.realpathSync for pnpm store path resolution

Results

  • TypeScript: 0 errors
  • Tests: 99/99 files pass (1506/1506 = 100%)

Test Plan

  • All 1506 tests pass
  • TypeScript compiles clean
  • TUI rendering works (React singleton verified)
  • Orchestrator branching logic works (mock interception verified)

- TUI tests (9 files): Use Vite resolve.dedupe for react/ink to prevent
  duplicate React instances in monorepo. Fix ModelSelector data path
  (model-rankings.json) to correct relative depth.
- Orchestrator tests (1 file): Fix vi.doMock paths for bandit-store.js
  and auto-approve.js to use file-relative monorepo paths.
- vitest.config.ts: Replace react/ink aliases with resolve.dedupe,
  use fs.realpathSync for pnpm store path resolution.

Result: 99/99 test files pass, 1506/1506 tests pass, 0 TS errors.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@justn-hyeok justn-hyeok merged commit 85e1d27 into v2 Mar 18, 2026
@justn-hyeok justn-hyeok deleted the fix/sprint0-remaining-tests branch March 18, 2026 23:21
@github-actions github-actions bot added the size/S <50 lines label Mar 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/S <50 lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant