Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade MSW to 2.0 #1005

Closed
Will-Mann-16 opened this issue Nov 2, 2023 · 1 comment · Fixed by #1007
Closed

Upgrade MSW to 2.0 #1005

Will-Mann-16 opened this issue Nov 2, 2023 · 1 comment · Fixed by #1007
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@Will-Mann-16
Copy link
Contributor

What are the steps to reproduce this issue?

  1. Install msw
  2. See it is version ^2.0.2
  3. Notice that all mock files generated like .msw.ts fail ts compilation due to build issues that rest isn't defined.

What happens?

In MSW 2.0 they have added a breaking change for the mocking system, namely replacing rest keyword with http.
https://mswjs.io/docs/migrations/1.x-to-2.x/.

What were you expecting to happen?

I expect that the new MSW 2.0 functionality be implemented, using the new http keyword and different responses.

Any logs, error output, etc?

N/A.

Any other comments?

N/A.

What versions are you using?

Operating System: MacOS
Package Version: 6.19.1
Browser Version: N/A

@melloware melloware added the enhancement New feature or request label Nov 2, 2023
@melloware
Copy link
Collaborator

I assigned it to you @Will-Mann-16

@melloware melloware added this to the 6.20.0 milestone Nov 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants