Skip to content

Commit 4a929ca

Browse files
committed
fix(package): update conventional-commits-parser to version 3.0.7
1 parent 76537cc commit 4a929ca

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"dependencies": {
2222
"conventional-changelog-angular": "^5.0.0",
2323
"conventional-commits-filter": "^2.0.0",
24-
"conventional-commits-parser": "^3.0.0",
24+
"conventional-commits-parser": "^3.0.7",
2525
"debug": "^4.0.0",
2626
"import-from": "^3.0.0",
2727
"lodash": "^4.17.4"

test/integration.test.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,18 @@ test('Return "major" if there is a breaking change, using default releaseRules',
144144
t.true(t.context.log.calledWith('Analysis of %s commits complete: %s release', 2, 'major'));
145145
});
146146

147+
test('Return "major" if there is a "conventionalcommits" breaking change, using default releaseRules', async t => {
148+
const commits = [{hash: '123', message: 'fix: First fix'}, {hash: '456', message: 'feat!: Breaking change feature'}];
149+
const releaseType = await analyzeCommits({preset: 'conventionalcommits'}, {cwd, commits, logger: t.context.logger});
150+
151+
t.is(releaseType, 'major');
152+
t.true(t.context.log.calledWith('Analyzing commit: %s', commits[0].message));
153+
t.true(t.context.log.calledWith('The release type for the commit is %s', 'patch'));
154+
t.true(t.context.log.calledWith('Analyzing commit: %s', commits[1].message));
155+
t.true(t.context.log.calledWith('The release type for the commit is %s', 'major'));
156+
t.true(t.context.log.calledWith('Analysis of %s commits complete: %s release', 2, 'major'));
157+
});
158+
147159
test('Return "patch" if there is only types set to "patch", using default releaseRules', async t => {
148160
const commits = [
149161
{hash: '123', message: 'fix: First fix (fixes #123)'},

0 commit comments

Comments
 (0)