The open source coding agent.
TypeScript
fix(core): fix file watcher test (#18698)
James Long84d9b3887341
diff --git a/packages/opencode/test/file/watcher.test.ts b/packages/opencode/test/file/watcher.test.tsindex 8cbd478cba0..6658634e54e 100644--- a/packages/opencode/test/file/watcher.test.ts+++ b/packages/opencode/test/file/watcher.test.ts@@ -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 () => {