(root: string, files: Files)
| 43 | }); |
| 44 | |
| 45 | function write(root: string, files: Files): void { |
| 46 | for (const [file, text] of Object.entries(files)) { |
| 47 | fs.mkdirSync(path.dirname(path.join(root, file)), { recursive: true }); |
| 48 | fs.writeFileSync(path.join(root, file), text); |
| 49 | } |
| 50 | } |
| 51 | |
| 52 | async function indexed(files: Files): Promise<{ root: string; graph: CodeGraph }> { |
| 53 | const root = fs.mkdtempSync(path.join(os.tmpdir(), 'cg-sync-synth-inputs-')); |
no test coverage detected