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

Function __setFsWatchForTests

src/sync/watcher.ts:172–174  ·  view source on GitHub ↗
(fn: WatchFn | null)

Source from the content-addressed store, hash-verified

170
171/** @internal Test-only seam to inject a fake fs.watch implementation. */
172export function __setFsWatchForTests(fn: WatchFn | null): void {
173 watchImpl = fn ?? fs.watch;
174}
175
176/**
177 * Upper bound on simultaneously-watched directories on the Linux per-directory

Callers 5

degradeWatcherFunction · 0.90
watcher.test.tsFile · 0.90
fakeStreamsFunction · 0.90

Calls

no outgoing calls

Tested by 2

degradeWatcherFunction · 0.72
fakeStreamsFunction · 0.72