From 8f73741c97c84e9eea2e67aa96bf31d33ff8ce8e Mon Sep 17 00:00:00 2001 From: Luke Karrys Date: Thu, 2 May 2024 09:37:46 -0700 Subject: [PATCH] chore: remove doctor snapshot stack traces --- tap-snapshots/test/lib/commands/doctor.js.test.cjs | 5 ----- test/lib/commands/doctor.js | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/tap-snapshots/test/lib/commands/doctor.js.test.cjs b/tap-snapshots/test/lib/commands/doctor.js.test.cjs index 0481c6d86823e..dbcad22ac0a51 100644 --- a/tap-snapshots/test/lib/commands/doctor.js.test.cjs +++ b/tap-snapshots/test/lib/commands/doctor.js.test.cjs @@ -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} ), ], } diff --git a/test/lib/commands/doctor.js b/test/lib/commands/doctor.js index bf4ea46a918a1..7dd53e10457d0 100644 --- a/test/lib/commands/doctor.js +++ b/test/lib/commands/doctor.js @@ -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 {