Skip to content

test: assert DUPLICATE_TOOL error code and details.toolName (Issue #124) - #196

Open
rafaio1 wants to merge 1 commit into
Lilly-Protocol:mainfrom
rafaio1:bounty/issue-124-duplicate-tool-metadata
Open

test: assert DUPLICATE_TOOL error code and details.toolName (Issue #124)#196
rafaio1 wants to merge 1 commit into
Lilly-Protocol:mainfrom
rafaio1:bounty/issue-124-duplicate-tool-metadata

Conversation

@rafaio1

@rafaio1 rafaio1 commented Aug 26, 2026

Copy link
Copy Markdown

Summary

Strengthens the existing duplicate tool registration test to assert the specific DUPLICATE_TOOL error code and details.toolName field, preventing regression on error metadata.

Tests Added

  • code === "DUPLICATE_TOOL" asserted
  • details.toolName === "echo" asserted
  • ✅ Existing message assertion retained
  • ✅ Distinct tool names register successfully

Verification

All 2 tests pass locally via npx vitest run tests/tool-registry.test.ts.

Closes #124

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bounty: $30] Add regression test for duplicate tool registration metadata

1 participant