(root: string, env: NodeJS.ProcessEnv)
| 52 | } |
| 53 | |
| 54 | function indexedGraph(root: string, env: NodeJS.ProcessEnv): { graph: string; log: string } { |
| 55 | const result = spawnSync(process.execPath, [cli, 'init', '-y', root], { |
| 56 | cwd: root, |
| 57 | encoding: 'utf8', |
| 58 | env: { ...process.env, CODEGRAPH_NO_DAEMON: '1', CODEGRAPH_NO_UPDATE_CHECK: '1', DO_NOT_TRACK: '1', ...env }, |
| 59 | }); |
| 60 | expect(result.status, result.stderr).toBe(0); |
| 61 | const graph = execFileSync(process.execPath, ['--disable-warning=ExperimentalWarning', dump, root], { encoding: 'utf8', maxBuffer: 1 << 28 }); |
| 62 | fs.rmSync(path.join(root, '.codegraph'), { recursive: true, force: true }); |
| 63 | return { graph, log: result.stderr }; |
| 64 | } |
| 65 | |
| 66 | describe('the resolver pool', () => { |
| 67 | let root: string; |
no test coverage detected