utils/buildJsonResults.js
Function buildJsonResults
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function buildJsonResults (report, appDirectory, options) {
// Generate a single XML file for all jest tests
const jsonResults = {'testsuites': [{'_attr': {'name': options.suiteName}}]};
// Iterate through outer testResults (test suites)