add and use MockFetchApi

Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
Fredrik Adelöw
2022-01-06 19:46:33 +01:00
parent aecfe4f403
commit 6bf7826258
23 changed files with 284 additions and 106 deletions
+3 -1
View File
@@ -41,6 +41,7 @@
"@testing-library/jest-dom": "^5.10.1",
"@testing-library/react": "^11.2.5",
"@testing-library/user-event": "^13.1.8",
"cross-fetch": "^3.0.6",
"react-router": "6.0.0-beta.0",
"react-router-dom": "6.0.0-beta.0",
"zen-observable": "^0.8.15"
@@ -52,7 +53,8 @@
"devDependencies": {
"@backstage/cli": "^0.12.0-next.0",
"@types/jest": "^26.0.7",
"@types/node": "^14.14.32"
"@types/node": "^14.14.32",
"msw": "^0.35.0"
},
"files": [
"dist"