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 .md file and prepends guidelines.md
listFrameworks() — test that it returns sorted array excluding guidelines.md
buildContext(manifest) — test that $file: refs are resolved and included
generateWithClaude() — mock the Anthropic API, verify prompt structure and file parsing
mcp-server
- Tool registration — verify all MCP tools are registered
agentspec_health tool — mock sidecar, verify response shape
agentspec_gap tool — mock sidecar, verify response shape
- Error handling — sidecar unreachable, invalid responses
Acceptance criteria
Problem
packages/adapter-claude/andpackages/mcp-server/are core features (code generation and IDE integration) with zero test files. Both have vitest configured inpackage.jsonbut 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 parsingmcp-server
agentspec_healthtool — mock sidecar, verify response shapeagentspec_gaptool — mock sidecar, verify response shapeAcceptance criteria
pnpm test