@@ -27,7 +27,7 @@ function sync_args_from_cmd(args) {
27
27
process . env . LT_USERNAME
28
28
) ;
29
29
lt_config [ "lambdatest_auth" ] [ "username" ] = process . env . LT_USERNAME ;
30
- }
30
+ }
31
31
} else if (
32
32
process . env . LT_USERNAME &&
33
33
( ! ( "lambdatest_auth" in lt_config ) ||
@@ -41,9 +41,9 @@ function sync_args_from_cmd(args) {
41
41
lt_config [ "lambdatest_auth" ] = { } ;
42
42
}
43
43
lt_config [ "lambdatest_auth" ] [ "username" ] = process . env . LT_USERNAME ;
44
- } else if ( "username" in args && args [ "username" ] != "" ) {
44
+ } else if ( "username" in args && args [ "username" ] != "" ) {
45
45
lt_config [ "lambdatest_auth" ] [ "username" ] = args [ "username" ] ;
46
- }
46
+ }
47
47
48
48
if (
49
49
"lambdatest_auth" in lt_config &&
@@ -65,7 +65,7 @@ function sync_args_from_cmd(args) {
65
65
}
66
66
console . log ( "Setting access key from environment" ) ;
67
67
lt_config [ "lambdatest_auth" ] [ "access_key" ] = process . env . LT_ACCESS_KEY ;
68
- } else if ( "access_key" in args && args [ "access_key" ] != "" ) {
68
+ } else if ( "access_key" in args && args [ "access_key" ] != "" ) {
69
69
lt_config [ "lambdatest_auth" ] [ "access_key" ] = args [ "access_key" ] ;
70
70
}
71
71
@@ -375,10 +375,10 @@ function sync_args_from_cmd(args) {
375
375
if ( "exclude_specs" in lt_config [ "run_settings" ] ) {
376
376
lt_config [ "run_settings" ] [ "exclude_specs" ] =
377
377
lt_config [ "run_settings" ] [ "exclude_specs" ] . split ( "," ) ;
378
- console . log (
379
- "specs to exclude are" ,
380
- lt_config [ "run_settings" ] [ "exclude_specs" ]
381
- ) ;
378
+ console . log (
379
+ "specs to exclude are" ,
380
+ lt_config [ "run_settings" ] [ "exclude_specs" ]
381
+ ) ;
382
382
} else {
383
383
lt_config [ "run_settings" ] [ "exclude_specs" ] == [ ] ;
384
384
}
@@ -397,6 +397,10 @@ function sync_args_from_cmd(args) {
397
397
lt_config . run_settings . npmlpd = false ;
398
398
}
399
399
}
400
+ if ( "res" in args ) {
401
+ console . log ( "resolution set to " , args . res ) ;
402
+ lt_config . run_settings . resolution = args . res ;
403
+ }
400
404
//get specs from current directory if specs are not passed in config or cli
401
405
if (
402
406
( lt_config [ "run_settings" ] [ "specs" ] == undefined ||
0 commit comments