"request" in worker.events.on('response:mocked') is always null #1992
Labels
bug
Something isn't working
good first issue
Good for newcomers
scope:browser
Related to MSW running in a browser
Discussed in #1991
Originally posted by canrozanes January 22, 2024
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?
The text was updated successfully, but these errors were encountered: