Skip to content

Commit

Permalink
resume the mock fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
bernhardoj committed Dec 20, 2024
1 parent 6462cca commit a074805
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/actions/IOUTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ describe('actions/IOU', () => {

let mockFetch: MockFetch;
beforeEach(() => {
jest.clearAllTimers();
global.fetch = TestHelper.getGlobalFetchMock();
mockFetch = fetch as MockFetch;
return Onyx.clear().then(waitForBatchedUpdates);
Expand Down Expand Up @@ -1984,6 +1985,8 @@ describe('actions/IOU', () => {
},
});
});

mockFetch?.resume?.();
});
});

Expand Down

0 comments on commit a074805

Please sign in to comment.