(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:
Anthony LC
2024-01-17 13:30:06 +01:00
committed by Anthony LC
parent 0c550ebd1c
commit ba21784eab
6 changed files with 167 additions and 12 deletions

View File

@@ -18,7 +18,8 @@
"npm"
],
"matchPackageNames": [
"node"
"node",
"node-fetch"
]
}
]