mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-15 14:23:02 -07:00
test(cli): add test with fixed sleep to check if Ink renders at all
This commit is contained in:
@@ -25,6 +25,14 @@ describe.sequential('render', () => {
|
||||
unmount();
|
||||
});
|
||||
|
||||
it('should render a component with fixed sleep', async () => {
|
||||
vi.useRealTimers();
|
||||
const { lastFrame, unmount } = await render(<Text>Hello World</Text>);
|
||||
await new Promise((resolve) => setTimeout(resolve, 2000));
|
||||
console.log(`[Test] lastFrame after sleep: ${JSON.stringify(lastFrame())}`);
|
||||
unmount();
|
||||
});
|
||||
|
||||
it('should support rerender', async () => {
|
||||
const { lastFrame, rerender, waitUntilReady, unmount } = await render(
|
||||
<Text>Hello</Text>,
|
||||
|
||||
Reference in New Issue
Block a user