Skip to content

Commit

Permalink
update fetch-mock api
Browse files Browse the repository at this point in the history
  • Loading branch information
jgerigmeyer committed Nov 1, 2024
1 parent 288ea01 commit cb6a479
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/unit/setup.ts
Original file line number Diff line number Diff line change
@@ -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 = {
Expand All @@ -9,5 +10,5 @@ beforeAll(() => {
});

afterEach(() => {
fetchMock.reset();
fetchMock.removeRoutes();
});

0 comments on commit cb6a479

Please sign in to comment.