(tempDir: string)
| 327 | |
| 328 | const writeBlockFile = |
| 329 | (tempDir: string) => |
| 330 | ( |
| 331 | block: CodeBlock, |
| 332 | index: number |
| 333 | ): Effect.Effect<BlockFile, Error, FileSystem.FileSystem | Path.Path> => { |
| 334 | const headerLines = 0; |
| 335 | const filename = `example-${index + 1}.ts`; |
| 336 | |
| 337 | return pipe( |
| 338 | joinPath(tempDir, filename), |
| 339 | Effect.flatMap(writeBlockFileContent(block.code, filename, block, headerLines)) |
| 340 | ); |
| 341 | }; |
| 342 | |
| 343 | const writeAllBlockFiles = ( |
| 344 | blocks: readonly CodeBlock[], |
no test coverage detected