We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Originally posted by @SimenB in #155 (comment)
@macklinu I wonder if https://github.com/jest-community/eslint-plugin-jest/blob/master/docs/rules/no-jasmine-globals.md might need the same treatment that pending got in this PR.
pending
This issue is a follow-up to check that the no-jasmine-globals rule doesn't have the same issues reported in #149.
no-jasmine-globals
The text was updated successfully, but these errors were encountered:
I think I'm running into basically this problem. With a parameter named fail:
fail
function foo(success, fail) { fail(); }
I get "Illegal usage of fail, prefer throwing an error, or the done.fail callback`"
done.fail
Sorry, something went wrong.
Yeah, definitely! Wanna send a PR? You can see #155 for how to implement it 🙂
fix(no-jasmine-globals): Fix false positives for pending/fail/spyOn
a3dd6c2
Prior to this, similarly named local variables & parameters would trigger the no-jasmine-globals warning Fixes jest-community#156
fix(no-jasmine-globals): fix false positives for pending/fail/spyOn
7f7b5ed
edbd1a2
🎉 This issue has been resolved in version 22.0.1 🎉
The release is available on:
Your semantic-release bot 📦🚀
No branches or pull requests
Originally posted by @SimenB in #155 (comment)
This issue is a follow-up to check that the
no-jasmine-globals
rule doesn't have the same issues reported in #149.The text was updated successfully, but these errors were encountered: