You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At our project we frequently need invoke asynchronus functions to create objects:
When('{userName} resolves the conversation',asyncfunction(userName){constuser=awaitthis.createUser(name)// Would be nice if our custom transform could do that})
Ideally I'd like to write my transformer like this:
Apart from documenting in the README that the transform function can be asynchronous (return a Promise), no code changes are needed in this library to support this.
Uh oh!
There was an error while loading. Please reload this page.
Summary
At our project we frequently need invoke asynchronus functions to create objects:
Ideally I'd like to write my transformer like this:
This means Cucumber Expressions for JavaScript must also support async transforms (transform functions returning a promise).
The text was updated successfully, but these errors were encountered: