We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8035c34 commit 84d9b38Copy full SHA for 84d9b38
1 file changed
packages/opencode/test/file/watcher.test.ts
@@ -177,13 +177,17 @@ describeWatcher("FileWatcher", () => {
177
await withWatcher(tmp.path, Effect.void)
178
179
// Now write a file — no watcher should be listening
180
- await Effect.runPromise(
181
- noUpdate(
182
- tmp.path,
183
- (e) => e.file === file,
184
- Effect.promise(() => fs.writeFile(file, "gone")),
185
- ),
186
- )
+ await Instance.provide({
+ directory: tmp.path,
+ fn: () =>
+ Effect.runPromise(
+ noUpdate(
+ tmp.path,
+ (e) => e.file === file,
187
+ Effect.promise(() => fs.writeFile(file, "gone")),
188
+ ),
189
190
+ })
191
})
192
193
test("ignores .git/index changes", async () => {
0 commit comments