Skip to content

Commit

Permalink
chore: remove fn names in stack trace from doctor snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
lukekarrys committed Apr 30, 2024
1 parent a6424de commit c6ef09a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions tap-snapshots/test/lib/commands/doctor.js.test.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -731,11 +731,11 @@ Object {
"warn": Array [
String(
doctor getGitPath Error: test error
doctor at which {STACK}
doctor at Doctor.getGitPath {STACK}
doctor at Doctor.exec {STACK}
doctor at processTicksAndRejections {STACK}
doctor at MockNpm.exec {STACK}
doctor at {STACK}
doctor at {STACK}
doctor at {STACK}
doctor at {STACK}
doctor at {STACK}
),
],
}
Expand Down
2 changes: 1 addition & 1 deletion test/lib/commands/doctor.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const cleanCacheSha = (str) =>
str.replace(/content-v2\/sha512\/[^"]+/g, 'content-v2/sha512/{sha}')

t.cleanSnapshot = p => cleanCacheSha(cleanDate(cleanCwd(p)))
.replace(/\s\((\{CWD\}|node:).*\d+:\d+\)$/gm, ' {STACK}')
.replace(/(doctor\s+at\s).*$/gm, '$1{STACK}')

const npmManifest = (version) => {
return {
Expand Down

0 comments on commit c6ef09a

Please sign in to comment.