checkly-cli icon indicating copy to clipboard operation
checkly-cli copied to clipboard

TECH: Mock Service Worker (MSW) v2

Open sir-alex opened this issue 1 year ago • 0 comments

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.

sir-alex avatar Dec 07 '24 18:12 sir-alex