-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
type check not work #6478
Comments
Your {
"files": [],
"references": [
{ "path": "./tsconfig.app.json" },
{ "path": "./tsconfig.node.json" }
]
} By default Vitest uses the So to make your repro work, let's define one of those custom export default defineConfig({
plugins: [react()],
test: {
typecheck: {
enabled: true,
+ tsconfig: 'tsconfig.app.json'
},
},
}) |
Thank you very much for your help❤️! |
This comment was marked as duplicate.
This comment was marked as duplicate.
Oh right, there's |
See #3752. The |
Thanks @mrazauskas, let's track this on #3752. |
Describe the bug
I followed the official examples to use Vitest and Vite for type checking, but even when there are type errors, no errors are reported, and the test cases still pass.
there are type errors, but still pass.
Reproduction
stackBlitz: https://stackblitz.com/~/github.com/rikisamurai/vitest-issue
or
and follow https://github.com/vitest-dev/vitest/blob/main/examples/typecheck/test/type.test-d.ts
System Info
Used Package Manager
pnpm
Validations
The text was updated successfully, but these errors were encountered: