(directory: string)
| 11 | import { it } from "./lib/effect" |
| 12 | |
| 13 | function provide(directory: string) { |
| 14 | return Effect.provide( |
| 15 | LayerNode.compile(LocationMutation.node, [ |
| 16 | [ |
| 17 | Location.node, |
| 18 | Layer.succeed(Location.Service, Location.Service.of(location({ directory: AbsolutePath.make(directory) }))), |
| 19 | ], |
| 20 | ]), |
| 21 | ) |
| 22 | } |
| 23 | |
| 24 | function withTmp<A, E, R>(f: (directory: string) => Effect.Effect<A, E, R>) { |
| 25 | return Effect.acquireRelease( |
no test coverage detected