Skip to content

Commit

Permalink
Remove fetch-mock
Browse files Browse the repository at this point in the history
Using jest to mock at the boundaries of node-fetch directly is simpler,
and makes type mismatches between the mock and the real module less
likely.
  • Loading branch information
nicknovitski committed Sep 16, 2024
1 parent bc6e5f5 commit 01ddd6d
Show file tree
Hide file tree
Showing 4 changed files with 278 additions and 367 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@
"@types/promise-retry": "^1.1.6",
"eslint": "^8.57.0",
"eslint-config-universe": "^12.0.0",
"fetch-mock": "^9.11.0",
"jest": "^29.7.0",
"prettier": "^3.2.5",
"ts-jest": "~29.2.5",
Expand Down
1 change: 0 additions & 1 deletion src/__mocks__/node-fetch.ts

This file was deleted.

Loading

0 comments on commit 01ddd6d

Please sign in to comment.