(command: string, args: string[])
| 11 | let dir: string; |
| 12 | |
| 13 | function run(command: string, args: string[]): string { |
| 14 | return execFileSync(process.execPath, [BIN, command, ...args, '-p', dir], { |
| 15 | encoding: 'utf-8', |
| 16 | env: { ...process.env, CODEGRAPH_NO_DAEMON: '1', CODEGRAPH_WASM_RELAUNCHED: '1' }, |
| 17 | stdio: ['ignore', 'pipe', 'pipe'], |
| 18 | }); |
| 19 | } |
| 20 | |
| 21 | beforeAll(async () => { |
| 22 | dir = fs.mkdtempSync(path.join(os.tmpdir(), 'codegraph-test-files-')); |
no outgoing calls
no test coverage detected