From 361e8f26b7a2ef614a3dac18c3636aec68c19512 Mon Sep 17 00:00:00 2001 From: mkorwel Date: Sat, 18 Apr 2026 09:45:27 +0000 Subject: [PATCH] test: fix useCommandCompletion tests --- packages/cli/src/ui/hooks/useCommandCompletion.test.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/cli/src/ui/hooks/useCommandCompletion.test.tsx b/packages/cli/src/ui/hooks/useCommandCompletion.test.tsx index 982991bf9a..581096de1e 100644 --- a/packages/cli/src/ui/hooks/useCommandCompletion.test.tsx +++ b/packages/cli/src/ui/hooks/useCommandCompletion.test.tsx @@ -217,6 +217,7 @@ describe('useCommandCompletion', () => { shellModeActive={shellModeActive} active={active} />, + { allowEmptyFrame: true }, ); return { result: { @@ -833,7 +834,7 @@ describe('useCommandCompletion', () => { hookResult = { ...completion, textBuffer }; return null; } - await renderWithProviders(); + await renderWithProviders(, { allowEmptyFrame: true }); // Should not trigger prompt completion for comments await waitFor(() => { @@ -868,7 +869,7 @@ describe('useCommandCompletion', () => { hookResult = { ...completion, textBuffer }; return null; } - await renderWithProviders(); + await renderWithProviders(, { allowEmptyFrame: true }); // Should not trigger prompt completion for comments await waitFor(() => { @@ -903,7 +904,7 @@ describe('useCommandCompletion', () => { hookResult = { ...completion, textBuffer }; return null; } - await renderWithProviders(); + await renderWithProviders(, { allowEmptyFrame: true }); // This test verifies that comments are filtered out while regular text is not await waitFor(() => {