diff --git a/src/explorer/Explorer.test.tsx b/src/explorer/Explorer.test.tsx index ac2e4d9c..378b1230 100644 --- a/src/explorer/Explorer.test.tsx +++ b/src/explorer/Explorer.test.tsx @@ -16,8 +16,8 @@ import { } from './actions'; afterEach(async () => { + jest.restoreAllMocks(); cleanup(); - jest.clearAllMocks(); localStorage.clear(); }); diff --git a/src/licenses/LicenseDialog.test.tsx b/src/licenses/LicenseDialog.test.tsx index f6297695..7d242fde 100644 --- a/src/licenses/LicenseDialog.test.tsx +++ b/src/licenses/LicenseDialog.test.tsx @@ -8,9 +8,9 @@ import { testRender } from '../../test'; import LicenseDialog from './LicenseDialog'; afterEach(() => { + jest.restoreAllMocks(); cleanup(); localStorage.clear(); - jest.clearAllMocks(); }); describe('LicenseDialog', () => {