IanVS / vitest-fetch-mock

Vitest mock for fetch, forked from jest-fetch-mock
MIT License
59 stars 7 forks source link

Only test AbortController if defined #1

Closed IanVS closed 2 years ago

IanVS commented 2 years ago

AbortController was not introduced until node 15. Not sure how this is passing in jest-fetch-mock back to node 10, but I'm guessing it's due to the domexception polyfill.