-
-
Notifications
You must be signed in to change notification settings - Fork 12
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 initial code for sync to async conversion #53
Conversation
|
For the From:
To:
Any suggestions would be helpful. |
@WillBrock thanks for the work! Have you tried https://astexplorer.net/? It is really great to understand how one piece of code needs to be replaced with the other. Also would you mind extending the test cases so we are sure to not introduce any bugs down the line? |
Fixed a few things and added converting Will add some tests as well. |
…ations, ignore specific objects
I think I've got the majority of things covered. I added tests for it but the tsx parser ones are failing because it doesn't add async to method definitions. I'm not sure why those are failing so something I'll need to read up more on. |
Still some more edge cases I need to do that are coming up. |
@WillBrock great work! Let me know when this is ready to review and I am happy to take a look. |
@WillBrock Great work! is it ready to use or you need some help on that? |
@kailin0512 It's just about ready. I've just got a few things to clean up and I'll try to push the changes tomorrow. |
I think this is basically ready. I'm still going through some of our codebase at work (about 3k files) but most things are working. If anyone wants to try it out feel free and let me know what issues you run into. |
@christian-bromann This is ready. |
Awesome work @WillBrock , let me review it asap. |
@christian-bromann any update on approving this? |
and @WillBrock how can I try this out before it's published? I'm happy to help test it. |
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.
Sorry for the delay in review. This looks fantastic, thanks @WillBrock 👏
Thank you @WillBrock for your work on this! |
Expanding off of this pull request
This looks to do the sync to async conversion on most things.
This should convert:
describe
,before
,it
to asyncAdd to constants arrays for custom items unique to a codebase
In
async/constants.js
AWAIT_CUSTOM_GETTERS
- Add getters here that will need to be awaited. e.g. things like$$
EXCLUDE_METHODS
- Add class methods here that don't need to be async / await