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

Function sync

__tests__/cli-sync.test.ts:28–39  ·  view source on GitHub ↗
(quiet: boolean)

Source from the content-addressed store, hash-verified

26 });
27
28 function sync(quiet: boolean) {
29 return spawnSync(process.execPath, [BIN, 'sync', testDir, ...(quiet ? ['--quiet'] : [])], {
30 encoding: 'utf8',
31 timeout: 30_000,
32 env: {
33 ...process.env,
34 CODEGRAPH_TELEMETRY: '0', DO_NOT_TRACK: '1',
35 CODEGRAPH_NO_PROMPT_HOOK: '1', CODEGRAPH_NO_DAEMON: '1',
36 NODE_NO_WARNINGS: '1', NO_COLOR: '1',
37 },
38 });
39 }
40
41 it.each([false, true])('reports pending-reference recovery (quiet=%s)', (quiet) => {
42 for (const resolvable of [true, false]) {

Calls

no outgoing calls

Tested by

no test coverage detected