mirror of
https://github.com/czlonkowski/n8n-mcp.git
synced 2026-01-30 06:22:04 +00:00
Implemented comprehensive integration tests for workflow deletion and listing: Test Coverage (16 scenarios): - delete-workflow.test.ts: 3 tests * Successful deletion * Error handling for non-existent workflows * Cleanup verification - list-workflows.test.ts: 13 tests * No filters (all workflows) * Filter by active status (true/false) * Filter verification * Pagination (first page, cursor, last page) * Limit variations (1, 50, 100) * Exclude pinned data * Empty results * Sort order verification Critical Fixes: - handleDeleteWorkflow: Now returns deleted workflow data (per n8n API spec) - handleListWorkflows: Convert tags array to comma-separated string (n8n API format) - N8nApiClient.deleteWorkflow: Return Workflow object instead of void - WorkflowListParams.tags: Changed from string[] to string (API expects CSV format) All 71 integration tests passing. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>