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 to MSW 2.0 #1380

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

kettanaito
Copy link

@kettanaito kettanaito commented Jan 6, 2024

For Maintainers

Description

This updates the msw package across the entire Liveblocks monorepo to be of the latest version (2.0.12 at the moment).

Thank you for using MSW! It means a lot to me. If you have a chance, please consider supporting the project on GitHub.

How to test it

  • Existing tests should pass.

Related issue(s)

Not related to any issues.

@@ -40,7 +40,7 @@
"@liveblocks/jest-config": "*",
"@types/ws": "^8.5.3",
"dotenv": "^16.0.3",
"msw": "^0.39.1",
"msw": "^2.0.12",
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MSW doesn't seem to be used in @liveblocks/client package but I updated it here anyway. I leave it to you to decide whether to remove it or not.

return res(
ctx.json({ token: legacyTokens[requestCount++ % legacyTokens.length] })
);
http.post("/mocked-api/legacy-auth", () => {
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes are rather minimal but they bring your tests much closer to the platform. If you are curious, read about the 2.0 release.

@kettanaito
Copy link
Author

Please let me know if there are any issues with the tests. The Vercel checks won't start since I'm not a team member (that's fine), and the GitHub Actions seems to be awaiting something.

@nvie nvie removed their request for review January 29, 2024 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant