Skip to content

Commit

Permalink
chore: remove doctor snapshot stack traces
Browse files Browse the repository at this point in the history
  • Loading branch information
lukekarrys committed May 2, 2024
1 parent 9e4f02c commit 9c5075c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 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,6 @@ Object {
"warn": Array [
String(
doctor getGitPath Error: test error
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(/(doctor\s+at\s).*$/gm, '$1{STACK}')
.replace(/^\s+(doctor\s+at\s).*$\n/gm, '')

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

0 comments on commit 9c5075c

Please sign in to comment.