test(evals): fix overlapping act() deadlock in app-test-helper (#23666)

This commit is contained in:
Adib234
2026-03-24 15:12:22 -04:00
committed by GitHub
parent 122b8d43ca
commit bf80e27dbc
2 changed files with 5 additions and 2 deletions

View File

@@ -79,7 +79,7 @@ export function appEvalTest(policy: EvalPolicy, evalCase: AppEvalCase) {
}
// Render the app!
rig.render();
await rig.render();
// Wait for initial ready state
await rig.waitForIdle();

View File

@@ -66,7 +66,10 @@ beforeEach(() => {
? stackLines.slice(lastReactFrameIndex + 1).join('\n')
: stackLines.slice(1).join('\n');
if (relevantStack.includes('OverflowContext.tsx')) {
if (
relevantStack.includes('OverflowContext.tsx') ||
relevantStack.includes('useTimedMessage.ts')
) {
return;
}