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 17, 2024
1 parent e2f92b1 commit d7ab1b1
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 d7ab1b1

Please sign in to comment.