Skip to content

Commit

Permalink
Showing 2 changed files with 16 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/commands/install.js
Original file line number Diff line number Diff line change
@@ -182,6 +182,19 @@ exports.handler = async argv => {
)
const cucTo = path.join(CYPRESS_PLUGINS, 'index.js')
copy(cucFrom, cucTo, force)

const cucConfFrom = path.join(
__dirname,
'..',
'..',
'templates',
'cucumber-config.js'
)
const cucConfTo = path.join(
CONSUMING_ROOT,
'cypress-cucumber-preprocessor.config.js'
)
copy(cucConfFrom, cucConfTo, force)
}

if (support) {
3 changes: 3 additions & 0 deletions templates/cucumber-config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
nonGlobalStepDefinitions: true,
}

0 comments on commit 2ff4f92

Please sign in to comment.