From 002ef712c895452ccf63152dd1695d02eef8d5ed Mon Sep 17 00:00:00 2001 From: mkorwel Date: Sat, 18 Apr 2026 02:14:16 +0000 Subject: [PATCH] test: fix ExitWarning tests --- .../cli/src/ui/components/ExitWarning.test.tsx | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/packages/cli/src/ui/components/ExitWarning.test.tsx b/packages/cli/src/ui/components/ExitWarning.test.tsx index a504670d03..88ab678199 100644 --- a/packages/cli/src/ui/components/ExitWarning.test.tsx +++ b/packages/cli/src/ui/components/ExitWarning.test.tsx @@ -24,7 +24,12 @@ describe('ExitWarning', () => { ctrlCPressedOnce: false, ctrlDPressedOnce: false, } as unknown as UIState); - const { lastFrame, unmount } = await render(); + const { lastFrame, unmount } = await render( + , + undefined, + undefined, + true, + ); expect(lastFrame({ allowEmpty: true })).toBe(''); unmount(); }); @@ -57,7 +62,12 @@ describe('ExitWarning', () => { ctrlCPressedOnce: true, ctrlDPressedOnce: true, } as unknown as UIState); - const { lastFrame, unmount } = await render(); + const { lastFrame, unmount } = await render( + , + undefined, + undefined, + true, + ); expect(lastFrame({ allowEmpty: true })).toBe(''); unmount(); });