mirror of
https://github.com/czlonkowski/n8n-mcp.git
synced 2026-02-06 05:23:08 +00:00
Phase 4 adds comprehensive integration tests for workflow update operations: **update-workflow.test.ts** (10 scenarios): - Full workflow replacement - Update nodes, connections, settings, tags - Validation errors (invalid node type, non-existent ID) - Update name only - Multiple properties together **update-partial-workflow.test.ts** (32 scenarios): - Node operations (8): addNode, removeNode, updateNode, moveNode, enableNode, disableNode - Connection operations (6): addConnection, removeConnection, replaceConnections, cleanStaleConnections - Metadata operations (5): updateSettings, updateName, addTag, removeTag - Advanced scenarios (3): multiple operations, validateOnly mode, continueOnError mode All tests: - Use MCP handlers (handleUpdateWorkflow, handleUpdatePartialWorkflow) - Pass proper mcpContext (InstanceContext) - Validate MCP response structure (success/data/error) - Follow established patterns from Phase 2 & 3 - TypeScript linting passes with no errors Total: 42 test scenarios for workflow update operations 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>