Why Vitest does not typecheck with typescript? #3417
Unanswered
gal-yedidovich
asked this question in
Q&A
Replies: 2 comments
-
|
It is currently possible for Until those issues are addressed, here's how to typecheck your tests with vitest.
|
Beta Was this translation helpful? Give feedback.
0 replies
-
|
This is super confusing |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
with
vitestthe following test passes without errors:I would expect it to behave like
jestand fail, with the error likeType 'string' is not assignable to type 'number'.Is there a configuration to enable compiler check on the syntax & types? I would like to prevent mistakes from passing unintentionally
Beta Was this translation helpful? Give feedback.
All reactions