Repository navigation
test(connectors): cover MCP JSON field readers and withoutTrailingSlash (#265) - #273
Merged
juancguerrerodev merged 2 commits intoDec 6, 2026
Merged
Conversation
Contributor
|
Thanks, the tests look good! Please fill in the pull request template (including "I read and ran everything", and the AI agent if one helped) so it can merge. 🦀 |
Contributor
Author
|
Updated the PR description with the full repository pull request template (including verified check outputs and the AI-agent disclosure + read/ran confirmation). Thanks for the review @juancguerrerodev! |
juancguerrerodev
force-pushed
the
test/mcp-json-url
branch
from
December 6, 2026 09:10
c86d948 to
ff1a6a2
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What and why
Closes #265.
Adds unit tests in
packages/connectors/test/mcp-url.test.tscoveringstr,strArr, andboolfrompackages/connectors/src/mcp/json.ts, andwithoutTrailingSlashfrompackages/connectors/src/mcp/url.ts. No production source files were modified.Vision fit
Serves Principle 7 (Small, typed and tested) by closing test coverage gaps in the pure TypeScript
@hermit/connectorspackage (verifying own-propertyObject.hasOwnguards, primitive filtering, trailing single-slash stripping, query preservation, and double-slash behavior).Non-negotiables
Checklist
acceptedproposal.pnpm check:privacy,pnpm typecheck,pnpm lint,pnpm testandnode scripts/guard/check.mjs --patterns scripts/guard/patterns.txt. (Package-scoped and repo gates run on Windows Node v22.19.0 below:pnpm check:privacy,pnpm lint(eslint .),node scripts/guard/check.mjs --patterns scripts/guard/patterns.txt,@hermit/connectorstypecheck, and@hermit/connectorsvitest run(19 files, 349 passed, includingmcp-url.test.ts39 passed) all passed. Rootpnpm typecheckhitapps/sitemissing React/Next types in this local setup and rootscripts/devices/table.test.mjsflaggeddocs/devices.mdCRLF line endings;packages/connectors/src/mcp/json.tsandpackages/connectors/src/mcp/url.tswere not modified.)packages/copy, in es-419 and en, with matching keys and placeholders, and no em or en dashes. (n/a - test-only change)Model path
packages/model,agent,skillsoreval, the prompt, the router, tool descriptions, normalizers, examples or the model file.Screenshots
New dependencies and network calls
n/a
AI agents
describeblocks inpackages/connectors/test/mcp-url.test.tsand ran the local Vitest, ESLint, privacy check, and PR guard commands.