-
Notifications
You must be signed in to change notification settings - Fork 50
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
expect-expect
fails even if expectTypeOf
is present
#382
Comments
I should note that I'm happy to make a PR for this if you want the help! |
@mrmckeb a pr is always welcome :D |
So thinking about this, and these checks don't actually run unless Vitest is run with Perhaps a rule is also required that warns you if you're using these assertions, but haven't enabled that option in your config? |
I should have included the edge case for types when designing the rule that is my bad. What you'll have todo for this pr is to check if |
Understood, thanks! I have a bit of rule-writing experience so that should be fine 🤞 My concern was more, should this be the default behaviour? If you don't have I can consider that in the work I do though, thanks! :) |
Definitely, look into a way of knowing whether |
Done! Thanks again. |
This may be intentional, but we have some tests that only check types and these are being flagged for failing to include
expect
statements.The text was updated successfully, but these errors were encountered: