ktx/packages/cli
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
..
assets/demo/orbit Polish documentation copy (#98) 2026-05-14 12:43:14 -04:00
scripts feat: ktx batch — scan resilience, analytics SQL craft, connector hardening (#312) 2026-06-29 16:35:57 +00:00
src feat(mcp): build mongoQuery port over the shared connector factory 2026-07-06 16:24:42 +07:00
test fix(test): exercise mongoQuery wrong-driver guard, not assertConnection 2026-07-06 16:30:56 +07:00
package.json chore(release): 0.16.0 [skip ci] 2026-07-03 21:22:57 +00:00
tsconfig.json chore(workspace): gate dead-code with knip production mode (#196) 2026-05-21 15:28:58 +02:00
tsconfig.test.json test: split cli tests from source tree (#216) 2026-05-26 08:49:05 +02:00
vitest.config.ts test: split cli tests from source tree (#216) 2026-05-26 08:49:05 +02:00