checkly-cli
checkly-cli copied to clipboard
TECH: Mock Service Worker (MSW) v2
Affected Components
- [x] CLI
- [x] Create CLI
- [x] Test
- [ ] Docs
- [ ] Examples
- [ ] Other
New Dependency Submission
"devDependencies": {
...
"msw": "2.6.8",
...
}
Basic implementation MSW https://mswjs.io/ for advanced server response mocking. The current API mocking using Jest's standard mocking functionality can be challenging due to the complexity of the Axios setup. Incorporating advanced server response mocking with MSW will simplify the process and make it more effective for both unit and integration tests.