chore: remove changelog add helper script

This commit is contained in:
Peter Steinberger
2026-02-24 15:32:58 +00:00
parent 0f0a680d3d
commit e806b34779
4 changed files with 0 additions and 170 deletions

View File

@@ -1,45 +0,0 @@
import { describe, expect, it } from "vitest";
import { insertUnreleasedChangelogEntry } from "../../scripts/changelog-add.ts";
const SAMPLE = `# Changelog
## 2026.2.24 (Unreleased)
### Changes
- Existing change.
### Fixes
- Existing fix.
## 2026.2.23
### Changes
- Older entry.
`;
describe("changelog-add", () => {
it("inserts a new unreleased fixes entry before the next version section", () => {
const next = insertUnreleasedChangelogEntry(
SAMPLE,
"fixes",
"New fix entry. (#123) Thanks @someone.",
);
expect(next).toContain(
"- Existing fix.\n- New fix entry. (#123) Thanks @someone.\n\n## 2026.2.23",
);
});
it("normalizes missing bullet prefix", () => {
const next = insertUnreleasedChangelogEntry(SAMPLE, "changes", "New change.");
expect(next).toContain("- Existing change.\n- New change.\n\n### Fixes");
});
it("does not duplicate identical entry", () => {
const once = insertUnreleasedChangelogEntry(SAMPLE, "fixes", "New fix.");
const twice = insertUnreleasedChangelogEntry(once, "fixes", "New fix.");
expect(twice).toBe(once);
});
});