We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a42ba35 commit 74f2657Copy full SHA for 74f2657
spec/services/output/report.spec.ts
@@ -45,8 +45,8 @@ describe("UnexpectedError", () => {
45
const error = new UnexpectedError(cause);
46
const rendered = error
47
.sprint()
48
- // replace node_module stack lines with "at ..."
49
- .replace(/at .*node_modules.*$/gm, "at ...")
+ // replace all stack lines that don't start with "at spec" with "at ..."
+ .replace(/at (?!spec).*$/gm, "at ...")
50
// replace sequential "at ..." lines into a single line
51
.replace(/at \.\.\.(\n\s*at \.\.\.)+/g, "at ...");
52
0 commit comments