puter
puter copied to clipboard
[Tests] Add unit tests for ClaudeProvider with mocked Anthropic SDK
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.