(files: Record<string, string>, self: (dir: string) => Effect.Effect<A, E, R>)
| 58 | ) |
| 59 | |
| 60 | const withFiles = <A, E, R>(files: Record<string, string>, self: (dir: string) => Effect.Effect<A, E, R>) => |
| 61 | provideTmpdirInstance((dir) => |
| 62 | Effect.gen(function* () { |
| 63 | yield* writeFiles(dir, files) |
| 64 | return yield* self(dir).pipe(provideInstruction({ home: dir, config: dir })) |
| 65 | }), |
| 66 | ) |
| 67 | |
| 68 | const tmpWithFiles = (files: Record<string, string>) => |
| 69 | Effect.gen(function* () { |
no test coverage detected