Skip to content

[Tests] Add unit tests for MoonshotProvider with mocked client #2979

@Salazareo

Description

@Salazareo

MoonshotProvider.ts has MoonshotProvider.integration.test.ts plus imageHandling.test.ts, but no provider-level unit test. Add a separate offline MoonshotProvider.test.ts covering model resolution, OpenAI-compat quirks, tool-call passthrough, streaming deltas, error mapping, and metering. Integration test stays untouched.

Metadata

Metadata

Assignees

Labels

TestsIssues for fixing broken tests, or adding missing/incomplete tests.

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions