Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

test(tests): add test for voice control feature classification

Steven Enamakela37b075557aa
diff --git a/scripts/__tests__/generate-release-notes.test.mjs b/scripts/__tests__/generate-release-notes.test.mjs
index b40349b633..50e4e201f3 100644
--- a/scripts/__tests__/generate-release-notes.test.mjs
+++ b/scripts/__tests__/generate-release-notes.test.mjs
@@ -13,6 +13,7 @@ import {
createRecordSplitter,
ensureAllPullRequestsLinked,
extractPullRequestNumbers,
+ groupPullRequestsByHighlight,
parseArgs,
parseGitHubRepoFromRemote,
parseGitLog,
@@ -103,6 +104,19 @@ test('contributor credits use PR authors instead of merge authors', () => {
]);
});
+test('release highlights do not classify removed desktop voice controls as current voice features', () => {
+ const groups = groupPullRequestsByHighlight([
+ { number: 1, title: 'Remove the dictation hotkey', labels: [] },
+ { number: 2, title: 'Retire the desktop notch', labels: [] },
+ { number: 3, title: 'Improve speech transcription', labels: [] },
+ ]);
+
+ assert.deepEqual(groups.map(({ title, pullRequests }) => [title, pullRequests.map(({ number }) => number)]), [
+ ['🎙️ Voice & desktop control', [3]],
+ ['🧩 Integrations, UI & developer foundations', [1, 2]],
+ ]);
+});
+
test('OpenAI request contains required release sections and compare payload', () => {
const payload = buildReleasePayload({
from: 'v1.0.0',