We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent be66504 commit 842a760Copy full SHA for 842a760
test/e2e/runner.js
@@ -37,8 +37,7 @@ const NW_CONFIG = isLocal
37
? resolve(__dirname, './nightwatch.browserstack.js')
38
: resolve(__dirname, './nightwatch.config.js')
39
40
-// add a configuration by default if not provided
41
+// check -c option is passed when usig multiple environments
42
if (args.indexOf('-c') < 0) {
43
// check if multiple envs are provided. The way Nightwatch works
44
// requires to explicitely provide the conf
@@ -51,7 +50,6 @@ if (args.indexOf('-c') < 0) {
51
50
)
52
process.exit(1)
53
}
54
- args.push('-c', NW_CONFIG)
55
} else if (isLocal) {
56
const conf = args[args.indexOf('-c') + 1]
57
if (resolve('.', conf) !== NW_CONFIG) {
0 commit comments