mirror of
https://github.com/czlonkowski/n8n-mcp.git
synced 2026-01-31 06:52:04 +00:00
Add 11 new test cases to achieve 100% coverage of the SHORT form detection logic added in the P0 bug fix. ## New Test Cases 1. Detect nodes-base.* SHORT form with proper error 2. Detect nodes-langchain.* SHORT form with proper error 3. Detect multiple SHORT form nodes (3 nodes) 4. Allow FULL form n8n-nodes-base.* without error 5. Allow FULL form @n8n/n8n-nodes-langchain.* without error 6. Detect SHORT form in mixed FULL/SHORT workflow 7. Handle null node type gracefully 8. Handle undefined node type gracefully 9. Handle empty nodes array gracefully 10. Handle undefined nodes array (Zod validation) 11. Verify correct node index in error messages ## Coverage Improvements Before: 32 tests After: 43 tests (+11 tests, 34% increase) ## Test Quality - All tests follow existing mocking patterns - Clear, descriptive test names - Comprehensive edge case coverage - Tests both success and failure paths - Verifies exact error message content - Tests telemetry tracking Addresses Codecov patch coverage requirement. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>