fix(cli): resolve race conditions in test utils and streamline CI workflow

This commit is contained in:
mkorwel
2026-04-16 15:50:55 +00:00
parent ae3f3b6127
commit 9a347447c2
2 changed files with 5 additions and 23 deletions
+5 -5
View File
@@ -263,16 +263,16 @@ class XtermStdout extends EventEmitter {
return currentFrame !== '' || this.pendingWrites === 0;
}
if (this.lastRenderOutput === undefined) {
return false;
}
// If Ink expects nothing (no new static content and no dynamic output),
// we consider it a match because the terminal buffer will just hold the historical static content.
if (expectedFrame === '') {
return true;
}
if (this.lastRenderOutput === undefined) {
return false;
}
// If the terminal is empty but Ink expects something, it's not a match.
if (currentFrame === '') {
return false;
@@ -865,7 +865,7 @@ export async function renderHook<Result, Props>(
);
inkRerender = renderResult.rerender;
unmount = renderResult.unmount;
waitUntilReady = renderResult.waitUntilReady;
waitUntilReady = async () => {};
generateSvg = renderResult.generateSvg;
function rerender(props?: Props) {