Skip to content
This repository has been archived by the owner on Feb 16, 2024. It is now read-only.

Commit

Permalink
test msw imports
Browse files Browse the repository at this point in the history
  • Loading branch information
r4zendev committed Dec 20, 2023
1 parent afe6377 commit 8ecedff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion codemods/msw/2/imports/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Description

Following the original msw [upgrade guide](https://mswjs.io/docs/migrations/1.x-to-2.x/#imports), there are certain imports that changed their location and/or naming. This codemod will import correct objects from appropriate paths to start your msw migration path.
Following the original msw [upgrade guide](https://mswjs.io/docs/migrations/1.x-to-2.x/#imports), 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`
Expand Down

0 comments on commit 8ecedff

Please sign in to comment.