Skip to content

Commit e2fcabf

Browse files
committed
test(detectors): Move fetchMock reset to afterEach
- Align `cron.spec.tsx` with `serviceIncidents.spec.tsx` by moving `fetchMock.resetMocks()` to `afterEach`.
1 parent fd79957 commit e2fcabf

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

static/app/views/detectors/list/cron.spec.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,15 @@ describe('CronDetectorsList', () => {
3030
},
3131
};
3232

33+
afterEach(() => {
34+
fetchMock.resetMocks();
35+
});
36+
3337
beforeEach(() => {
3438
ConfigStore.set('statuspage', {
3539
id: 'sentry',
3640
api_host: 'status.sentry.io',
3741
});
38-
fetchMock.resetMocks();
3942
MockApiClient.clearMockResponses();
4043
MockApiClient.addMockResponse({
4144
url: '/organizations/org-slug/users/1/',

0 commit comments

Comments
 (0)