fix(cli): resolve lint errors preventing pipeline extraction

This commit is contained in:
mkorwel
2026-04-16 07:28:35 +00:00
parent aaebeac7db
commit bc04e59075
3 changed files with 6 additions and 6 deletions
@@ -10,6 +10,7 @@ import { LoginWithGoogleRestartDialog } from './LoginWithGoogleRestartDialog.js'
import { useKeypress } from '../hooks/useKeypress.js';
import {
_resetRelaunchStateForTesting,
relaunchApp,
} from '../../utils/processUtils.js';
import { type Config } from '@google/gemini-cli-core';
@@ -25,7 +26,7 @@ vi.mock('../../utils/processUtils.js', () => ({
}));
const mockedUseKeypress = useKeypress as Mock;
import { relaunchApp } from '../../utils/processUtils.js';
const mockedRelaunchApp = relaunchApp as Mock;
describe('LoginWithGoogleRestartDialog', () => {
@@ -784,8 +784,6 @@ export function KeypressProvider({
children: React.ReactNode;
config?: Config;
}) {
if (process.env['NODE_ENV'] === 'test') {
}
const { settings } = useSettingsStore();
const debugKeystrokeLogging = settings.merged.general.debugKeystrokeLogging;
+4 -3
View File
@@ -40,7 +40,8 @@ const createNoiseFilter = (method: keyof Console) => {
const original = console[method];
// eslint-disable-next-line @typescript-eslint/no-explicit-any
(console as any)[method] = new Proxy(original, {
apply(target: any, thisArg: any, argArray: any[]) {
// eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
apply(target: Function, thisArg: unknown, argArray: unknown[]) {
const firstArg = String(argArray[0]);
if (noiseStrings.some((s) => firstArg.includes(s))) {
return;
@@ -74,11 +75,11 @@ beforeEach(async () => {
// Reset singletons to ensure test isolation
themeManager.resetForTesting();
uiTelemetryService.clear();
// We do NOT remove all listeners here because it would break the
// We do NOT remove all listeners here because it would break the
// SessionContext subscription created during component mount.
// Instead, we rely on individual tests to manage their specific listeners
// or the clear() method to reset state.
await resetBrowserSession();
// Force specific env for test stability