feat: Check for nightwatch.conf.js config (#4445)

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.
This commit is contained in:
Luke Bennett
2019-09-03 17:38:59 +01:00
committed by Haoqun Jiang
parent 267aa67cf6
commit 8975d84ae3
@@ -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 || {})