codemod icon indicating copy to clipboard operation
codemod copied to clipboard

Wrapping in multiple awaits

Open BWPerrine opened this issue 2 years ago • 3 comments

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

BWPerrine avatar Mar 16 '23 18:03 BWPerrine

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!

christian-bromann avatar Mar 17 '23 16:03 christian-bromann

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.

BWPerrine avatar Mar 17 '23 17:03 BWPerrine

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/

moddx avatar Mar 30 '23 13:03 moddx