This commit is contained in:
Gal Zahavi
2025-08-15 10:27:33 -07:00
committed by GitHub
parent ab1c483cab
commit 1a2906a8ad
16 changed files with 412 additions and 442 deletions

View File

@@ -36,13 +36,6 @@ 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');
@@ -231,8 +224,8 @@ describe('useReactToolScheduler in YOLO Mode', () => {
request.args,
expect.any(AbortSignal),
undefined,
80,
24,
undefined,
undefined,
);
// Check that onComplete was called with success
@@ -383,8 +376,8 @@ describe('useReactToolScheduler', () => {
request.args,
expect.any(AbortSignal),
undefined,
80,
24,
undefined,
undefined,
);
expect(onComplete).toHaveBeenCalledWith([
expect.objectContaining({