Skip to content

Commit

Permalink
Remove last 3 lines of stack trace
Browse files Browse the repository at this point in the history
These are always jest-light-runner internals
  • Loading branch information
Zikoat committed Aug 17, 2023
1 parent 3585d24 commit 7c26bb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/worker-runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ function failureToString(test) {
return (
test.ancestors.concat(test.title).join(" > ") +
"\n" +
test.errors.map(error => error.toString().replace(/^/gm, " ")).join("\n") +
test.errors.map(error => error.stack.split('\n').slice(0, -3).join('\n').replace(/^/gm, " ")).join("\n") +
"\n"
);
}
Expand Down

0 comments on commit 7c26bb4

Please sign in to comment.