chore: jest reporter log failed tests count (#8810)

for example 3 tests passed but 1 failed, shows:
> 1 FAILED

instead of

> 4 FAILED

example of the previous behaviour

![image](https://github.com/user-attachments/assets/78c4bc76-caa4-4bf8-943f-2b6b690ce763)

![image](https://github.com/user-attachments/assets/7f261ac3-17dd-474d-87a3-47ad6cbacd68)
This commit is contained in:
Sasha
2024-10-22 23:22:20 +03:00
committed by GitHub
parent 52b1d332db
commit 9f66114577

View File

@@ -51,7 +51,7 @@ class JestCiSpecReporter {
console.log(
`Executed ${numNotSkippedTests} of ${numTotalTests} (skipped ${numPendingTests}) ${testResultText} (${runDuration})`,
)
console.log(`TOTAL: ${numNotSkippedTests} ${testResultText}`)
console.log(`TOTAL: ${numFailedTests || numNotSkippedTests} ${testResultText}`)
}
onTestResult(test, { testResults }) {
testResults.forEach((result) => {