Skip to content

Commit

Permalink
chore(tests): account for when npm is a prerelease
Browse files Browse the repository at this point in the history
A few of our tests necessarily use npm's own local version in its package.json, and those tests need to be fixed for the new breaking change that requires an explicit dist tag.
  • Loading branch information
wraithgar committed Nov 26, 2024
1 parent 2c1b369 commit d9a1d76
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion smoke-tests/test/npm-replace-global.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ t.test('publish and replace global self', async t => {
}
return false
}).reply(201, {})
await npmLocal('publish', { proxy: true, force: true })
await npmLocal('publish', '--tag=smoke-test', { proxy: true, force: true })

t.comment(JSON.stringify(publishedPackument, null, 2))

Expand Down
1 change: 1 addition & 0 deletions test/lib/commands/publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -962,6 +962,7 @@ t.test('manifest', async t => {
const { npm } = await loadMockNpm(t, {
config: {
...auth,
tag: 'latest',
'foreground-scripts': false,
},
chdir: () => root,
Expand Down

0 comments on commit d9a1d76

Please sign in to comment.