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

Function node

__tests__/lazy-engine.test.ts:25–32  ·  view source on GitHub ↗
(args: string[], cwd: string)

Source from the content-addressed store, hash-verified

23const env = { ...process.env, CODEGRAPH_NO_DAEMON: '1', CODEGRAPH_WASM_RELAUNCHED: '1' };
24
25function node(args: string[], cwd: string): string {
26 return execFileSync(process.execPath, [...WASM_RUNTIME_FLAGS, ...args], {
27 cwd,
28 encoding: 'utf-8',
29 env,
30 stdio: ['ignore', 'pipe', 'ignore'], // drop stderr (SQLite experimental warning)
31 });
32}
33
34describe('the engine stays unloaded until something needs it', () => {
35 let root: string;

Callers 2

cliFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected