You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Setup @fetch-mock/vitest as per documentation and I have two issues:
Types aren't being loaded when using TS, resulting in Property 'toHavePatched' does not exist on type 'Assertion<FetchMockVitest>' - I didn't see anything in the docs about needing to do a manual override of Vitest types (as described in the Vitest expect extend docs)
toHavePatched seems to be throwing Cannot read properties of undefined (reading 'callHistory'):
expect(fetchMock).toHavePatched({})
I'll create a repo for reproducing this tomorrow (didn't want to forget to call it out), but I haven't gotten it to work at all yet, so should be pretty easy to reproduce - or maybe I'm missing something?
The text was updated successfully, but these errors were encountered:
Setup @fetch-mock/vitest as per documentation and I have two issues:
Property 'toHavePatched' does not exist on type 'Assertion<FetchMockVitest>'
- I didn't see anything in the docs about needing to do a manual override of Vitest types (as described in the Vitest expect extend docs)Cannot read properties of undefined (reading 'callHistory')
:I'll create a repo for reproducing this tomorrow (didn't want to forget to call it out), but I haven't gotten it to work at all yet, so should be pretty easy to reproduce - or maybe I'm missing something?
The text was updated successfully, but these errors were encountered: