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.
1 parent f291fb5 commit d4638efCopy full SHA for d4638ef
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 = 'UNKNOWN REGION'
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