/** * The emit filter must run BEFORE handleEvent pays for a stat. * * The recursive backend hands every OS event to handleEvent, and a `rename` * used to be lstat'd before the exclusion filter was consulted. On a real HQ * that is one synchronous syscall for every file touched anywhere under * `repos/` or `workspace/worktrees/` — build, install, and checkout churn the * watcher immediately throws away. Scoped watch roots (see watch-roots.ts) keep * most of that traffic from being delivered at all; this gate makes whatever * still arrives cost a string compare instead of a syscall. * * This lives in its own file because it mocks `fs` module-wide, which would * otherwise perturb the 53 tests in watcher.test.ts. */ export {}; //# sourceMappingURL=watcher-event-gate.test.d.ts.map