test: verify PR output remains immutable - #4014
Conversation
Generated-By: PostHog Code Task-Id: 577137db-feb7-4bef-be3e-38bdfd8439ea
|
Merging to
After your PR is submitted to the merge queue, this comment will be automatically updated with its status. If the PR fails, failure details will also be posted here |
|
React Doctor found no issues in the changed files. 🎉 Reviewed by React Doctor for commit |
|
👋 Visual changes detected for this PR. Review and approve in PostHog Visual Review If these changes are unexpected, they may be caused by a flaky test or a broken snapshot on master. Don't approve — rerun the job or wait for a fix. |
|
Hey @k11kirky, we've migrated this repo into the PostHog/posthog monorepo, so this PR needs to be recreated there. Easiest path: check out the monorepo and run the Shout if you get stuck. |
Problem
The PR output utility should remain a pure transformation so callers can safely reuse their existing output objects.
Changes
Add a regression test confirming
buildPrOutputdoes not mutate its input.How did you test this?
git diff --checkbiomeandvitestare unavailable.Automatic notifications
Created with PostHog Code