(path: string)
| 56 | }); |
| 57 | |
| 58 | const waitForFile = (path: string): Effect.Effect<boolean> => |
| 59 | Effect.gen(function* () { |
| 60 | for (let attempt = 0; attempt < 40; attempt++) { |
| 61 | if (existsSync(path)) return true; |
| 62 | yield* Effect.promise(() => new Promise((resolve) => setTimeout(resolve, 50))); |
| 63 | } |
| 64 | return false; |
| 65 | }); |
| 66 | |
| 67 | describe("spawnDetached", () => { |
| 68 | it.effect("can terminate the spawned detached process", () => |