MCPcopy
hub / github.com/colbymchenry/codegraph / __setFsWatchForTests

Function __setFsWatchForTests

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

Source from the content-addressed store, hash-verified

112
113/** @internal Test-only seam to inject a fake fs.watch implementation. */
114export function __setFsWatchForTests(fn: WatchFn | null): void {
115 watchImpl = fn ?? fs.watch;
116}
117
118/**
119 * Upper bound on simultaneously-watched directories on the Linux per-directory

Callers 3

degradeWatcherFunction · 0.90
watcher.test.tsFile · 0.90

Calls

no outgoing calls

Tested by 1

degradeWatcherFunction · 0.72