File tree Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,13 @@ function log(data) {
77 logs . forEach ( function ( line ) {
88 if ( line . length > 0 ) {
99 try {
10- console . dir ( JSON . parse ( JSON . stringify ( line ) ) ) ;
10+ line = JSON . parse ( JSON . stringify ( line ) ) ;
11+ if ( typeof line === 'string' ) {
12+ console . log ( line ) ;
13+ }
14+ else {
15+ console . dir ( JSON . parse ( JSON . stringify ( line ) ) ) ;
16+ }
1117 }
1218 catch ( e ) {
1319 console . log ( line ) ;
Original file line number Diff line number Diff line change @@ -7,7 +7,12 @@ function log(data: string): void {
77 logs . forEach ( ( line : string ) => {
88 if ( line . length > 0 ) {
99 try {
10- console . dir ( JSON . parse ( JSON . stringify ( line ) ) ) ;
10+ line = JSON . parse ( JSON . stringify ( line ) ) ;
11+ if ( typeof line === 'string' ) {
12+ console . log ( line ) ;
13+ } else {
14+ console . dir ( JSON . parse ( JSON . stringify ( line ) ) ) ;
15+ }
1116 } catch ( e ) {
1217 console . log ( line ) ;
1318 }
@@ -17,7 +22,7 @@ function log(data: string): void {
1722}
1823
1924export default function runner ( testFile : string , config : CR . Config ,
20- handleResult : ( result ) => CR . TestResult ) {
25+ handleResult : ( result ) => CR . TestResult ) : Promise < CR . TestResult > {
2126
2227 // cleanup .json file
2328 let runner = createRunner ( config , testFile ) ;
You can’t perform that action at this time.
0 commit comments