test(cli): address unresolved feedback from PR #23252 (#23303)

This commit is contained in:
Tommaso Sciortino
2026-03-20 21:42:01 +00:00
committed by GitHub
parent 8eb419a47a
commit 11ec4ac2f8
3 changed files with 51 additions and 35 deletions
@@ -3249,8 +3249,9 @@ describe('useGeminiStream', () => {
),
);
// Reset start time after hook render, because renderHook (async)
// advances fake timers by 50ms during its internal waitUntilReady() check.
// Reset fake timers to startTime because the asynchronous render lifecycle
// (via waitUntilReady) advances the mock clock while waiting for initial
// components to settle.
vi.setSystemTime(startTime);
// Submit query