Expand typescript def to allow extending expect from jest
IanVS opened this issue · 2 comments
IanVS commented
Hi there, I'm moving over from web-test-runner to vitest, and instead of chai I'm using jest's expect assertion library. I am finding that I can declareFetchAssertions(expect);
and it seems to function correctly (although maybe I just haven't hit an edge case that causes problems), but unfortunately typescript complains because it's expecting (no pun intended) to get a Chai.ExpectStatic
.
So I guess I have a question and a request:
- Are there any issues with using vi-fetch matchers to extend expect?
- If not, could the typescript types be updated to accommodate for both uses?
sheremet-va commented
Are there any issues with using vi-fetch matchers to extend expect?
It should be compatible with Vitest's expect as well as jest's expect
If not, could the typescript types be updated to accommodate for both uses?
I will update the typescript types, sure
sheremet-va commented
Released under 0.4.2