mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-05 20:34:18 +01:00
test(sessions): flush microtasks instead of fixed sleep in transcript test
This commit is contained in:
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)
|
||||
})
|
||||
|
||||
|
||||
Reference in new issue
Block a user