test(cli): resolve act() warnings, fix terminalCapabilityManager mock, and update snapshots

This commit is contained in:
Keith Guerin
2026-03-24 20:50:59 -07:00
parent 73c244861c
commit 5062f459c5
7 changed files with 344 additions and 59 deletions
-2
View File
@@ -8,7 +8,6 @@ import { vi, beforeEach, afterEach } from 'vitest';
import { format } from 'node:util';
import { coreEvents } from '@google/gemini-cli-core';
import { themeManager } from './src/ui/themes/theme-manager.js';
import { cleanup } from './src/test-utils/render.js';
// Unset CI environment variable so that ink renders dynamically as it does in a real terminal
if (process.env.CI !== undefined) {
@@ -80,7 +79,6 @@ beforeEach(() => {
});
afterEach(() => {
cleanup();
consoleErrorSpy.mockRestore();
vi.unstubAllEnvs();