Skip to content

Commit 8aeeea2

Browse files
zrh122posva
authored andcommitted
chore(test): improve e2e test runner warning (#2806)
1 parent 6acf347 commit 8aeeea2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/e2e/runner.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ const NW_CONFIG = isLocal
3939
// add a configuration by default if not provided
4040
// add a configuration by default if not provided
4141
if (args.indexOf('-c') < 0) {
42-
args.push('-c', NW_CONFIG)
4342
// check if multiple envs are provided. The way Nightwatch works
4443
// requires to explicitely provide the conf
4544
const envs = args[args.indexOf('-e') + 1]
@@ -51,6 +50,7 @@ if (args.indexOf('-c') < 0) {
5150
)
5251
process.exit(1)
5352
}
53+
args.push('-c', NW_CONFIG)
5454
} else if (isLocal) {
5555
const conf = args[args.indexOf('-c') + 1]
5656
if (resolve('.', conf) !== NW_CONFIG) {

0 commit comments

Comments
 (0)