(stdout: string, stderr = "")
| 38 | } |
| 39 | |
| 40 | function mockExecOk(stdout: string, stderr = ""): void { |
| 41 | execFileAsyncSpy?.mockReturnValue(createMockExecResult(Promise.resolve({ stdout, stderr }))); |
| 42 | } |
| 43 | |
| 44 | function mockExecError(error: Error): void { |
| 45 | execFileAsyncSpy?.mockReturnValue(createMockExecResult(Promise.reject(error))); |
no test coverage detected