IanVS / vitest-fetch-mock

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

Support vitest 0.16+ #3

Closed jasikpark closed 2 years ago

jasikpark commented 2 years ago

Fixes #2

This upgrades to vitest 0.17.0, fixes the SpyFunction type and removes the usage of done() callbacks in favor of promises in api.test.js (vitest was complaining)

IanVS commented 2 years ago

Hmmmm, it looks like Mock is the replacement for SpyInstanceFn: https://github.com/vitest-dev/vitest/pull/1525#issuecomment-1163602304. Mind updating that here?

Also, I think we should add a peerDependencies on vitest >= 0.16.0.

jasikpark commented 2 years ago

done

jasikpark commented 2 years ago

Oops this needs to have a peer dependency of > 0.16 not 0.16 - 0.17

IanVS commented 2 years ago

Fixed in 0.2.1.