summaryrefslogtreecommitdiffhomepage
path: root/packages
diff options
context:
space:
mode:
authorJames Long <[email protected]>2026-03-22 23:35:17 -0400
committerGitHub <[email protected]>2026-03-23 03:35:17 +0000
commit84d9b388734166476055bd5c185a09df48d9d1fa (patch)
tree6ba36eb01d7de0d1b016fa1c0b6540c80cadd190 /packages
parent8035c3435b866926169307ec54914b359aa4fbfd (diff)
downloadopencode-84d9b388734166476055bd5c185a09df48d9d1fa.tar.gz
opencode-84d9b388734166476055bd5c185a09df48d9d1fa.zip
fix(core): fix file watcher test (#18698)
Diffstat (limited to 'packages')
-rw-r--r--packages/opencode/test/file/watcher.test.ts18
1 files changed, 11 insertions, 7 deletions
diff --git a/packages/opencode/test/file/watcher.test.ts b/packages/opencode/test/file/watcher.test.ts
index 8cbd478cb..6658634e5 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 () => {