Requests aren't intercepted anymore since 2.4.4 #2385
Labels
bug
Something isn't working
needs:triage
Issues that have not been investigated yet.
scope:node
Related to MSW running in Node
Prerequisites
Environment check
msw
versionNode.js version
v20.18.0
Background
Thanks for this great library. We've been using it for some time now to mock response in the vscode-terraform test suite.
During some regular dependency bumps we noticed that the mocking didn't work anymore.
Reproduction repository
https://github.com/dbanck/playground-vscode-msw-bug
Reproduction steps
Current behavior
The request isn't intercepted anymore
The request isn't captured by any of the life-cycle events that log to the extension debug channel
Axios logs a 404 error, because the request isn't mocked and a real request is sent to
https://example.com/test
Expected behavior
I have traced it back to this change: v2.4.3...v2.4.4
When I downgrade msw to 2.4.3 everything is working as expected.
The request is logged by the lifecycle events
And my mocked response is returned
The text was updated successfully, but these errors were encountered: