test: add test case testing non-conventional commit messages (#2)
All checks were successful
CD / Release (push) Successful in 40s
All checks were successful
CD / Release (push) Successful in 40s
Reviewed-on: #2 Co-authored-by: Timo Behrendt <t.behrendt@t00n.de> Co-committed-by: Timo Behrendt <t.behrendt@t00n.de>
This commit was merged in pull request #2.
This commit is contained in:
@@ -246,6 +246,16 @@ describe("TagIncrementer", () => {
|
||||
|
||||
expect(result).toBe(IncrementType.MINOR);
|
||||
});
|
||||
|
||||
it("should fallback to PATCH on an non-conventional commit message", async () => {
|
||||
mockGitService.setMockCommit({
|
||||
commit: { message: "just some tests, nothing special" },
|
||||
});
|
||||
|
||||
const result = await tagIncrementer.determineIncrementType("ref");
|
||||
|
||||
expect(result).toBe(IncrementType.PATCH);
|
||||
});
|
||||
});
|
||||
|
||||
describe("incrementTag", () => {
|
||||
|
||||
Reference in New Issue
Block a user