[fix] Add subgraph edge case tests (#1127)

Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
Christian Byrne
2025-07-15 12:48:11 -07:00
committed by GitHub
parent 28f955ed6a
commit 967f1e15e3
4 changed files with 905 additions and 30 deletions

View File

@@ -357,19 +357,19 @@ describe("ExecutableNodeDTO Integration", () => {
})
it.skip("should handle nested subgraph flattening", () => {
// FIXME: Test fails after rebase - nested structure setup needs review
// FIXME: Complex nested structure requires proper parent graph setup
// This test needs investigation of how resolveSubgraphIdPath works
// Skip for now - will implement in edge cases test file
const nested = createNestedSubgraphs({
depth: 3,
nodesPerLevel: 2,
depth: 2,
nodesPerLevel: 1,
})
const rootSubgraphNode = nested.subgraphNodes[0]
const flattened = rootSubgraphNode.getInnerNodes(new Map())
const executableNodes = new Map()
const flattened = rootSubgraphNode.getInnerNodes(executableNodes)
// Should have DTOs for all nested nodes
expect(flattened.length).toBeGreaterThan(0)
// Should have proper hierarchical IDs
const hierarchicalIds = flattened.filter(dto => dto.id.includes(":"))
expect(hierarchicalIds.length).toBeGreaterThan(0)
})