ktx/packages/cli/test/mcp
Kevin Messiaen 8aa4f8f74a
fix(test): exercise mongoQuery wrong-driver guard, not assertConnection
The wrong-driver test's fake createConnector ignored the requested id
and always returned a mongodb connector, so the driver guard never
ran; the rejection came incidentally from assertConnection deep in the
connector. It also asserted KtxQueryError, but the guard throws
KtxExpectedError. Dispatch the fake by id and assert the guard's own
error type and message.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BdUJSmjqGoksdc45ZZJiVY
2026-07-06 16:30:56 +07:00
..
mongo-query-tool.test.ts fix(test): exercise mongoQuery wrong-driver guard, not assertConnection 2026-07-06 16:30:56 +07:00