Skip to content
This repository was archived by the owner on Aug 6, 2026. It is now read-only.

Commit 682170e

Browse files
authored
test: verify PR output remains immutable
Generated-By: PostHog Code Task-Id: 577137db-feb7-4bef-be3e-38bdfd8439ea
1 parent d07bc34 commit 682170e

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

packages/shared/src/pr-urls.test.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,4 +137,12 @@ describe("buildPrOutput", () => {
137137
pr_urls: [A],
138138
});
139139
});
140+
141+
it("does not mutate the existing output", () => {
142+
const existing = { pr_url: B, pr_urls: [B] };
143+
144+
buildPrOutput(existing, [A]);
145+
146+
expect(existing).toEqual({ pr_url: B, pr_urls: [B] });
147+
});
140148
});

0 commit comments

Comments
 (0)