(id: string)
| 485 | const links = [link('src/db', 'src/types', 20), link('src/cli', 'src/db', 20)]; |
| 486 | const layout = buildMapLayout({ modules, links }, OPTS); |
| 487 | const weightOf = (id: string) => layout.nodes.find((n) => n.id === id)!.weight; |
| 488 | |
| 489 | expect(weightOf('src/types')).toBe(1); |
| 490 | expect(weightOf('src/db')).toBeCloseTo(0.5, 5); |