diff --git a/test.js b/test.js index 88126d430..adbf6b8e1 100644 --- a/test.js +++ b/test.js @@ -885,6 +885,16 @@ describe('standard-version', function () { }) describe('skip', () => { + it('can skip changelog generation when a changelog file is not present', function () { + writePackageJson('1.0.0') + + commit('feat: first commit') + return execCliAsync('--skip.changelog true') + .then(function () { + getPackageVersion().should.equal('1.1.0') + }) + }) + it('allows bump and changelog generation to be skipped', function () { let changelogContent = 'legacy header format\n' writePackageJson('1.0.0')