Commit 842a760 1 parent be66504 commit 842a760 Copy full SHA for 842a760
File tree 1 file changed +1
-3
lines changed
1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -37,8 +37,7 @@ const NW_CONFIG = isLocal
37
37
? resolve ( __dirname , './nightwatch.browserstack.js' )
38
38
: resolve ( __dirname , './nightwatch.config.js' )
39
39
40
- // add a configuration by default if not provided
41
- // add a configuration by default if not provided
40
+ // check -c option is passed when usig multiple environments
42
41
if ( args . indexOf ( '-c' ) < 0 ) {
43
42
// check if multiple envs are provided. The way Nightwatch works
44
43
// requires to explicitely provide the conf
@@ -51,7 +50,6 @@ if (args.indexOf('-c') < 0) {
51
50
)
52
51
process . exit ( 1 )
53
52
}
54
- args . push ( '-c' , NW_CONFIG )
55
53
} else if ( isLocal ) {
56
54
const conf = args [ args . indexOf ( '-c' ) + 1 ]
57
55
if ( resolve ( '.' , conf ) !== NW_CONFIG ) {
You can’t perform that action at this time.
0 commit comments