(root: string, rel: string, body: string)
| 75 | } |
| 76 | |
| 77 | function write(root: string, rel: string, body: string): void { |
| 78 | const full = path.join(root, rel); |
| 79 | fs.mkdirSync(path.dirname(full), { recursive: true }); |
| 80 | fs.writeFileSync(full, body); |
| 81 | } |
| 82 | |
| 83 | beforeAll(async () => { |
| 84 | tempDir = fs.mkdtempSync(path.join(os.tmpdir(), 'codegraph-ui-map-')); |