test(sessions): flush microtasks instead of fixed sleep in transcript test

This commit is contained in:
Chris Scott committed 2026-10-11 23:47:09 -04:00
1 parent aec94db9fb
commit 59a25cc39e
1 file changed
+1 -1
@@ -224,7 +224,7 @@ describe('useSessionTranscript', () => {
await waitFor(() => expect(result.current.messages).toHaveLength(2))
await new Promise((resolve) => setTimeout(resolve, 20))
await act(async () => {})
expect(mocks.readSessionSnapshot).toHaveBeenCalledTimes(1)
})