Fixing broken tests, adding UI setting to docs

This commit is contained in:
Dmitry Lyalin
2025-12-31 15:09:51 -05:00
parent 3aefc66b7b
commit 3a513f9890
4 changed files with 22 additions and 1 deletions

View File

@@ -11,6 +11,16 @@ import { Box, Text } from 'ink';
import type React from 'react';
// Mock dependencies
vi.mock('../contexts/SettingsContext.js', () => ({
useSettings: () => ({
merged: {
ui: {
showInlineThinking: false,
},
},
}),
}));
vi.mock('../contexts/AppContext.js', () => ({
useAppContext: () => ({
version: '1.0.0',

View File

@@ -5,7 +5,7 @@
*/
import { describe, it, expect } from 'vitest';
import { render } from 'ink-testing-library';
import { render } from '../../../test-utils/render.js';
import { ThinkingMessage } from './ThinkingMessage.js';
describe('ThinkingMessage', () => {