Skip to content

Commit

Permalink
Remove whatwg-fetch and node-fetch packages
Browse files Browse the repository at this point in the history
  • Loading branch information
erikguntner committed Apr 3, 2024
1 parent a0652a7 commit 84299cd
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 159 deletions.
154 changes: 1 addition & 153 deletions app/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,9 @@
"jsdom": "^20.0.0",
"lint-staged": "^13.0.3",
"msw": "^2.2.3",
"node-fetch": "^3.3.2",
"ts-node": "^10.9.1",
"typescript": "^4.7.4",
"vite": "^5.2.8",
"vitest": "^1.4.0",
"whatwg-fetch": "^3.6.2"
"vitest": "^1.4.0"
}
}
3 changes: 0 additions & 3 deletions app/src/utils/test/setupTests.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
// Handle test setup here
import '@testing-library/jest-dom';
import nodeFetch, {Request, Response} from 'node-fetch';
import {server} from './server';

Object.assign(global, {fetch: nodeFetch, Request, Response});

beforeAll(() => server.listen({onUnhandledRequest: 'error'}));
afterEach(() => server.resetHandlers());
afterAll(() => server.close());

0 comments on commit 84299cd

Please sign in to comment.