Skip to content

Commit

Permalink
chore: make cucumber evaluate local common files
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohammer5 committed Apr 18, 2024
1 parent 1963ceb commit c0b9509
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .cypress-cucumber-preprocessorrc.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
{
"nonGlobalStepDefinitions": true,
"e2e": {
"stepDefinitions": "[filepath]/*.{js,mjs,ts,tsx}"
"stepDefinitions": [
"[filepath]/*.{js,mjs,ts,tsx}",
"[filepath]/../common/index.{js,mjs,ts,tsx}"
]
}
}
1 change: 0 additions & 1 deletion components/alert/src/alert-bar/features/api/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
require('../common/index.js')
import { Given, When, Then } from '@badeball/cypress-cucumber-preprocessor'

Given('an AlertBar with onHidden handler is rendered', () => {
Expand Down
1 change: 0 additions & 1 deletion components/tooltip/src/features/positions/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
require('../common/index.js')
import { Given, Then } from '@badeball/cypress-cucumber-preprocessor'

const TOOLTIP_OFFSET = 4
Expand Down

0 comments on commit c0b9509

Please sign in to comment.