fix(core): fix file watcher test (#18698)

This commit is contained in:
James Long 2026-03-22 23:35:17 -04:00 committed by GitHub
parent 8035c3435b
commit 84d9b38873
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -177,13 +177,17 @@ describeWatcher("FileWatcher", () => {
await withWatcher(tmp.path, Effect.void)
// Now write a file — no watcher should be listening
await Effect.runPromise(
noUpdate(
tmp.path,
(e) => e.file === file,
Effect.promise(() => fs.writeFile(file, "gone")),
),
)
await Instance.provide({
directory: tmp.path,
fn: () =>
Effect.runPromise(
noUpdate(
tmp.path,
(e) => e.file === file,
Effect.promise(() => fs.writeFile(file, "gone")),
),
),
})
})
test("ignores .git/index changes", async () => {