fix(cli): hide scrollbars when in alternate buffer copy mode (#18354)

Co-authored-by: Jacob Richman <jacob314@gmail.com>
This commit is contained in:
Andrew Garrett
2026-02-11 07:30:27 +11:00
committed by GitHub
parent f9fc9335f5
commit ef02cec2cd
6 changed files with 67 additions and 7 deletions
@@ -14,6 +14,12 @@ import { MouseProvider } from '../../contexts/MouseContext.js';
import { describe, it, expect, vi } from 'vitest';
import { waitFor } from '../../../test-utils/async.js';
vi.mock('../../contexts/UIStateContext.js', () => ({
useUIState: vi.fn(() => ({
copyModeEnabled: false,
})),
}));
// Mock useStdout to provide a fixed size for testing
vi.mock('ink', async (importOriginal) => {
const actual = await importOriginal<typeof import('ink')>();