Skip to content

Commit c6581c2

Browse files
committed
fix timestamps
1 parent a5766c2 commit c6581c2

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

typescript-sdk/apps/dojo/e2e/clean-reporter.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
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+
: '';
35
}
46

57
function logStamp(...args) {
@@ -23,9 +25,9 @@ class CleanReporter {
2325
.trim();
2426

2527
if (result.status === "passed") {
26-
logStamp(`${getTimestamp()}${cleanSuite}: ${testName}`);
28+
logStamp(`✅ ${cleanSuite}: ${testName}`);
2729
} else if (result.status === "failed") {
28-
logStamp(`${getTimestamp()}${cleanSuite}: ${testName}`);
30+
logStamp(`❌ ${cleanSuite}: ${testName}`);
2931

3032
// Extract the most relevant error info
3133
const error = result.error || result.errors?.[0];

0 commit comments

Comments
 (0)