Skip to content

Commit

Permalink
feat(jest-jasmine2): make detailed errors opt-in there too
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Rath committed Apr 24, 2024
1 parent 5fa7b7d commit d7c0f27
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/jest-jasmine2/src/reporter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,10 @@ export default class Jasmine2Reporter implements Reporter {
? this._addMissingMessageToStack(failed.stack, failed.message)
: failed.message || '';
results.failureMessages.push(message);
results.failureDetails.push(failed);

if (this._config.detailedErrorsInResults) {
results.failureDetails.push(failed);
}
}

return results;
Expand Down

0 comments on commit d7c0f27

Please sign in to comment.