How to mock requests from the middleware using msw? #38553
Unanswered
illiakovalenko
asked this question in
Help
Replies: 1 comment
-
I have submitted a ticket in MSW to support the edge runtime, but it looks like they won't be implementing it anytime soon. I'm hoping there is a simple way to use only the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Our team used with-msw example in order to mock requests.
We didn't find an example of how mock requests in the middleware.
middleware.ts
file, asmiddleware
has a different process and it's not enough to run it from the_app.tsx
edge runtime
doesn't allow to use itThe question is, how to use
msw
with themiddleware
, or can someone provide a library to mock requests in the middleware?Beta Was this translation helpful? Give feedback.
All reactions