(...args: string[])
| 76 | } |
| 77 | |
| 78 | function codegraph(...args: string[]): { code: number | null; output: string } { |
| 79 | const run = spawnSync(process.execPath, [BIN, ...args], { |
| 80 | cwd: dir, |
| 81 | encoding: 'utf-8', |
| 82 | env: { ...process.env, CODEGRAPH_NO_DAEMON: '1', NO_COLOR: '1', DO_NOT_TRACK: '1', CODEGRAPH_TELEMETRY: '0' }, |
| 83 | }); |
| 84 | return { code: run.status, output: run.stdout + run.stderr }; |
| 85 | } |
| 86 | |
| 87 | describe('makeGitignoreLocalOnly', () => { |
| 88 | it('writes the wildcard alone when there is no file', () => { |
no outgoing calls
no test coverage detected