-
Notifications
You must be signed in to change notification settings - Fork 237
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Prevent async describe
#18
Labels
Comments
I think this makes sense. We should also check for a (Anecdotally the first eslint rule I ever wrote: https://github.com/tlvince/eslint-plugin-jasmine/blob/master/lib/rules/no-suite-callback-args.js) |
Also of course check for a return value within |
I'm interested in contributing this feature - will open a PR for discussion on a WIP implementation. |
macklinu
added a commit
to macklinu/eslint-plugin-jest
that referenced
this issue
Feb 8, 2018
macklinu
added a commit
to macklinu/eslint-plugin-jest
that referenced
this issue
Feb 9, 2018
SimenB
pushed a commit
that referenced
this issue
Feb 9, 2018
This was referenced Feb 9, 2018
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Thanks for this great plugin!
A mistake I've seen some people make is using an async function for
describe
, which then makes jest fail silently for a case like the following:It would be nice to have a rule that prevents this. Same would go for returning a promise (or any other value) inside
describe
.What do you guys think?
The text was updated successfully, but these errors were encountered: