mswjs / msw

Industry standard API mocking for JavaScript.
https://mswjs.io
MIT License
15.97k stars 519 forks source link

Abort signal not respected for `graphql-request` (v2.4.4+) #2314

Closed lucademian closed 2 weeks ago

lucademian commented 1 month ago

Prerequisites

Environment check

Node.js version

v22.6.0, v20.12.0

Reproduction repository

https://github.com/lucademian/recursing-snow-4dw63l

Reproduction steps

npm test

Current behavior

Tests fail

Expected behavior

Tests pass

kettanaito commented 2 weeks ago

Hi, @lucademian. Thanks for reporting this.

I've found the root cause and opened a fix at https://github.com/mswjs/interceptors/pull/673. Will propagate to MSW soon.

kettanaito commented 2 weeks ago

Re-installing msw will pull the latest interceptors version and give you the fix for this issue.