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

Function __setFsWatchForTests

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

Source from the content-addressed store, hash-verified

138
139/** @internal Test-only seam to inject a fake fs.watch implementation. */
140export function __setFsWatchForTests(fn: WatchFn | null): void {
141 watchImpl = fn ?? fs.watch;
142}
143
144/**
145 * 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