commit-and-tag-version 11.3.0 → 12.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc +10 -2
- package/.github/dependabot.yml +19 -0
- package/.github/workflows/ci.yaml +3 -3
- package/.github/workflows/release-please.yml +3 -3
- package/CHANGELOG.md +12 -0
- package/README.md +3 -1
- package/lib/lifecycles/changelog.js +28 -7
- package/package.json +13 -11
- package/test/config-files.spec.js +1 -1
- package/test/core.spec.js +610 -555
- package/test/git.spec.js +6 -6
- package/test/preset.spec.js +1 -1
- package/test/utils.spec.js +1 -1
- package/renovate.json +0 -9
package/test/git.spec.js
CHANGED
|
@@ -109,7 +109,7 @@ describe('git', function () {
|
|
|
109
109
|
}
|
|
110
110
|
})
|
|
111
111
|
|
|
112
|
-
describe('tagPrefix', ()
|
|
112
|
+
describe('tagPrefix', function () {
|
|
113
113
|
// TODO: Use unmocked git-semver-tags and stage a git environment
|
|
114
114
|
it('will add prefix onto tag based on version from package', async function () {
|
|
115
115
|
writePackageJson('1.2.0')
|
|
@@ -243,8 +243,8 @@ describe('git', function () {
|
|
|
243
243
|
getPackageVersion().should.equal('1.1.0-0')
|
|
244
244
|
})
|
|
245
245
|
|
|
246
|
-
describe('gitTagFallback', ()
|
|
247
|
-
it('defaults to 1.0.0 if no tags in git history', async ()
|
|
246
|
+
describe('gitTagFallback', function () {
|
|
247
|
+
it('defaults to 1.0.0 if no tags in git history', async function () {
|
|
248
248
|
shell.rm('package.json')
|
|
249
249
|
mock({ bump: 'minor' })
|
|
250
250
|
await exec({})
|
|
@@ -252,7 +252,7 @@ describe('git', function () {
|
|
|
252
252
|
output.stdout.should.include('v1.1.0')
|
|
253
253
|
})
|
|
254
254
|
|
|
255
|
-
it('bases version on greatest version tag, if tags are found', async ()
|
|
255
|
+
it('bases version on greatest version tag, if tags are found', async function () {
|
|
256
256
|
shell.rm('package.json')
|
|
257
257
|
mock({ bump: 'minor', tags: ['v3.9.0', 'v5.0.0', 'v3.0.0'] })
|
|
258
258
|
await exec({})
|
|
@@ -261,7 +261,7 @@ describe('git', function () {
|
|
|
261
261
|
})
|
|
262
262
|
})
|
|
263
263
|
|
|
264
|
-
describe('configuration', ()
|
|
264
|
+
describe('configuration', function () {
|
|
265
265
|
it('.versionrc : releaseCommitMessageFormat', async function () {
|
|
266
266
|
fs.writeFileSync(
|
|
267
267
|
'.versionrc',
|
|
@@ -358,7 +358,7 @@ describe('git', function () {
|
|
|
358
358
|
)
|
|
359
359
|
|
|
360
360
|
mock({ bump: 'minor' })
|
|
361
|
-
expect(exec('--patch')).to.be.rejectedWith(/precommit-failure/)
|
|
361
|
+
await expect(exec('--patch')).to.be.rejectedWith(/precommit-failure/)
|
|
362
362
|
})
|
|
363
363
|
|
|
364
364
|
it('should allow an alternate commit message to be provided by precommit script', async function () {
|
package/test/preset.spec.js
CHANGED
package/test/utils.spec.js
CHANGED
|
@@ -26,7 +26,7 @@ function mockNpm () {
|
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
describe('utils', ()
|
|
29
|
+
describe('utils', function () {
|
|
30
30
|
it('detectPMByLockFile should work', async function () {
|
|
31
31
|
const { setLockFile } = mockNpm()
|
|
32
32
|
const { detectPMByLockFile } = require('../lib/detect-package-manager')
|