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
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';
The text was updated successfully, but these errors were encountered:
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';
The text was updated successfully, but these errors were encountered: