-
Notifications
You must be signed in to change notification settings - Fork 25k
[Codegen] Extract visit function to parsers/utils #34946
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
[Codegen] Extract visit function to parsers/utils #34946
Conversation
| return [errors, guard]; | ||
| } | ||
|
|
||
| // TODO(T108222691): Use flow-types for @babel/parser |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a different TODO comment in Flow and Typescript folders, I pasted one of them
| }); | ||
| }); | ||
|
|
||
| describe('visit', () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried to test each branch, jest gives me 100% coverage but please tell me if you see a way to improve these tests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They looks good to me!
Base commit: 5d8a712 |
Base commit: 5d8a712 |
cipolleschi
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you so much for the effort! It is amazing that we are also testing all this code! 🤩
| }); | ||
| }); | ||
|
|
||
| describe('visit', () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They looks good to me!
|
@cipolleschi has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
f57219c to
95ec098
Compare
|
I rebased the branch because of conflicts |
|
@cipolleschi Do you need me to update something on this PR or is everything ok ? |
|
Thank you! No, nothing else from your side. I'll try to land this between today and tomorrow! 👍 |
|
@cipolleschi has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
|
This pull request was successfully merged by @AntoineDoubovetzky in 3c8d678. When will my fix make it into a release? | Upcoming Releases |
Summary: This PR is a task from facebook#34872: > Extract the visit function in a shared function in the parsers/utils.js folder. Use the new function in the Flow and TypeScript parsers. ## Changelog <!-- Help reviewers and the release process by writing your own changelog entry. For an example, see: https://reactnative.dev/contributing/changelogs-in-pull-requests --> [Internal] [Changed] - Extract the visit function in a shared function in the parsers/utils.js Pull Request resolved: facebook#34946 Test Plan: I tested using jest, flow and eslint commands. Reviewed By: NickGerleman Differential Revision: D40276462 Pulled By: cipolleschi fbshipit-source-id: 299cc2a3aa65a9757b217192a13838d037c497a1
Summary
This PR is a task from #34872:
Changelog
[Internal] [Changed] - Extract the visit function in a shared function in the parsers/utils.js
Test Plan
I tested using jest, flow and eslint commands.