(dir: string, rel: string, content: string)
| 197 | }); |
| 198 | |
| 199 | function write(dir: string, rel: string, content: string): void { |
| 200 | const full = path.join(dir, rel); |
| 201 | fs.mkdirSync(path.dirname(full), { recursive: true }); |
| 202 | fs.writeFileSync(full, content); |
| 203 | } |
| 204 | |
| 205 | async function project(files: Record<string, string>): Promise<{ cg: CodeGraph; dir: string }> { |
| 206 | const dir = fs.mkdtempSync(path.join(os.tmpdir(), 'cg-next-proxy-')); |
no test coverage detected