From 968fb65d18264067e27d7fecef36c3759fb31f2e Mon Sep 17 00:00:00 2001 From: mkorwel Date: Fri, 17 Apr 2026 21:03:53 +0000 Subject: [PATCH] test: fix StatusDisplay tests --- .../cli/src/ui/components/StatusDisplay.test.tsx | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/packages/cli/src/ui/components/StatusDisplay.test.tsx b/packages/cli/src/ui/components/StatusDisplay.test.tsx index a8a369b301..ae510ad891 100644 --- a/packages/cli/src/ui/components/StatusDisplay.test.tsx +++ b/packages/cli/src/ui/components/StatusDisplay.test.tsx @@ -74,6 +74,7 @@ const renderStatusDisplay = async ( uiState: UIState = createMockUIState(), settings = createMockSettings(), config = createMockConfig(), + allowEmptyFrame = false, ) => { const result = await render( @@ -83,6 +84,9 @@ const renderStatusDisplay = async ( , + undefined, + undefined, + allowEmptyFrame, ); return result; }; @@ -98,9 +102,13 @@ describe('StatusDisplay', () => { }); it('renders nothing by default if context summary is hidden via props', async () => { - const { lastFrame, unmount } = await renderStatusDisplay({ - hideContextSummary: true, - }); + const { lastFrame, unmount } = await renderStatusDisplay( + { hideContextSummary: true }, + undefined, + undefined, + undefined, + true, + ); expect(lastFrame({ allowEmpty: true })).toBe(''); unmount(); }); @@ -154,6 +162,8 @@ describe('StatusDisplay', () => { { hideContextSummary: false }, undefined, settings, + undefined, + true, ); expect(lastFrame({ allowEmpty: true })).toBe(''); unmount();