mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-22 02:54:31 -07:00
Migrate core render util to use xterm.js as part of the rendering loop. (#19044)
This commit is contained in:
@@ -21,9 +21,13 @@ vi.mock('../semantic-colors.js', () => ({
|
||||
}));
|
||||
|
||||
describe('ThemedGradient', () => {
|
||||
it('renders children', () => {
|
||||
const { lastFrame } = render(<ThemedGradient>Hello</ThemedGradient>);
|
||||
it('renders children', async () => {
|
||||
const { lastFrame, waitUntilReady, unmount } = render(
|
||||
<ThemedGradient>Hello</ThemedGradient>,
|
||||
);
|
||||
await waitUntilReady();
|
||||
expect(lastFrame()).toContain('Hello');
|
||||
unmount();
|
||||
});
|
||||
|
||||
// Note: Testing actual gradient application is hard with ink-testing-library
|
||||
|
||||
Reference in New Issue
Block a user