Skip to content
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

Refine babel-plugin-jest-hoist typings #13011

Merged
merged 1 commit into from
Jul 13, 2022

Conversation

JLHwung
Copy link
Contributor

@JLHwung JLHwung commented Jul 12, 2022

Super will not be included in Expression in Babel 8

Summary

Fix potential Babel 8 typing errors: https://github.com/babel/babel/runs/7308856226?check_suite_focus=true#step:10:507

In Babel 8 we will remove Super from Expression: So a MemberExpression's object will be Expression | Super and isJestObject should handle Super as well. It already supports Super but will need typing updates. I updated typings so that it should work with both Babel 7 and Babel 8.

This PR should unblock babel/babel#14750

Test plan

Run yarn lint

Super will not be included in Expression in Babel 8
Copy link
Member

@SimenB SimenB left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

@SimenB SimenB merged commit ba443a5 into jestjs:main Jul 13, 2022
@SimenB
Copy link
Member

SimenB commented Jul 13, 2022

This PR should unblock babel/babel#14750

Do I need to release it?

@liuxingbaoyu
Copy link
Contributor

Thank you for your quick processing! No, our E2E tests are run directly from the github repo.

@SimenB
Copy link
Member

SimenB commented Jul 13, 2022

Good stuff 👍

@github-actions
Copy link

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.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 13, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants