Native node.js fetch doesn't abort when an msw server is running #1701
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.5.0 and v18.17.1
Reproduction repository
https://github.com/n-e/msw-bug-repro
Reproduction steps
Run
node index.js
in the provided repoCurrent behavior
The fetch call returns after 2 seconds.
Expected behavior
The fetch call should fail with a timeout, since :
{ signal: AbortSignal.timeout(1) }
as an argumentserver.listen()
is commented, it failsThe text was updated successfully, but these errors were encountered: