-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
adding spyOn to the list of globals for the eslint env jest/globals s… #3196
Conversation
Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla - and if you have received this in error or have any questions, please drop us a line at cla@fb.com. Thanks! If you are contributing on behalf of someone else (eg your employer): the individual CLA is not sufficient - use https://developers.facebook.com/opensource/cla?type=company instead. Contact cla@fb.com if you have any questions. |
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks! |
@thymikee did we have plans to remove |
Codecov Report
@@ Coverage Diff @@
## master #3196 +/- ##
=======================================
Coverage 62.07% 62.07%
=======================================
Files 174 174
Lines 6547 6547
Branches 4 4
=======================================
Hits 4064 4064
Misses 2482 2482
Partials 1 1
Continue to review full report at Codecov.
|
We will remove this global. We don't officially support it. |
@cpojer @DmitriiAbramov are there any plans to document which globals, if there are any others, that the eslint-plugin-jest will not support and reasons as to why they are/aren't supported? Is this due to a change in jasmine or...? |
We are diverging from Jasmine to build a better test runner. The current set of globals that is in our documentation is the only official interface. Anything else may change at any time. |
…lobals s… (jestjs#3196)" This reverts commit b37cc7c.
jestjs#3196) * adding spyOn to the list of globals for the eslint env jest/globals setting * reorder spyOn environmental global based on ascending order rule
…lobals s… (jestjs#3196)" (jestjs#3207) This reverts commit b37cc7c.
jestjs#3196) * adding spyOn to the list of globals for the eslint env jest/globals setting * reorder spyOn environmental global based on ascending order rule
…lobals s… (jestjs#3196)" (jestjs#3207) This reverts commit b37cc7c.
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Summary
While using the eslint env jest/globals to whitelist the environment variables used within the spec files, the spyOn global was not being ignored as a global environmental variable.
Test plan
No functional change, this only alters the eslint no-undef rule