@@ -27,7 +27,7 @@ function sync_args_from_cmd(args) {
2727 process . env . LT_USERNAME
2828 ) ;
2929 lt_config [ "lambdatest_auth" ] [ "username" ] = process . env . LT_USERNAME ;
30- }
30+ }
3131 } else if (
3232 process . env . LT_USERNAME &&
3333 ( ! ( "lambdatest_auth" in lt_config ) ||
@@ -41,9 +41,9 @@ function sync_args_from_cmd(args) {
4141 lt_config [ "lambdatest_auth" ] = { } ;
4242 }
4343 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" ] != "" ) {
4545 lt_config [ "lambdatest_auth" ] [ "username" ] = args [ "username" ] ;
46- }
46+ }
4747
4848 if (
4949 "lambdatest_auth" in lt_config &&
@@ -65,7 +65,7 @@ function sync_args_from_cmd(args) {
6565 }
6666 console . log ( "Setting access key from environment" ) ;
6767 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" ] != "" ) {
6969 lt_config [ "lambdatest_auth" ] [ "access_key" ] = args [ "access_key" ] ;
7070 }
7171
@@ -375,10 +375,10 @@ function sync_args_from_cmd(args) {
375375 if ( "exclude_specs" in lt_config [ "run_settings" ] ) {
376376 lt_config [ "run_settings" ] [ "exclude_specs" ] =
377377 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+ ) ;
382382 } else {
383383 lt_config [ "run_settings" ] [ "exclude_specs" ] == [ ] ;
384384 }
@@ -397,6 +397,10 @@ function sync_args_from_cmd(args) {
397397 lt_config . run_settings . npmlpd = false ;
398398 }
399399 }
400+ if ( "res" in args ) {
401+ console . log ( "resolution set to " , args . res ) ;
402+ lt_config . run_settings . resolution = args . res ;
403+ }
400404 //get specs from current directory if specs are not passed in config or cli
401405 if (
402406 ( lt_config [ "run_settings" ] [ "specs" ] == undefined ||
0 commit comments