(dir: string, files: Record<string, string>)
| 52 | }) |
| 53 | |
| 54 | const writeFiles = (dir: string, files: Record<string, string>) => |
| 55 | Effect.all( |
| 56 | Object.entries(files).map(([file, content]) => write(path.join(dir, file), content)), |
| 57 | { discard: true }, |
| 58 | ) |
| 59 | |
| 60 | const withFiles = <A, E, R>(files: Record<string, string>, self: (dir: string) => Effect.Effect<A, E, R>) => |
| 61 | provideTmpdirInstance((dir) => |
no test coverage detected