(bundle: string)
| 58 | } |
| 59 | |
| 60 | function checkForwarding(bundle: string) { |
| 61 | probe(bundle); |
| 62 | const args = ['two words', '', 'quote"value', "single'value", '$literal', '*.ts', 'a&b']; |
| 63 | const result = invoke(bundle, 'codegraph "$@"', args, { CODEGRAPH_HOST_PPID: '12345' }); |
| 64 | expect(result.status, result.stderr).toBe(23); |
| 65 | const output = JSON.parse(result.stdout); |
| 66 | expect(output.args).toEqual(args); |
| 67 | expect(output.flags).toEqual(['--liftoff-only', '--disable-warning=ExperimentalWarning', '--max-semi-space-size=16']); |
| 68 | expect(output.host).toBe('12345'); |
| 69 | expect(fs.realpathSync(output.exe)).toBe(fs.realpathSync(path.join(bundle, windows ? 'node.exe' : 'node'))); |
| 70 | } |
| 71 | |
| 72 | afterEach(() => { |
| 73 | for (const root of roots.splice(0)) fs.rmSync(root, { recursive: true, force: true, maxRetries: 10, retryDelay: 100 }); |
no test coverage detected