(f: (directory: string) => Effect.Effect<A, E, R>)
| 21 | ) |
| 22 | |
| 23 | const withTmp = <A, E, R>(f: (directory: string) => Effect.Effect<A, E, R>) => |
| 24 | Effect.acquireRelease( |
| 25 | Effect.promise(() => tmpdir()), |
| 26 | (tmp) => Effect.promise(() => tmp[Symbol.asyncDispose]()), |
| 27 | ).pipe(Effect.flatMap((tmp) => f(tmp.path))) |
| 28 | |
| 29 | describe("FileSystem", () => { |
| 30 | it.live("reads text and binary files", () => |
no test coverage detected