test(version): accept the four-segment hotfix version shape

This commit is contained in:
Marc-André Bombeck committed 2026-05-16 09:07:54 +02:00
1 parent b84b8070bf
commit 90a62cc9da
1 file changed
+1 -1
+1 -1
View File
@@ -34,7 +34,7 @@ describe("GET /api/version", () => {
it("returns the package.json version", async () => {
const response = await (GET as unknown as () => Promise<Response>)();
const body = (await response.json()) as VersionEnvelope;
expect(body.data.version).toMatch(/^\d+\.\d+\.\d+(-[a-z0-9.-]+)?$/i);
expect(body.data.version).toMatch(/^\d+\.\d+\.\d+(\.\d+)?(-[a-z0-9.-]+)?$/i);
expect(body.data.license).toBe("AGPL-3.0");
expect(body.data.repository).toContain("github.com");
expect(body.data.changelog).toContain("CHANGELOG");