Following the original msw upgrade guide, there are certain imports that changed their location and/or naming. This codemod will adjust your imports to the new location and naming.
- setupWorker is now imported from msw/browser
- rest from msw is now named http
- RestHandler from msw is now named HttpHandler
Before
ts
After
ts