Skip to content

Commit

Permalink
test(publish-with-publish-please): try fix test on CI with npm versio…
Browse files Browse the repository at this point in the history
…n 6.9.2
  • Loading branch information
hdorgeval committed Jun 29, 2019
1 parent 66c6bea commit 0584c15
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/13-integration-tests.js
Expand Up @@ -1171,14 +1171,15 @@ describe('Integration tests', () => {
return assert(err.message.indexOf(GUARD_ERROR) >= 0);
}));

it('Should allow publishing with special flag', () =>
it.only('Should allow publishing with special flag', () =>
exec('npm publish --with-publish-please')
// NOTE: it will reject anyway because this package version already
// published or test host don't have permissions to do that
.then(() => {
throw new Error('Promise rejection expected');
})
.catch((err) => {
console.log(err.message);
// prettier-ignore
assert(
err.message.indexOf('You do not have permission to publish') > -1 ||
Expand Down

0 comments on commit 0584c15

Please sign in to comment.