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

Given, When, Then autocomplete #5

Open
mazfish opened this issue Mar 25, 2018 · 0 comments
Open

Given, When, Then autocomplete #5

mazfish opened this issue Mar 25, 2018 · 0 comments

Comments

@mazfish
Copy link

mazfish commented Mar 25, 2018

Hi, and thx for this lib.

You note "Given, When, Then, And and * are all synonyms, and exist only to make your code more readable." but there's issues with IDE gherkin/cucumber autocompletion plugins which use "Given", "When", "Then" keywords in steps definitions.
Ex.: vscode + cucumber autocomplete

To fix it i use a "stucumber wrapper" which defines these 3 ones, wrapping cucumber.defineRule().

You could propose its like (or otherwise):
import { cucumber, Given, When, Then } from 'stucumber';

It could be done in stucumber but in gherkin-jest as well.
import { cucumber, Given, When, Then } from 'gherkin-jest';

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant