Refactor utils.fetch to a module and mock it with nock

Add redirect support in utils.fetch
This commit is contained in:
Shivam Mathur
2022-02-05 11:41:01 +05:30
parent 76555571a6
commit 4dc94c27cf
10 changed files with 292 additions and 129 deletions

View File

@ -52,6 +52,7 @@
"eslint-plugin-prettier": "^4.0.0",
"jest": "^27.4.7",
"jest-circus": "^27.4.6",
"nock": "^13.2.4",
"prettier": "^2.5.1",
"simple-git-hooks": "^2.7.0",
"ts-jest": "^27.1.3",