docs(ui): refine documentation and test eslint-disable for context UI changes

This commit is contained in:
Keith Guerin
2026-03-20 00:43:30 -07:00
parent 1de0367faa
commit fd8d218911
3 changed files with 2 additions and 13 deletions
@@ -22,10 +22,6 @@ describe('compressCommand', () => {
let context: ReturnType<typeof createMockCommandContext>;
let mockTryCompressChat: ReturnType<typeof vi.fn>;
afterEach(() => {
vi.restoreAllMocks();
});
beforeEach(() => {
mockTryCompressChat = vi.fn();
vi.mocked(Core.tokenLimit).mockReturnValue(1000);
@@ -32,7 +32,7 @@ export function CompressionMessage({
switch (compressionStatus) {
case CompressionStatus.COMPRESSED:
return `Context compressed (${beforePercentage}% ${afterPercentage}%).`;
return `Context compressed (${beforePercentage}% ${afterPercentage}%).`;
case CompressionStatus.COMPRESSION_FAILED_INFLATED_TOKEN_COUNT:
return 'Compression was not beneficial for this history size.';
case CompressionStatus.COMPRESSION_FAILED_TOKEN_COUNT_ERROR:
@@ -256,12 +256,9 @@ describe('useGeminiStream', () => {
const mockOnAuthError = vi.fn();
const mockPerformMemoryRefresh = vi.fn(() => Promise.resolve());
const mockSetModelSwitchedFromQuotaError = vi.fn();
const mockOnCancelSubmit = vi.fn();
const mockSetShellInputFocused = vi.fn();
afterEach(() => {
vi.restoreAllMocks();
});
const mockGetGeminiClient = vi.fn().mockImplementation(() => {
const clientInstance = new MockedGeminiClientClass(mockConfig);
return clientInstance;
@@ -339,10 +336,6 @@ describe('useGeminiStream', () => {
getContextWindowCompressionThreshold: vi.fn(() => 0.2),
} as unknown as Config;
afterEach(() => {
vi.restoreAllMocks();
});
beforeEach(() => {
vi.clearAllMocks(); // Clear mocks before each test
mockAddItem = vi.fn();