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
When I use test.fails I get the typescript error Property 'fails' does not exist on type 'It'. I can fix this by importing the vitest test, however wondering if there is a way I can have this apply without my needing to import it.
I think this is happening due to typescript linting picking up the jest version of It.
I think you have jest types for "test". If so, there is nothing we can do to fix this.
I have't added this myself, I assume it is coming from one of the @testing-library packages. If import test from vitest then it resolves the issue, I was just hoping I wouldn't have to (like I don't with jest). If that is the only solution at the moment, feel welcome to close this issue 🙂
Describe the bug
When I use
test.fails
I get the typescript errorProperty 'fails' does not exist on type 'It'
. I can fix this by importing the vitesttest
, however wondering if there is a way I can have this apply without my needing to import it.I think this is happening due to typescript linting picking up the jest version of
It
.Reproduction
https://stackblitz.com/edit/vitest-dev-vitest-larkt5?file=test/basic.test.ts
System Info
Used Package Manager
yarn
Validations
The text was updated successfully, but these errors were encountered: