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:
Jacob Richman
2025-11-20 10:44:02 -08:00
committed by GitHub
parent e20d282088
commit d1e35f8660
82 changed files with 1523 additions and 868 deletions
@@ -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);