puter icon indicating copy to clipboard operation
puter copied to clipboard

[Tests] Add unit tests for ClaudeProvider with mocked Anthropic SDK

Open Salazareo opened this issue 6 months ago • 0 comments

ClaudeProvider.ts only has ClaudeProvider.integration.test.ts. Add a separate ClaudeProvider.test.ts that mocks the Anthropic SDK and covers request mapping (system prompt extraction, tool_use translation), streaming aggregation, error mapping, and metering token accounting. Do not modify the integration test.

Salazareo avatar May 08 '26 00:05 Salazareo