(f: (directory: string) => Effect.Effect<A, E, R>)
| 22 | } |
| 23 | |
| 24 | function withTmp<A, E, R>(f: (directory: string) => Effect.Effect<A, E, R>) { |
| 25 | return Effect.acquireRelease( |
| 26 | Effect.promise(() => tmpdir()), |
| 27 | (tmp) => Effect.promise(() => tmp[Symbol.asyncDispose]()), |
| 28 | ).pipe(Effect.flatMap((tmp) => f(tmp.path))) |
| 29 | } |
| 30 | |
| 31 | describe("LocationMutation", () => { |
| 32 | it.live("resolves an active relative existing file target", () => |
no test coverage detected