Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Intercepting a FormData request containing a File causes a timeout for node >20 #2415

Open
4 tasks done
pkawula opened this issue Jan 16, 2025 · 0 comments
Open
4 tasks done
Labels
bug Something isn't working needs:triage Issues that have not been investigated yet. scope:node Related to MSW running in Node

Comments

@pkawula
Copy link

pkawula commented Jan 16, 2025

Prerequisites

Environment check

  • I'm using the latest msw version
  • I'm using Node.js version 18 or higher

Node.js version

v22.11.0

Reproduction repository

https://github.com/pkawula/msw-node-22-fail

Reproduction steps

Clone the provided repository and use node 20 or 22, then run npm i && npm t.

As an example I'm attaching screenshots from:

  1. Node 18.17.1
Image
  1. Node 20.14.0
Image
  1. Node 22.11.0
Image

Current behavior

Tests are failing with timeout

Expected behavior

Tests should pass.

@pkawula pkawula added bug Something isn't working needs:triage Issues that have not been investigated yet. scope:node Related to MSW running in Node labels Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs:triage Issues that have not been investigated yet. scope:node Related to MSW running in Node
Projects
None yet
Development

No branches or pull requests

1 participant