-
Notifications
You must be signed in to change notification settings - Fork 12
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
Doesn't work when used with "express.json" middleware #18
Comments
Hey, @nnnnat. Thanks for raising this. I've taken a quick look and it seems that the body we encode in the middleware results in the encoded I believe the issue is somewhere around here: http-middleware/src/middleware.ts Line 22 in ca84976
If I look at your server, I can see that you use On the middleware's side, we need to check if the |
Released: v0.5.1 🎉This has been released in v0.5.1! Make sure to always update to the latest version ( Predictable release automation by @ossjs/release. |
Hey y'all big fan of MSW!
I've been using MSW & http-middleware together to create a mock GraphQL API for a few months & I've recently run into an issue after updating to MSW v0.44.2 & http-middleware v0.5.0. I have a very similar setup to the custom server example in this repo & after updating all GQL operations now seem to pass through & return a 404 "Mock not found".
I've put together a small example that reproduces the issue I'm seeing.
The text was updated successfully, but these errors were encountered: