(id: number, file_path: string, name: string, status: GraphNode['status'] = 'normal')
| 4 | import type { GraphData, GraphNode } from '../galaxy/types'; |
| 5 | |
| 6 | const node = (id: number, file_path: string, name: string, status: GraphNode['status'] = 'normal'): GraphNode => ({ |
| 7 | id, file_path, name, status, label: 'Function', x: 0, y: 0, z: 0, size: 1, color: '', |
| 8 | }); |
| 9 | const graph: GraphData = { total_nodes: 3, nodes: [node(1, 'src/api/main.ts', 'main', 'entry'), |
| 10 | node(2, 'src/service/users.ts', 'users'), node(3, 'src/store/save.ts', 'save')], |
| 11 | edges: [{ source: 1, target: 2, type: 'CALLS' }, { source: 2, target: 3, type: 'IMPORTS' }, { source: 2, target: 3, type: 'CALLS' }] }; |
no outgoing calls
no test coverage detected