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

Function newWatcher

__tests__/watcher.test.ts:62–63  ·  view source on GitHub ↗
(syncFn: SyncFn, opts: WatchOptions = {})

Source from the content-addressed store, hash-verified

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-'));

Callers 1

watcher.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected