New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does not report TypeScript compilation errors #4295
Comments
Can you provide fully runnable reproduction? There is even no typecheck command in the provided stackblitz project. |
Same here @sheremet-va |
I am referring to the
|
Running type tests is a separate command. Please, refer to documentation https://vitest.dev/guide/testing-types.html When transforming files, Vitest uses Vite which doesn't perform any type checking. |
I see. Thanks for the explanation. I’ll close this issue. |
Describe the bug
A
.ts
test file which contains a TypeScript type error does not report any errors.Reproduction
See this StackBlitz. Note line 5 of
basic.test.ts
, which contains a type error:The tests run fine. I would have expected vitest to report some sort of compilation error.
System Info
As in StackBlitz.
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: