mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-30 23:14:32 -07:00
Protect stdout and stderr so JavaScript code can't accidentally write to stdout corrupting ink rendering (#13247)
Bypassing rules as link checker failure is spurious.
This commit is contained in:
@@ -17,6 +17,7 @@ import {
|
||||
import { ActivityType } from './activity-types.js';
|
||||
import type { ActivityEvent } from './activity-monitor.js';
|
||||
import type { Config } from '../config/config.js';
|
||||
import { debugLogger } from '../utils/debugLogger.js';
|
||||
|
||||
// Mock the dependencies
|
||||
vi.mock('./metrics.js', () => ({
|
||||
@@ -191,7 +192,9 @@ describe('ActivityMonitor', () => {
|
||||
};
|
||||
|
||||
// Spy on console.debug to check error handling
|
||||
const debugSpy = vi.spyOn(console, 'debug').mockImplementation(() => {});
|
||||
const debugSpy = vi
|
||||
.spyOn(debugLogger, 'debug')
|
||||
.mockImplementation(() => {});
|
||||
|
||||
activityMonitor.addListener(faultyListener);
|
||||
activityMonitor.addListener(goodListener);
|
||||
|
||||
Reference in New Issue
Block a user