From 8975d84ae38de5702180ab5a848878d01ce656cc Mon Sep 17 00:00:00 2001 From: Luke Bennett Date: Tue, 3 Sep 2019 17:38:59 +0100 Subject: [PATCH] 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. --- packages/@vue/cli-plugin-e2e-nightwatch/index.js | 2 ++ 1 file changed, 2 insertions(+) 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 || {})