post request results in timeout when providing body, header, or both #1182
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
14 / 16
Reproduction repository
https://codesandbox.io/s/laughing-ully-x4wt2w
Reproduction steps
open provided CodeSandbox and run
npm test
; only the test case executing a POST request with neither body nor header provided succeeds, the others failCurrent behavior
When providing data (i.e. body) to a
POST
request, the test ends in a timeout.A breakpoint within the request handler of the 'mocked server' is not even reached.
The exact same request when used against a 'real' nodeJS server (express)
Expected behavior
The tests should not result in a timeout and instead get processed by the handler.
I can not rule out, that my set up is wrong, however i followed the instructions to the best of my knowledge and understanding
The text was updated successfully, but these errors were encountered: