Skip to content

Commit

Permalink
feat: Check for nightwatch.conf.js config (vuejs#4445)
Browse files Browse the repository at this point in the history
Nightwatch checks for `nightwatch.conf.js` instead
of the existing `nightwatch.config.js` user options
file, this adds a branch to check for the file
suggested by upstream as well.
  • Loading branch information
lbennett-stacki authored and haoqunjiang committed Sep 3, 2019
1 parent 267aa67 commit 8975d84
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/@vue/cli-plugin-e2e-nightwatch/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ module.exports = (api, options) => {
userOptions = require(userOptionsPath)
} else if (fs.existsSync(userOptionsPath = api.resolve('nightwatch.json'))) {
userOptions = require(userOptionsPath)
} else if (fs.existsSync(userOptionsPath = api.resolve('nightwatch.conf.js'))) {
userOptions = require(userOptionsPath)
}
process.env.VUE_NIGHTWATCH_USER_OPTIONS = JSON.stringify(userOptions || {})

Expand Down

0 comments on commit 8975d84

Please sign in to comment.