Node fetch abort reason missing #1828
-
I ran into an issue during my migration to 2.0, it seems that node fetch doesn't actually throw an exception object with a the abort reason when a fetch is aborted. This is important to my app, I have tests around this information. I realize this isn't an issue in MSW per se, which is why I'm not opening an issue. This used to work, so it does feel like a regression compared to 1.x. Does anyone have any suggestions? I tried switching to node-fetch, but has the same issue :( |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Do you have a small repro case, or a test that fails in v2 but passed in v1 that I can take a look at? I'm not sure offhand what the best path is here, if the underlying fetch libraries aren't doing what's expected, but more curious about where that was working beforehand - and what the difference is |
Beta Was this translation helpful? Give feedback.
-
I was able to get around this by upgrading jest, which uses a newer JSDOM. Thanks for the responses! |
Beta Was this translation helpful? Give feedback.
I was able to get around this by upgrading jest, which uses a newer JSDOM. Thanks for the responses!