diff --git a/tests/unit/setup.ts b/tests/unit/setup.ts index 393bced..96800c9 100644 --- a/tests/unit/setup.ts +++ b/tests/unit/setup.ts @@ -1,6 +1,7 @@ import fetchMock from 'fetch-mock'; beforeAll(() => { + fetchMock.mockGlobal(); // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore window.CSS = { @@ -9,5 +10,5 @@ beforeAll(() => { }); afterEach(() => { - fetchMock.reset(); + fetchMock.removeRoutes(); });