(files: Record<string, string>)
| 154 | } |
| 155 | |
| 156 | async function project(files: Record<string, string>): Promise<CodeGraph> { |
| 157 | const root = fs.mkdtempSync(path.join(os.tmpdir(), 'cg-python-declared-roots-')); |
| 158 | roots.push(root); |
| 159 | write(root, files); |
| 160 | const cg = await CodeGraph.init(root, { index: true }); |
| 161 | open.push(cg); |
| 162 | return cg; |
| 163 | } |
| 164 | |
| 165 | beforeAll(async () => { |
| 166 | kernel = process.env.CODEGRAPH_KERNEL; |
no test coverage detected