diff --git a/test/cli-ux/prompt.test.ts b/test/cli-ux/prompt.test.ts index 0f28c02ef..1afe3922b 100644 --- a/test/cli-ux/prompt.test.ts +++ b/test/cli-ux/prompt.test.ts @@ -47,6 +47,7 @@ describe('prompt', () => { it('should timeout after provided timeout', async () => { stubReadline(['']) + sandbox.stub(process, 'stdin').value({isTTY: true}) try { await ux.prompt('Require input?', {timeout: 10}) expect.fail('should have thrown')