jefflau / jest-fetch-mock

Jest mock for fetch
MIT License
882 stars 116 forks source link

Passing in an already aborted signal throws synchronously #173

Closed joshuajaco closed 2 years ago

joshuajaco commented 3 years ago

When passing in an already aborted signal to fetch it throws synchronously. Chrome, Firefox and Safari all return a rejected Promise instead.

Reproduction and failing test: https://codesandbox.io/s/mystifying-dust-kzc3o