Request in worker.events.on('response:mocked', {request} is always null #1991
Answered
by
kettanaito
canrozanes
asked this question in
Q&A
-
Hi, I was following the docs on life-cycle events and I was trying to assert on a response after making an API call. I have the following piece of code that saves all the requests so that I can assert on the responses later.
I can clearly see that MSW sends a response in the browser network tab but when I add a debugger inside the 'response:mocked' callback, I see that all the request are null. What could I be missing? |
Beta Was this translation helpful? Give feedback.
Answered by
kettanaito
Jan 24, 2024
Replies: 1 comment
-
Hi, @canrozanes. Thanks for letting me know. This does look like a bug. I will convert it into one. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
canrozanes
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, @canrozanes. Thanks for letting me know. This does look like a bug. I will convert it into one.