Skip to content

Commit 4172946

Browse files
committed
Fix flaky test UnreadIndicatorsTest
1 parent d4f4e53 commit 4172946

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

tests/ui/UnreadIndicatorsTest.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,10 +187,12 @@ describe('Unread Indicators', () => {
187187

188188
beforeEach(() => {
189189
jest.clearAllMocks();
190-
Onyx.clear();
191-
190+
191+
global.fetch = TestHelper.getGlobalFetchMock();
192192
// Unsubscribe to pusher channels
193193
PusherHelper.teardown();
194+
195+
return Onyx.clear().then(waitForBatchedUpdates);
194196
});
195197

196198
it('Display bold in the LHN for unread chat and new line indicator above the chat message when we navigate to it', () =>

0 commit comments

Comments
 (0)