()
| 80 | ) |
| 81 | |
| 82 | const reset = () => { |
| 83 | assertions.length = 0 |
| 84 | runs.length = 0 |
| 85 | denyAction = undefined |
| 86 | runFailure = undefined |
| 87 | afterPermission = () => Effect.void |
| 88 | result = { |
| 89 | command: "mock", |
| 90 | exitCode: 0, |
| 91 | output: Buffer.from("hello\n"), |
| 92 | stdout: Buffer.from("hello\n"), |
| 93 | stderr: Buffer.alloc(0), |
| 94 | outputTruncated: false, |
| 95 | stdoutTruncated: false, |
| 96 | stderrTruncated: false, |
| 97 | } |
| 98 | } |
| 99 | |
| 100 | const withTool = <A, E, R>( |
| 101 | directory: string, |