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 May 12, 2024
1 parent b0c867c commit f8eea81
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 f8eea81

Please sign in to comment.