(files: Record<string, string>)
| 836 | } |
| 837 | |
| 838 | async function indexProject(files: Record<string, string>): Promise<{ root: string; cg: CodeGraph }> { |
| 839 | const root = fs.mkdtempSync(path.join(os.tmpdir(), 'cg-rr-tables-')); |
| 840 | writeFiles(root, files); |
| 841 | return { root, cg: await CodeGraph.init(root, { index: true }) }; |
| 842 | } |
| 843 | |
| 844 | /** `path -> Component` for what each route renders, `path ~> Layout` for each layout around it. */ |
| 845 | function routeBindings(cg: CodeGraph): string[] { |
no test coverage detected