Skip to content

Commit

Permalink
chore: minor simplify format results error (#11432)
Browse files Browse the repository at this point in the history
  • Loading branch information
Connormiha committed May 21, 2021
1 parent 78eb25d commit 2226742
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/jest-message-util/src/index.ts
Expand Up @@ -337,9 +337,9 @@ export const formatResultsErrors = (
): string | null => {
const failedResults: FailedResults = testResults.reduce<FailedResults>(
(errors, result) => {
result.failureMessages
.map(checkForCommonEnvironmentErrors)
.forEach(content => errors.push({content, result}));
result.failureMessages.forEach(item => {
errors.push({content: checkForCommonEnvironmentErrors(item), result});
});
return errors;
},
[],
Expand Down

0 comments on commit 2226742

Please sign in to comment.