Skip to content

Instantly share code, notes, and snippets.

@ncuillery
Last active September 4, 2017 22:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ncuillery/9c75d84672042ce8cb1fc035e21d271a to your computer and use it in GitHub Desktop.
Save ncuillery/9c75d84672042ce8cb1fc035e21d271a to your computer and use it in GitHub Desktop.
Medium buddybuild/ESLint
// 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