From 690c9fcbb4f7eaf7924ba011b3dd5cc8ef22e4da Mon Sep 17 00:00:00 2001 From: Gar Date: Wed, 5 Jul 2023 10:52:21 -0700 Subject: [PATCH] chore: fix publish test in a git worktree (#6627) The git detection doesn't work in a git worktree --- test/lib/commands/publish.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/lib/commands/publish.js b/test/lib/commands/publish.js index 820760bb5704d..c10b380ca95e8 100644 --- a/test/lib/commands/publish.js +++ b/test/lib/commands/publish.js @@ -756,7 +756,6 @@ t.test('manifest', async t => { 'scripts', 'tap', 'readme', - 'gitHead', 'engines', 'workspaces', ] @@ -765,6 +764,7 @@ t.test('manifest', async t => { t.ok(manifest[k], k) delete manifest[k] } + delete manifest.gitHead manifest.man.sort()