mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-15 14:23:02 -07:00
test(cli): clean up diagnostic logs and tests after fixing render
This commit is contained in:
@@ -25,14 +25,6 @@ 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>,
|
||||
|
||||
@@ -136,7 +136,6 @@ class XtermStdout extends EventEmitter {
|
||||
}
|
||||
|
||||
write = (data: string) => {
|
||||
console.log(`[XtermStdout.write] data: ${JSON.stringify(data)}`);
|
||||
this.pendingWrites++;
|
||||
this.queue.promise = this.queue.promise.then(async () => {
|
||||
await new Promise<void>((resolve) =>
|
||||
@@ -246,7 +245,6 @@ class XtermStdout extends EventEmitter {
|
||||
const currentFrame = stripAnsi(
|
||||
this.lastFrame({ allowEmpty: true }),
|
||||
).trim();
|
||||
console.log(`[waitUntilReady] currentFrame: ${JSON.stringify(currentFrame)}`);
|
||||
const expectedFrame = this.normalizeFrame(
|
||||
stripAnsi(
|
||||
(this.lastRenderStaticContent ?? '') + (this.lastRenderOutput ?? ''),
|
||||
|
||||
Reference in New Issue
Block a user