(returnValue: Awaited<ReturnType<BashCall>> | ShellError)
| 46 | let originalBashCall: BashCall |
| 47 | |
| 48 | function stubBashTool(returnValue: Awaited<ReturnType<BashCall>> | ShellError): void { |
| 49 | originalBashCall = BashTool.call |
| 50 | ;(BashTool as { call: BashCall }).call = (async () => { |
| 51 | if (returnValue instanceof Error) throw returnValue |
| 52 | return returnValue |
| 53 | }) as BashCall |
| 54 | } |
| 55 | |
| 56 | afterEach(() => { |
| 57 | if (originalBashCall !== undefined) { |
no outgoing calls
no test coverage detected