From 980091cbc2a809690dbd401c16ec3ac34da56083 Mon Sep 17 00:00:00 2001 From: Gal Zahavi <38544478+galz10@users.noreply.github.com> Date: Thu, 14 Aug 2025 13:40:12 -0700 Subject: feat(core): refactor shell execution to use node-pty (#6088) --- packages/cli/src/ui/hooks/useToolScheduler.test.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'packages/cli/src/ui/hooks/useToolScheduler.test.ts') diff --git a/packages/cli/src/ui/hooks/useToolScheduler.test.ts b/packages/cli/src/ui/hooks/useToolScheduler.test.ts index 64b064e2..36fa8825 100644 --- a/packages/cli/src/ui/hooks/useToolScheduler.test.ts +++ b/packages/cli/src/ui/hooks/useToolScheduler.test.ts @@ -34,6 +34,13 @@ import { HistoryItemToolGroup, } from '../types.js'; +vi.mock('./useTerminalSize', () => ({ + useTerminalSize: () => ({ + columns: 80, + rows: 24, + }), +})); + // Mocks vi.mock('@google/gemini-cli-core', async () => { const actual = await vi.importActual('@google/gemini-cli-core'); @@ -179,6 +186,8 @@ describe('useReactToolScheduler in YOLO Mode', () => { request.args, expect.any(AbortSignal), undefined, + 80, + 24, ); // Check that onComplete was called with success @@ -326,6 +335,8 @@ describe('useReactToolScheduler', () => { request.args, expect.any(AbortSignal), undefined, + 80, + 24, ); expect(onComplete).toHaveBeenCalledWith([ expect.objectContaining({ -- cgit v1.2.3