✅(app-desk) add fetch-mock and adapt the tests
- Adapt the tests to use React-Query - Install fetch-mock to mock the fetch requests with Jest. - Create a test to show how to mock the fetch requests with fetch-mock
This commit is contained in:
@@ -18,7 +18,8 @@
|
||||
"npm"
|
||||
],
|
||||
"matchPackageNames": [
|
||||
"node"
|
||||
"node",
|
||||
"node-fetch"
|
||||
]
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user