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

View File

@@ -18,6 +18,7 @@ import {
} from './setupGithubCommand.js';
import type { CommandContext, ToolActionReturn } from './types.js';
import * as commandUtils from '../utils/commandUtils.js';
import { debugLogger } from '@google/gemini-cli-core';
vi.mock('child_process');
@@ -257,7 +258,9 @@ describe('updateGitignore', () => {
});
it('handles permission errors gracefully', async () => {
const consoleSpy = vi.spyOn(console, 'debug').mockImplementation(() => {});
const consoleSpy = vi
.spyOn(debugLogger, 'debug')
.mockImplementation(() => {});
const fsModule = await import('node:fs');
const writeFileSpy = vi