feat(validator): detect broken/malformed workflow connections (#620) (#621)

This commit is contained in:
Romuald Członkowski
2026-03-07 23:55:23 +01:00
committed by GitHub
parent 0998e5486e
commit 0918cd5425
11 changed files with 1265 additions and 172 deletions

View File

@@ -646,9 +646,10 @@ describe('WorkflowValidator - Mock-based Unit Tests', () => {
await validator.validateWorkflow(workflow as any);
// Should have called getNode for each node type (normalized to short form)
// Called during node validation + output/input index bounds checking
expect(mockGetNode).toHaveBeenCalledWith('nodes-base.httpRequest');
expect(mockGetNode).toHaveBeenCalledWith('nodes-base.set');
expect(mockGetNode).toHaveBeenCalledTimes(2);
expect(mockGetNode.mock.calls.length).toBeGreaterThanOrEqual(2);
});
it('should handle repository errors gracefully', async () => {