-
Notifications
You must be signed in to change notification settings - Fork 228
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
Add rule disallowing importing jest
#90
Labels
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See jestjs/jest#4613, this is apparently a footgun.
We might take it one step further an yell at all assignments to a
jest
object as it might mess up static analysis, thus negating hoisting ofjest.mock
?But at least a rule for not importing
jest
(as it doesn't export anything) makes sense.The text was updated successfully, but these errors were encountered: