Skip to content

refactor: reorganize mcp.utils and resource service tests - #808

Merged
jirispilka merged 3 commits into
masterfrom
refactor/reorg-utils-tests
May 11, 2026
Merged

refactor: reorganize mcp.utils and resource service tests#808
jirispilka merged 3 commits into
masterfrom
refactor/reorg-utils-tests

Conversation

@jirispilka

Copy link
Copy Markdown
Collaborator
  • Two new tests added during the reorg — fill coverage gaps for:
    (a) widget URI in registry but exists === false (distinct message from "not in registry"),
    (b) provider with getUsageGuide() => null (covers x402's branch; distinct path from paymentProvider: undefined).
  • Silent bug fixed: two it()s shared the same name ('should parse enableAddingActors flag'), one tested true, the other false.
  • Inline PaymentProvider stub instead of resolvePaymentProvider('x402') — its .create() makes a real HTTP fetch, would slow unit tests by ~1.4s and add a network dependency.
  • CLAUDE.md addition locks in the test naming convention applied here.

@github-actions github-actions Bot added t-ai Issues owned by the AI team. tested Temporary label used only programatically for some analytics. labels May 8, 2026
@jirispilka
jirispilka requested a review from MQ37 May 8, 2026 08:31
@jirispilka
jirispilka merged commit 532f157 into master May 11, 2026
9 checks passed
@jirispilka
jirispilka deleted the refactor/reorg-utils-tests branch May 11, 2026 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

t-ai Issues owned by the AI team. tested Temporary label used only programatically for some analytics.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants