(rel: string, body: string)
| 114 | fs.rmSync(dir, { recursive: true, force: true }); |
| 115 | }); |
| 116 | const write = (rel: string, body: string) => { |
| 117 | const p = path.join(dir, rel); |
| 118 | fs.mkdirSync(path.dirname(p), { recursive: true }); |
| 119 | fs.writeFileSync(p, body); |
| 120 | }; |
| 121 | const indexAndQuery = async () => { |
| 122 | const cg = await CodeGraph.init(dir, { silent: true }); |
| 123 | await cg.indexAll(); |
no test coverage detected