mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-03-29 21:33:54 +00:00
fix(core): fix file watcher test (#18698)
This commit is contained in:
parent
8035c3435b
commit
84d9b38873
@ -177,13 +177,17 @@ describeWatcher("FileWatcher", () => {
|
|||||||
await withWatcher(tmp.path, Effect.void)
|
await withWatcher(tmp.path, Effect.void)
|
||||||
|
|
||||||
// Now write a file — no watcher should be listening
|
// Now write a file — no watcher should be listening
|
||||||
await Effect.runPromise(
|
await Instance.provide({
|
||||||
noUpdate(
|
directory: tmp.path,
|
||||||
tmp.path,
|
fn: () =>
|
||||||
(e) => e.file === file,
|
Effect.runPromise(
|
||||||
Effect.promise(() => fs.writeFile(file, "gone")),
|
noUpdate(
|
||||||
),
|
tmp.path,
|
||||||
)
|
(e) => e.file === file,
|
||||||
|
Effect.promise(() => fs.writeFile(file, "gone")),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
test("ignores .git/index changes", async () => {
|
test("ignores .git/index changes", async () => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user