File tree Expand file tree Collapse file tree 2 files changed +16
-5
lines changed
libs/json-rpc/nestjs-json-rpc-sdk Expand file tree Collapse file tree 2 files changed +16
-5
lines changed Original file line number Diff line number Diff line change 96
96
"options" : {
97
97
"packageRoot" : " dist/libs/json-rpc/nestjs-json-rpc-sdk"
98
98
}
99
- }
99
+ },
100
+ "test" : {
101
+ "executor" : " @nx/jest:jest" ,
102
+ "outputs" : [" {workspaceRoot}/coverage/{projectRoot}" ],
103
+ "options" : {
104
+ "jestConfig" : " libs/json-rpc/nestjs-json-rpc-sdk/jest.config.ts" ,
105
+ "codeCoverage" : true ,
106
+ "coverageReporters" : [" json-summary" ]
107
+ }
108
+ },
100
109
},
101
110
"tags" : []
102
111
}
Original file line number Diff line number Diff line change @@ -33,16 +33,18 @@ const headers = new Headers([
33
33
34
34
35
35
( async function ( ) {
36
- const status = await fetch ( gistUrl , {
36
+ const [ status , bodyResult ] = await fetch ( gistUrl , {
37
37
method : "PATCH" ,
38
38
headers,
39
39
body,
40
- } ) . then ( r => r . status )
40
+ } ) . then ( r => Promise . all ( [
41
+ r . status , r . json ( )
42
+ ] ) )
41
43
if ( status === 200 ) {
42
- console . log ( 'Badge has been updated' )
44
+ console . log ( 'Badge has been updated: ' + ` ${ percentage } %` )
43
45
} else {
44
46
console . log ( gistUrl . toString ( ) ) ;
45
- console . log ( JSON . stringify ( [ ... headers . entries ( ) ] ) )
47
+ console . log ( JSON . stringify ( bodyResult ) ) ;
46
48
console . warn ( 'Badge has not been updated' )
47
49
}
48
50
} ) ( ) ;
You can’t perform that action at this time.
0 commit comments