-
Notifications
You must be signed in to change notification settings - Fork 2
Add tests for adapter-claude and mcp-server packages #24
Copy link
Copy link
Open
Labels
P1-credibilityFix before or shortly after launchFix before or shortly after launchenhancementNew feature or requestNew feature or request
Description
Problem
packages/adapter-claude/ and packages/mcp-server/ are core features (code generation and IDE integration) with zero test files. Both have vitest configured in package.json but no actual tests.
An HN reviewer running find . -name '*.test.*' will notice immediately.
Scope
adapter-claude
loadSkill(framework)— test that it loads the correct.mdfile and prependsguidelines.mdlistFrameworks()— test that it returns sorted array excludingguidelines.mdbuildContext(manifest)— test that$file:refs are resolved and includedgenerateWithClaude()— mock the Anthropic API, verify prompt structure and file parsing
mcp-server
- Tool registration — verify all MCP tools are registered
agentspec_healthtool — mock sidecar, verify response shapeagentspec_gaptool — mock sidecar, verify response shape- Error handling — sidecar unreachable, invalid responses
Acceptance criteria
- adapter-claude has >=5 unit tests covering core functions
- mcp-server has >=5 unit tests covering tool registration and responses
- Both packages pass
pnpm test
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
P1-credibilityFix before or shortly after launchFix before or shortly after launchenhancementNew feature or requestNew feature or request