(syncFn: SyncFn, opts: WatchOptions = {})
| 60 | // Inert by default — unit tests drive events via __emitWatchEventForTests |
| 61 | // and never depend on real OS watch delivery. |
| 62 | const newWatcher = (syncFn: SyncFn, opts: WatchOptions = {}) => |
| 63 | new FileWatcher(testDir, syncFn, { inertForTests: true, ...opts }); |
| 64 | |
| 65 | beforeEach(() => { |
| 66 | testDir = fs.mkdtempSync(path.join(os.tmpdir(), 'codegraph-watcher-')); |