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
I have a cucumber.json file with the snippetInterface setting set to async-await. When I run cucumber the snippets outputed for undefined steps show the use of async function.
When I generate a step from the feature file via the plugin, the step generated uses a synchronous arrow function.
✅ What did you expect to see?
The generated step should use an async function with the function keyword, just as cucumber does in its output.
@despellhtb, issue is reflective of status. Accommodation has been made in the Cucumber Language Server to configure custom snippet templates, though this setting is not yet fully integrated nor available from the extension; and of course would duplicate the aforementioned configuration - though might be a satisfactory mitigation if implemented.
Hope to see this implemented.
Any PRs or suggested code changes would be of great assistance.
👓 What did you see?
I have a
cucumber.json
file with thesnippetInterface
setting set toasync-await
. When I run cucumber the snippets outputed for undefined steps show the use of async function.When I generate a step from the feature file via the plugin, the step generated uses a synchronous arrow function.
✅ What did you expect to see?
The generated step should use an async function with the
function
keyword, just as cucumber does in its output.📦 Which tool/library version are you using?
cucumber-js v8.10.0
🔬 How could we reproduce it?
cucumber.json
file with this content:📚 Any additional context?
This text was originally generated from a template, then edited by hand. You can modify the template here.
The text was updated successfully, but these errors were encountered: