Skip to content

Commit 8ded848

Browse files
committed
chore: remove doctor snapshot stack traces
1 parent 63ef498 commit 8ded848

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

tap-snapshots/test/lib/commands/doctor.js.test.cjs

-5
Original file line numberDiff line numberDiff line change
@@ -731,11 +731,6 @@ Object {
731731
"warn": Array [
732732
String(
733733
doctor getGitPath Error: test error
734-
doctor at {STACK}
735-
doctor at {STACK}
736-
doctor at {STACK}
737-
doctor at {STACK}
738-
doctor at {STACK}
739734
),
740735
],
741736
}

test/lib/commands/doctor.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const cleanCacheSha = (str) =>
1111
str.replace(/content-v2\/sha512\/[^"]+/g, 'content-v2/sha512/{sha}')
1212

1313
t.cleanSnapshot = p => cleanCacheSha(cleanDate(cleanCwd(p)))
14-
.replace(/(doctor\s+at\s).*$/gm, '$1{STACK}')
14+
.replace(/^\s+(doctor\s+at\s).*$\n/gm, '')
1515

1616
const npmManifest = (version) => {
1717
return {

0 commit comments

Comments
 (0)