Part of #38. Depends on #39, #40, #41.
Goal
Test coverage for the native Anthropic pass-through path added in #39–#41.
Tasks
Acceptance criteria
bun test passes with native path tests
- Mock upstream confirms no translation happens for native-path models (request body sent to mock is unchanged Anthropic JSON)
- Mock upstream confirms translation happens for legacy-path models (request body is OpenAI JSON)
Part of #38. Depends on #39, #40, #41.
Goal
Test coverage for the native Anthropic pass-through path added in #39–#41.
Tasks
tests/messages-native-dispatch.test.ts— unit tests for the dispatch logic in feat: Route dispatch — detect native-capable models, branch to pass-through #40:claude-sonnet-4.5→ native pathclaude-sonnet-4→ translation pathgpt-4o→ translation path (no change)"sonnet-4.5"→ resolves → native pathtests/messages-native-passthrough.test.ts— integration tests (mock upstream):{type:"message", content:[...]}(NOT OpenAI{choices:[...]}){type:"thinking", thinking:"...", signature:"..."}{type:"tool_use", name:"...", input:{...}}message_start / content_block_* / message_delta / message_stopsignaturein input is forwarded byte-exact to upstream mocktests/anthropic-types.test.ts— verifyAnthropicThinkingBlockhassignature?field, and usage shape includescache_creationRegression: existing
tests/anthropic-request.test.tsandtests/anthropic-response.test.tsstill pass (translation path unchanged)Acceptance criteria
bun testpasses with native path tests