Skip to content

Apparent TypeScript type issue with Vitest test extends #5710

Answered by hi-ogawa
jasonkuhrt asked this question in Q&A
Discussion options

You must be logged in to vote

That should intend to work, so it could be some edge case bug where type inference is confused by Mock type or tsconfig.

It looks working on simple test on stackblitz https://stackblitz.com/edit/vitest-dev-vitest-w4tsmc?file=test%2Frepro.test.ts, so we'll need a concrete reproduction. Feel free to open an issue if you have one.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jasonkuhrt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants