()
| 47 | } |
| 48 | |
| 49 | function getSpawnOptionsOrThrow(): SpawnOptions { |
| 50 | expect(spawnMock).toHaveBeenCalledTimes(1); |
| 51 | const firstCall = spawnMock.mock.calls[0] as unknown[] | undefined; |
| 52 | const options = firstCall?.[2] as SpawnOptions | undefined; |
| 53 | if (!options) { |
| 54 | throw new Error('Expected spawn options to be passed as third argument'); |
| 55 | } |
| 56 | return options; |
| 57 | } |
| 58 | |
| 59 | describe('spawnHappyCLI windowsHide behavior', () => { |
| 60 | beforeAll(() => { |