We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7a5e905 + 203f4a2 commit 6dcb6acCopy full SHA for 6dcb6ac
sanity-report.mjs
@@ -25,8 +25,16 @@ console.log(`Failed Tests: ${failedTests}`)
25
console.log(`Pending Tests: ${pendingTests}`)
26
console.log(`Total Duration: ${durationInMinutes}m ${durationInSeconds.toFixed(2)}s`)
27
28
+const host = process.env.HOST || ''
29
+let region = 'NA'
30
+
31
+const match = host.match(/^([^-]+(?:-[^-]+)*)-api/)
32
+if (match && match[1]) {
33
+ region = match[1].toUpperCase()
34
+}
35
36
const slackMessage = `
-*JavaScript CMA Report*
37
+*JavaScript CMA Report - ${region}*
38
• Total Suites: *${totalSuites}*
39
• Total Tests: *${totalTests}*
40
• Passed Tests: *${passedTests}*
0 commit comments