IanVS / vitest-fetch-mock

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

Node minimum version #21

Open XaveScor opened 1 month ago

XaveScor commented 1 month ago

Vitest supports node>=18 only, but vitest-fetch-mock supports node 14 in package.json.

https://github.com/vitest-dev/vitest/blob/d7b0387125da9c2882b12a1f63cc693dc049b15c/package.json#L9

I think, we can safely up the minimum supported Node version up to v18. It allows the lib to use the native fetch instead of cross-fetch polyfill.

IanVS commented 1 month ago

Ah, yes, my intention was to support node 18+, I just didn't notice I had an engines field. Would you like to submit a PR?

XaveScor commented 1 month ago

I'll make a PR