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 authored 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
Original file line number Diff line number Diff line change
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.