(root: string, dir: string, cg: CodeGraph)
| 80 | } |
| 81 | |
| 82 | async function serve(root: string, dir: string, cg: CodeGraph): Promise<Instance> { |
| 83 | const api = createGraphApi({ projectRoot: root }); |
| 84 | const server = await startUiServer({ projectRoot: root, port: 0, api: api.handler }); |
| 85 | return { dir, root, cg, api, server }; |
| 86 | } |
| 87 | |
| 88 | function write(root: string, rel: string, body: string): void { |
| 89 | const full = path.join(root, rel); |
no test coverage detected