diff --git a/packages/shared/src/pr-urls.test.ts b/packages/shared/src/pr-urls.test.ts index 922c308cc5..b2a1b1065e 100644 --- a/packages/shared/src/pr-urls.test.ts +++ b/packages/shared/src/pr-urls.test.ts @@ -137,4 +137,12 @@ describe("buildPrOutput", () => { pr_urls: [A], }); }); + + it("does not mutate the existing output", () => { + const existing = { pr_url: B, pr_urls: [B] }; + + buildPrOutput(existing, [A]); + + expect(existing).toEqual({ pr_url: B, pr_urls: [B] }); + }); });