From 0c9851103b0d16d28832d9a20c2cd7b6d3bc454f Mon Sep 17 00:00:00 2001 From: mkorwel Date: Fri, 17 Apr 2026 20:09:29 +0000 Subject: [PATCH] test: fix usePhraseCycler tests --- packages/cli/src/ui/hooks/usePhraseCycler.test.tsx | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/packages/cli/src/ui/hooks/usePhraseCycler.test.tsx b/packages/cli/src/ui/hooks/usePhraseCycler.test.tsx index 82264442e6..53c124a43c 100644 --- a/packages/cli/src/ui/hooks/usePhraseCycler.test.tsx +++ b/packages/cli/src/ui/hooks/usePhraseCycler.test.tsx @@ -60,6 +60,9 @@ describe('usePhraseCycler', () => { vi.spyOn(Math, 'random').mockImplementation(() => 0.5); // Always witty const { lastFrame, unmount, waitUntilReady } = await render( , + undefined, + undefined, + true, ); await waitUntilReady(); expect(lastFrame({ allowEmpty: true }).trim()).toBe(''); @@ -124,8 +127,11 @@ describe('usePhraseCycler', () => { }); it('should not cycle phrases if isActive is false and not waiting', async () => { - const { lastFrame, waitUntilReady, unmount } = await render( + const { lastFrame, unmount, waitUntilReady } = await render( , + undefined, + undefined, + true, ); await waitUntilReady(); const initialPhrase = lastFrame({ allowEmpty: true }).trim(); @@ -194,7 +200,7 @@ describe('usePhraseCycler', () => { return val; }); - const { lastFrame, rerender, waitUntilReady, unmount } = await render( + const { lastFrame, rerender, unmount, waitUntilReady } = await render( { showWit={true} showTips={false} />, + undefined, + undefined, + true, ); - await waitUntilReady(); // Activate await act(async () => {