(...edges: string[])
| 10 | import { findFileCycles } from '../src/graph/file-cycles'; |
| 11 | |
| 12 | const pairs = (...edges: string[]) => |
| 13 | edges.map((edge) => { |
| 14 | const [source, target] = edge.split('>') as [string, string]; |
| 15 | return { source, target }; |
| 16 | }); |
| 17 | |
| 18 | describe('findFileCycles', () => { |
| 19 | it('finds nothing in a graph with no loop, a diamond included', () => { |