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

Function syncFn

__tests__/watcher.test.ts:1534–1537  ·  view source on GitHub ↗
(paths?: string[])

Source from the content-addressed store, hash-verified

1532 it('passes the exact pending paths to syncFn for plain file events', async () => {
1533 const calls: (string[] | undefined)[] = [];
1534 const syncFn: SyncFn = async (paths?: string[]) => {
1535 calls.push(paths);
1536 return { filesChanged: 1, durationMs: 5 };
1537 };
1538 const watcher = newWatcher(syncFn, { debounceMs: 30 });
1539 expect(watcher.start()).toBe(true);
1540 fs.writeFileSync(path.join(testDir, 'src', 'a.ts'), 'export const a = 1;');

Callers

nothing calls this directly

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected