Skip to content

chore: Add token manager and config unit tests MCP-539#1287

Merged
manupedrozo merged 1 commit into
mainfrom
MCP-539-unit-tests
Jun 30, 2026
Merged

chore: Add token manager and config unit tests MCP-539#1287
manupedrozo merged 1 commit into
mainfrom
MCP-539-unit-tests

Conversation

@manupedrozo

Copy link
Copy Markdown
Collaborator

Description

Adding unit tests for the mcp wrapper package.

Integ tests and e2e tests to be covered in a separate PR.

Ticket: MCP-539

@manupedrozo manupedrozo marked this pull request as ready for review June 26, 2026 12:54
@manupedrozo manupedrozo requested a review from a team as a code owner June 26, 2026 12:54
@manupedrozo manupedrozo requested review from fmenezes, gagik and jeroenvervaeke and removed request for a team and jeroenvervaeke June 26, 2026 12:54
});

describe("error cases", () => {
it("throws TokenError with the HTTP status code on a non-OK response", async () => {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since the remote-server 401 → invalidate → retry path lives in the SDK transport, I don't think we can meaningfully unit-test it from the wrapper side — would it be possible to have that covered in the integ/e2e PR?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, we'll cover it in integ tests

@manupedrozo manupedrozo merged commit e759a6b into main Jun 30, 2026
23 checks passed
@manupedrozo manupedrozo deleted the MCP-539-unit-tests branch June 30, 2026 09:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants