(fn: WatchFn | null)
| 138 | |
| 139 | /** @internal Test-only seam to inject a fake fs.watch implementation. */ |
| 140 | export 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 |
no outgoing calls