mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-03-15 16:41:11 -07:00
Migrate core render util to use xterm.js as part of the rendering loop. (#19044)
This commit is contained in:
@@ -9,9 +9,13 @@ import { ShellModeIndicator } from './ShellModeIndicator.js';
|
||||
import { describe, it, expect } from 'vitest';
|
||||
|
||||
describe('ShellModeIndicator', () => {
|
||||
it('renders correctly', () => {
|
||||
const { lastFrame } = render(<ShellModeIndicator />);
|
||||
it('renders correctly', async () => {
|
||||
const { lastFrame, waitUntilReady, unmount } = render(
|
||||
<ShellModeIndicator />,
|
||||
);
|
||||
await waitUntilReady();
|
||||
expect(lastFrame()).toContain('shell mode enabled');
|
||||
expect(lastFrame()).toContain('esc to disable');
|
||||
unmount();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user