Closed hetacz closed 1 year ago
@Given and @When both have such signature:
export declare function given(stepPattern: RegExp | string, tagOrOption?: string | StepOptions, timeout?: number): MethodDecorator;
while @then accepts tagOrOptions only as a string
tagOrOptions
export declare function then(stepPattern: RegExp | string, tagOrOption?: string, timeout?: number): MethodDecorator;
Therefore can write
@given('given step', {timeout: 10_000})
but not
@then('then step', {timeout:10_000})
insted one must write
@then('then step', '', 30_000)
That is indeed incorrect. All of them should have the same signature.
Thanks
@Given and @When both have such signature:
while @then accepts
tagOrOptions
only as a stringTherefore can write
but not
insted one must write