diff --git a/packages/@vue/cli-plugin-e2e-nightwatch/index.js b/packages/@vue/cli-plugin-e2e-nightwatch/index.js index 0f8c2da1e0..bf12bd9cc1 100644 --- a/packages/@vue/cli-plugin-e2e-nightwatch/index.js +++ b/packages/@vue/cli-plugin-e2e-nightwatch/index.js @@ -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 || {})