MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / checkForwarding

Function checkForwarding

__tests__/bundle-launcher.test.ts:60–70  ·  view source on GitHub ↗
(bundle: string)

Source from the content-addressed store, hash-verified

58}
59
60function 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
72afterEach(() => {
73 for (const root of roots.splice(0)) fs.rmSync(root, { recursive: true, force: true, maxRetries: 10, retryDelay: 100 });

Callers 1

Calls 4

invokeFunction · 0.85
parseMethod · 0.80
probeFunction · 0.70
joinMethod · 0.45

Tested by

no test coverage detected