test: add test case testing non-conventional commit messages (#2)
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:
2025-08-17 23:00:33 +02:00
committed by t.behrendt
parent 370fbd39a3
commit 494b88e63f

View File

@@ -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", () => {