(cwd: string, extraArgs: string[], taskParts: string[] = ['parseToken', 'expiry', 'handling'])
| 25 | const ENV = { ...process.env, CODEGRAPH_NO_DAEMON: '1', CODEGRAPH_WASM_RELAUNCHED: '1' }; |
| 26 | |
| 27 | function runContext(cwd: string, extraArgs: string[], taskParts: string[] = ['parseToken', 'expiry', 'handling']): string { |
| 28 | return execFileSync(process.execPath, [BIN, 'context', ...extraArgs, '-p', cwd, ...taskParts], { |
| 29 | encoding: 'utf-8', |
| 30 | env: ENV, |
| 31 | stdio: ['ignore', 'pipe', 'ignore'], // drop stderr (SQLite experimental warning) |
| 32 | }); |
| 33 | } |
| 34 | |
| 35 | describe('codegraph context — registered CLI command (#1611)', () => { |
| 36 | let tempDir: string; |
no outgoing calls
no test coverage detected