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

intercepted request won't abort on node 20 w/ [email protected] #2184

Open
4 tasks done
gerbyzation opened this issue Jun 18, 2024 · 0 comments
Open
4 tasks done

intercepted request won't abort on node 20 w/ [email protected] #2184

gerbyzation opened this issue Jun 18, 2024 · 0 comments
Labels
bug Something isn't working needs:triage Issues that have not been investigated yet. scope:node Related to MSW running in Node

Comments

@gerbyzation
Copy link
Contributor

Prerequisites

Environment check

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

Node.js version

v20.6.1

Reproduction repository

https://github.com/gerbyzation/msw-node20-undici-fetch-abort-repro

Reproduction steps

Setup:

git clone https://github.com/gerbyzation/msw-node20-undici-fetch-abort-repro
cd msw-node20-undici-fetch-abort-repro
pnpm i

To demonstrate the abort doesn't work with an MSW handler, but does work without run the two scripts below:

node not-working-abort.mjs
node working-abort.mjs

Current behavior

Request completes without throwing an abort error

Expected behavior

fetch should throw an abort error

@gerbyzation gerbyzation added bug Something isn't working needs:triage Issues that have not been investigated yet. scope:node Related to MSW running in Node labels Jun 18, 2024
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