agent-orchestrator/packages/web/src/__tests__
Gaurav Bhola 87c661332e fix(web): restore local type defs in mux-websocket and add coverage tests
tsconfig.server.json sets rootDir:"server" so importing from
../src/lib/mux-protocol.ts violated the boundary and broke the CI
typecheck step. Reverted to local type definitions with a comment
linking to the canonical source.

Also adds tests to bring diff coverage above 80%:
- MuxProvider.test.tsx: 30 tests covering lifecycle, message handling,
  and all terminal operations (subscribeTerminal, write, open, close,
  resize, reconnect, cleanup)
- api-routes.test.ts: GET /api/sessions/patches coverage (success,
  field shape, project filter, error path)
- useSessionEvents.test.ts: mux-path tests (muxSessions snapshot
  dispatch, membership-change scheduleRefresh, mux-active SSE bypass,
  cleanup on unmount)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-06 22:46:29 -07:00
..
api-routes.test.ts fix(web): restore local type defs in mux-websocket and add coverage tests 2026-04-06 22:46:29 -07:00
components.test.tsx Stabilize SessionCard quick reply test 2026-04-01 20:19:57 +05:30
get-attention-level.test.ts test: add tests for atomic writes, restoredAt, computeStats, and attention level fixes 2026-03-01 19:10:57 +05:30
helpers.ts feat: session title fallback chain for PR-less sessions (#105) 2026-02-19 19:02:02 +05:30
services.test.ts feat: lifecycle manager, backlog auto-claim, task decomposition, and verification gate (#365) 2026-03-10 12:31:25 +05:30
setup.ts feat(web): mobile accordion layout — urgency-first kanban on mobile 2026-03-24 18:37:53 +05:30