Last active
September 4, 2017 22:35
-
-
Save ncuillery/9c75d84672042ce8cb1fc035e21d271a to your computer and use it in GitHub Desktop.
Medium buddybuild/ESLint
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
// Global metadata | |
output.numFailedTestSuites = errors ? 1 : 0; | |
output.numFailedTests = errors; | |
output.numPassedTestSuites = errors ? 0 : 1; | |
output.numPassedTests = eslintReport.length - errors; | |
output.numTotalTestSuites = 1; | |
output.numTotalTests = eslintReport.length; | |
output.success = !errors; | |
// Test suite metadata | |
output.testResults[0].status = errors ? 'failed' : 'passed'; | |
output.testResults[0].message = ''; | |
output.testResults[0].name = ''; | |
output.testResults[0].summary = ''; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment