(tempDir: string)
| 439 | }; |
| 440 | |
| 441 | const cleanupTempDir = (tempDir: string) => |
| 442 | pipe( |
| 443 | FileSystem.FileSystem, |
| 444 | Effect.andThen((fs) => fs.remove(tempDir, { recursive: true })), |
| 445 | Effect.mapError(() => new Error(`Failed to cleanup temp dir ${tempDir}`)), |
| 446 | Effect.orElseSucceed(() => undefined) |
| 447 | ); |
| 448 | |
| 449 | const formatErrorLine = (line: string): Effect.Effect<void, never, never> => |
| 450 | !line.includes('example-') || line.includes('error TS') |
no outgoing calls
no test coverage detected