-
-
Save a0viedo/4a7976df30998b1620b4de3c552e9e89 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getFailedTests(suite) { | |
return suite.tests.filter(test => test.state === 'failed').length; | |
} | |
const testsList = this.test.parent.suites.map(suite => getFailedTests(suite)); | |
const numberOfFailedTests = testsList.reduce((a,b) => a+b, 0); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment