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

Wrapping in multiple awaits #97

Open
BWPerrine opened this issue Mar 16, 2023 · 3 comments
Open

Wrapping in multiple awaits #97

BWPerrine opened this issue Mar 16, 2023 · 3 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@BWPerrine
Copy link

BWPerrine commented Mar 16, 2023

Is there a way to make the async codemod automatically wrap multiple items in parentheses like this?
image

@christian-bromann christian-bromann added bug Something isn't working help wanted Extra attention is needed labels Mar 17, 2023
@christian-bromann
Copy link
Member

Hey,
thanks for filing the issue. This seems indeed like bug. We would appreciate any help on this so please help us out! Have a look at our contributing guidelines and reach out if you have any questions. Cheers!

@BWPerrine
Copy link
Author

BWPerrine commented Mar 17, 2023

Oh cool, I'll check it out. I'm actually trying to get the async codemod to work like in the screenshot. When I run the codemod, it only awaits the whole line. But if that's what it's supposed to be doing, then there must be an edit I need to make to the script.

@moddx
Copy link

moddx commented Mar 30, 2023

I might be confused, but are you aware of the simplification mechanism introduced in wdio v7.9?
https://webdriver.io/blog/2021/07/28/sync-api-deprecation/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants