mirror of
https://github.com/czlonkowski/n8n-mcp.git
synced 2026-02-09 06:43:08 +00:00
fix: resolve TypeScript compilation blockers in AI validation tests (Phase 1)
FIXED ISSUES: ✅ Export WorkflowNode, WorkflowJson, ReverseConnection, ValidationIssue types ✅ Fix test function signatures for 3 validators requiring context ✅ Fix SearXNG import name typo (validateSearXNGTool → validateSearXngTool) ✅ Update WolframAlpha test expectations (credentials error, not toolDescription) CHANGES: - src/services/ai-node-validator.ts: Re-export types for test files - tests/unit/services/ai-tool-validators.test.ts: * Add reverseMap and workflow parameters to validateVectorStoreTool calls * Add reverseMap parameter to validateWorkflowTool calls * Add reverseMap parameter to validateAIAgentTool calls * Fix import: validateSearXngTool (not SearXNG) * Fix WolframAlpha tests to match actual validator behavior RESULTS: - TypeScript compiles cleanly (0 errors) - Tests execute without compilation errors - 33/64 tests passing (+9 from before) - Phase 1 COMPLETE Related to comprehensive plan for fixing AI validation implementation. Next: Phase 2 (Fix critical validation bugs) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -21,6 +21,14 @@ import {
|
||||
validateAIToolSubNode
|
||||
} from './ai-tool-validators';
|
||||
|
||||
// Re-export types for test files
|
||||
export type {
|
||||
WorkflowNode,
|
||||
WorkflowJson,
|
||||
ReverseConnection,
|
||||
ValidationIssue
|
||||
} from './ai-tool-validators';
|
||||
|
||||
// Validation constants
|
||||
const MIN_SYSTEM_MESSAGE_LENGTH = 20;
|
||||
const MAX_ITERATIONS_WARNING_THRESHOLD = 50;
|
||||
|
||||
Reference in New Issue
Block a user