-
Notifications
You must be signed in to change notification settings - Fork 110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature] output without stack trace. #136
Comments
I'm not sure I understand what you're reporting here. Please describe the issue and then provide a repository that reproduces the problem and I'll have a look. |
I think I have the same problem :-) So, what I need is:
What I get is:
It comes from jest-junit/utils/buildJsonResults.js Line 189 in 3eb8b02
(adding tc.failureMessages instead of tc.failureDetails[].message without the tc.failureDetails[].stack appended) Sorry, I don't know the code base, but it seems to come from jest (actually, is it jest-jasmine reporter.js?) and it seems that it includes the stack trace despite the I would gladly come back with a pull request, but please advise how to approach it? |
That's a good point. I'm not sure how that feature of jest works.. but if jest-junit gets the output for the failure message we're going to show it. I suspect this is an issue or a misunderstanding with how Jest handles that CLI flag. I'd be happy if you investigate it further. I suspect the issue is on the jest side not on the jest-junit side. |
I don't think there is any option not to include stack trace in output file.
F.E. doesn't include following stack trace:
at Object.<anonymous> (/Users/someone/src/tests/index.test.js:39:23)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
The text was updated successfully, but these errors were encountered: