test(cli): clean up diagnostic logs and tests after fixing render

This commit is contained in:
mkorwel
2026-04-16 17:33:28 +00:00
parent 60184b71ef
commit f4d5b42fd4
2 changed files with 0 additions and 10 deletions
@@ -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>,
-2
View File
@@ -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 ?? ''),