Skip to content

Commit 385c262

Browse files
karlajustenblaisepmattwynneDane Parchment Jraurelien-reeves
authored
Replace 1 instance of regex with cucumber expression (#1872)
* Replace regex with cucumber expression. We decided to split the step definition into two. So that the patterns used be simpler. Co-authored-by: Blaise Pabon <[email protected]> Co-authored-by: Matt Wynne <[email protected]> Co-authored-by: Dane Parchment Jr <[email protected]> * Fix linting issues Co-authored-by: Blaise Pabon <[email protected]> Co-authored-by: Matt Wynne <[email protected]> Co-authored-by: Dane Parchment Jr <[email protected]> Co-authored-by: aurelien-reeves <[email protected]>
1 parent b53d820 commit 385c262

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

features/step_definitions/cli_steps.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,12 @@ When('my env includes {string}', function (this: World, envString: string) {
1515
this.sharedEnv = this.parseEnvString(envString)
1616
})
1717

18+
When('I run cucumber-js', { timeout: 10000 }, async function (this: World) {
19+
return await this.run(this.localExecutablePath, [])
20+
})
21+
1822
When(
19-
/^I run cucumber-js(?: with `(|.+)`)?$/,
23+
'I run cucumber-js with `{}`',
2024
{ timeout: 10000 },
2125
async function (this: World, args: string) {
2226
const renderedArgs = Mustache.render(valueOrDefault(args, ''), this)

0 commit comments

Comments
 (0)