(files: Record<string, string>)
| 82 | } |
| 83 | |
| 84 | async function indexed(files: Record<string, string>): Promise<{ root: string; cg: CodeGraph }> { |
| 85 | const root = fs.mkdtempSync(path.join(os.tmpdir(), 'cg-parameter-flow-')); |
| 86 | roots.push(root); |
| 87 | write(root, files); |
| 88 | const cg = await CodeGraph.init(root, { index: true }); |
| 89 | open.push(cg); |
| 90 | return { root, cg }; |
| 91 | } |
| 92 | |
| 93 | afterEach(() => { |
| 94 | for (const cg of open.splice(0)) { |
no test coverage detected