diff options
author | Gar <gar+gh@danger.computer> | 2021-10-06 20:47:10 +0300 |
---|---|---|
committer | Gar <gar+gh@danger.computer> | 2021-10-07 19:54:26 +0300 |
commit | 8b27e0b3a3a7e2e58bec08349a3e06c03ed0dfea (patch) | |
tree | f15602f1f773e0722c737071a2118d7acc3bc33f /tap-snapshots | |
parent | 8bd85cdae5eead60d5e92d6f1be27e88b480b1cb (diff) |
chore: fix publish tests
When the tests are run but the code is not inside a git repo, the
results are different. This removes the `gitHead` altogether from the
publish results so it works in all environments
PR-URL: https://github.com/npm/cli/pull/3845
Credit: @wraithgar
Close: #3845
Reviewed-by: @fritzy
Diffstat (limited to 'tap-snapshots')
-rw-r--r-- | tap-snapshots/test/lib/publish.js.test.cjs | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/tap-snapshots/test/lib/publish.js.test.cjs b/tap-snapshots/test/lib/publish.js.test.cjs index 13e8f7d4b..7a7502e02 100644 --- a/tap-snapshots/test/lib/publish.js.test.cjs +++ b/tap-snapshots/test/lib/publish.js.test.cjs @@ -15,7 +15,6 @@ exports[`test/lib/publish.js TAP private workspaces colorless > should publish a Array [ Object { "_id": "@npmcli/b@1.0.0", - "gitHead": "{GITHEAD}", "name": "@npmcli/b", "readme": "ERROR: No README data found!", "version": "1.0.0", @@ -33,7 +32,6 @@ exports[`test/lib/publish.js TAP private workspaces with color > should publish Array [ Object { "_id": "@npmcli/b@1.0.0", - "gitHead": "{GITHEAD}", "name": "@npmcli/b", "readme": "ERROR: No README data found!", "version": "1.0.0", @@ -72,7 +70,6 @@ exports[`test/lib/publish.js TAP workspaces all workspaces > should publish all Array [ Object { "_id": "workspace-a@1.2.3-a", - "gitHead": "{GITHEAD}", "name": "workspace-a", "readme": "ERROR: No README data found!", "repository": Object { @@ -86,7 +83,6 @@ Array [ "bugs": Object { "url": "https://github.com/npm/workspace-b/issues", }, - "gitHead": "{GITHEAD}", "homepage": "https://github.com/npm/workspace-b#readme", "name": "workspace-b", "readme": "ERROR: No README data found!", @@ -98,7 +94,6 @@ Array [ }, Object { "_id": "workspace-n@1.2.3-n", - "gitHead": "{GITHEAD}", "name": "workspace-n", "readme": "ERROR: No README data found!", "version": "1.2.3-n", @@ -128,7 +123,6 @@ exports[`test/lib/publish.js TAP workspaces json > should publish all workspaces Array [ Object { "_id": "workspace-a@1.2.3-a", - "gitHead": "{GITHEAD}", "name": "workspace-a", "readme": "ERROR: No README data found!", "repository": Object { @@ -142,7 +136,6 @@ Array [ "bugs": Object { "url": "https://github.com/npm/workspace-b/issues", }, - "gitHead": "{GITHEAD}", "homepage": "https://github.com/npm/workspace-b#readme", "name": "workspace-b", "readme": "ERROR: No README data found!", @@ -154,7 +147,6 @@ Array [ }, Object { "_id": "workspace-n@1.2.3-n", - "gitHead": "{GITHEAD}", "name": "workspace-n", "readme": "ERROR: No README data found!", "version": "1.2.3-n", @@ -172,7 +164,6 @@ exports[`test/lib/publish.js TAP workspaces one workspace > should publish given Array [ Object { "_id": "workspace-a@1.2.3-a", - "gitHead": "{GITHEAD}", "name": "workspace-a", "readme": "ERROR: No README data found!", "repository": Object { |