Skip to content

Commit 8975d84

Browse files
lbennett-stackihaoqunjiang
authored andcommitted
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.
1 parent 267aa67 commit 8975d84

File tree

1 file changed

+2
-0
lines changed
  • packages/@vue/cli-plugin-e2e-nightwatch

1 file changed

+2
-0
lines changed

packages/@vue/cli-plugin-e2e-nightwatch/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ module.exports = (api, options) => {
3131
userOptions = require(userOptionsPath)
3232
} else if (fs.existsSync(userOptionsPath = api.resolve('nightwatch.json'))) {
3333
userOptions = require(userOptionsPath)
34+
} else if (fs.existsSync(userOptionsPath = api.resolve('nightwatch.conf.js'))) {
35+
userOptions = require(userOptionsPath)
3436
}
3537
process.env.VUE_NIGHTWATCH_USER_OPTIONS = JSON.stringify(userOptions || {})
3638

0 commit comments

Comments
 (0)