helpers.js
function printFailureMessages(results) {
  if (!results.numTotalTests || !results.numFailedTests) {
    return;
  }

  console.log(color('bright fail', `  ${symbols.err} Failed Tests:`));
  console.log('\n');

  results.testResults.forEach(({failureMessage}) => {
    if (failureMessage) {
      console.log(failureMessage);
    }
  });

  process.stdout.write('\n');
}
function printFailureMessages(results) {
  if (!results.numTotalTests || !results.numFailedTests) {
    return;
  }

  console.log(color('bright fail', `  ${symbols.err} Failed Tests:`));
  console.log('\n');

  results.testResults.forEach(({failureMessage}) => {
    if (failureMessage) {
      console.log(failureMessage);
    }
  });

  process.stdout.write('\n');
}
function printFailureMessages ( results ) { if ( ! results . numTotalTests || ! results . numFailedTests ) { return ; } console . log ( color ( 'bright fail' , ` ${ symbols . err } ` ) ) ; console . log ( '\n' ) ; results . testResults . forEach ( ( { failureMessage } ) => { if ( failureMessage ) { console . log ( failureMessage ) ; } } ) ; process . stdout . write ( '\n' ) ; }
Prints failure messsages for the reporters to be displayed
Prints failure messsages for the reporters to be displayed