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
Crashes when expect
with no following statement.
#357
Comments
This shouldn't be happening! 😱 I'm going to make a quick patching PR, but this is one of the problems that'll be fixed once we've finished converting to TypeScript (I've rewritten all the guards, for exactly this sort of use-case).
This should be covered by the (I can't actually remember if we consider |
It should be flagged by |
🎉 This issue has been resolved in version 22.14.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
If you have code like
expect()
without anything after, liketoBe
, then it crashes the linter. It shouldn't crash the linter. I imagine Jest would do enough to notify you that something is wrong, or at least the linter should indicate that the following statement is missing.Sample code:
Which results in the following error when linting:
The text was updated successfully, but these errors were encountered: