File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
typescript-sdk/apps/dojo/e2e Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 1
1
function getTimestamp ( ) {
2
- ( process . env . CI || process . env . VERBOSE ) ? new Date ( ) . toISOString ( ) : '' ;
2
+ return ( process . env . CI || process . env . VERBOSE )
3
+ ? new Date ( ) . toLocaleTimeString ( 'en-US' , { hour12 : false } )
4
+ : '' ;
3
5
}
4
6
5
7
function logStamp ( ...args ) {
@@ -23,9 +25,9 @@ class CleanReporter {
23
25
. trim ( ) ;
24
26
25
27
if ( result . status === "passed" ) {
26
- logStamp ( `${ getTimestamp ( ) } ✅ ${ cleanSuite } : ${ testName } ` ) ;
28
+ logStamp ( `✅ ${ cleanSuite } : ${ testName } ` ) ;
27
29
} else if ( result . status === "failed" ) {
28
- logStamp ( `${ getTimestamp ( ) } ❌ ${ cleanSuite } : ${ testName } ` ) ;
30
+ logStamp ( `❌ ${ cleanSuite } : ${ testName } ` ) ;
29
31
30
32
// Extract the most relevant error info
31
33
const error = result . error || result . errors ?. [ 0 ] ;
You can’t perform that action at this time.
0 commit comments