From f0585fc09a823c742d7b5053b5f6e49c377bc3db Mon Sep 17 00:00:00 2001 From: sakulstra Date: Wed, 1 Nov 2023 15:24:13 +0100 Subject: [PATCH] fix: improve test --- packages/select/select.test.mts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/select/select.test.mts b/packages/select/select.test.mts index a7174cfd7..fe4631588 100644 --- a/packages/select/select.test.mts +++ b/packages/select/select.test.mts @@ -471,5 +471,8 @@ describe('select prompt', () => { 7 (Use arrow keys to reveal more choices)" `); + + events.keypress('enter'); + await expect(answer).resolves.toEqual(4); }); });