mirror of
https://github.com/czlonkowski/n8n-mcp.git
synced 2026-02-06 05:23:08 +00:00
Root cause: Tests used in-memory database without populating node data, causing "Node not found" errors when getNodeEssentials() tried lookups. Changes: - Add beforeEach() setup to populate test nodes in both test files - Insert test nodes with SHORT form node types (nodes-base.xxx) - Fix error handling test expectations (empty array vs undefined) - Fix searchNodesLIKE test expectations (object with results array) - Add comments explaining SHORT form requirement Database stores node types in SHORT form (nodes-base.webhook), not full form (n8n-nodes-base.webhook). NodeTypeNormalizer.normalizeToFullForm() actually normalizes TO short form despite the misleading name. Test results: ✅ get-node-essentials-examples.test.ts: 16/16 passed ✅ search-nodes-examples.test.ts: 14/14 passed Files modified: - tests/unit/mcp/get-node-essentials-examples.test.ts - tests/unit/mcp/search-nodes-examples.test.ts 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>