jcgertig/eslint-junit

View on GitHub
utils/buildJsonResults.js

Summary

Maintainability
A
1 hr
Test Coverage

Function buildJsonResults has 46 lines of code (exceeds 25 allowed). Consider refactoring.
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)
Severity: Minor
Found in utils/buildJsonResults.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status