test(cli): add act and process.nextTick to polling loop in waitUntilReady

This commit is contained in:
mkorwel
2026-04-16 17:19:04 +00:00
parent f3120cd538
commit 42f9b28d43
+3
View File
@@ -299,6 +299,9 @@ class XtermStdout extends EventEmitter {
if (vi.isFakeTimers()) {
await vi.advanceTimersByTimeAsync(100);
} else {
await act(async () => {
await new Promise((resolve) => process.nextTick(resolve));
});
await new Promise((resolve) => setTimeout(resolve, 100));
}
}