File tree Expand file tree Collapse file tree 2 files changed +16
-5
lines changed
Expand file tree Collapse file tree 2 files changed +16
-5
lines changed Original file line number Diff line number Diff line change @@ -13,15 +13,21 @@ export default class RunProject {
1313 private uploader : Uploader | undefined = undefined ;
1414
1515 constructor ( argv : Arguments ) {
16- this . start ( ) ;
16+ try {
17+ this . start ( ) ;
18+ } catch ( e ) {
19+ console . log ( 'error' , e )
20+ log . error ( e )
21+ }
1722 }
1823
1924 public async start ( ) : Promise < void > {
2025 const config = await Config . getConfig ( ) ;
21- const configValidationError = Config . validate ( config ) ;
22- if ( configValidationError ) {
26+ const configValidationErrors = Config . validate ( config ) ;
27+
28+ if ( configValidationErrors . length > 0 ) {
2329 throw new Error (
24- `Configuration error : ${ configValidationError . join ( '\n' ) } ` ,
30+ `Configuration errors : ${ configValidationErrors . join ( '\n' ) } ` ,
2531 ) ;
2632 }
2733
Original file line number Diff line number Diff line change @@ -14,14 +14,19 @@ export default class Uploader {
1414 return new Promise ( ( resolve , reject ) => {
1515 const requestOptions = {
1616 method : 'POST' ,
17- uri : ' https://api.testingbot.com/v1/storage' ,
17+ uri : ` https://api.testingbot.com/v1/cypress` ,
1818 auth : {
1919 user : this . config . auth . key ,
2020 pass : this . config . auth . secret ,
2121 sendImmediately : true ,
2222 } ,
2323 formData : {
2424 file : fs . createReadStream ( zipFile ) ,
25+ capabilities : JSON . stringify ( [ {
26+ platform : 'MOJAVE' ,
27+ browserName : 'chrome' ,
28+ version : '82'
29+ } ] )
2530 } ,
2631 } ;
2732
You can’t perform that action at this time.
0 commit comments