| 1 | import { describe, expect, it } from "bun:test"; |
| 2 | |
| 3 | import { nextVersion } |
| 4 | |
| 5 | describe("nextVersion", () |
| 6 | it("bumps one part and resets the ones below it", |
| 7 | expect(nextVersion("1.4.2 |
| 8 | expect(nextVersion("1.4.2 |
| 9 | expect(nextVersion("1.4.2 |
| 10 | }); |
| 11 | |
| 12 | it("takes an explicit version as given", |
| 13 | expect(nextVersion("1.4.2 |
| 14 | }); |
| 15 | |
| 16 | it("rejects anything else", |
| 17 | expect(() => |
| 18 | expect(() => |
| 19 | expect(() => |
| 20 | }); |
| 21 | }); |