mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-05-20 20:48:26 -05:00
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:
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 || {})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user