Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace fetch-mock with msw in tests
Use mock service worker (`msw`) in tests to more closely replicate a real environment, mocking at the network level instead of at the API level. This gives greater visibility into tests that are not properly isolated, avoids issues specific to `fetch` or whichever request library is being used, and could also be used for e2e testing in future. Another motivation behind the change is the fact that `fetch-mock` hasn't been updated in about 2 years and uses a number of deprecated packages including `querystring` which will no longer receive updates for vulnerabilities.
- Loading branch information