Repository navigation
test(downgrader): check the oRPC undefined-key twin for 3.0 too - #82
Conversation
Now that the 3.0 checks skip keys holding undefined (#80), the twin with a key holding undefined in every object converts to 3.0 like the plain one. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0129me54jxy7ZKsYhwWvAmPP
ApprovabilityVerdict: Approved at Macroscope's review found this PR approvable — This change only extends an existing downgrader test to cover the undefined-key variant for 3.0, with no production code or runtime behavior changes. The impact is confined to test execution. Notes:
You can add or adjust custom eligibility rules. Learn more. |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
- Generalized the 3.0 oRPC test to
it.each— the 3.1→3.0 twin now runs over bothnullPrototypeandwithUndefined, matching the 3.2→3.1 twin already added in #79. The only change to the assertion body is parameterizing therebuild(v31, object)argument; the plain comparison target is unchanged.
I confirmed the new case is genuinely falsifiable rather than tautological: reverting the two fixes from #80 in src/v3.1-to-v3.0.ts (the isMediaTypeOnly key-count check and the losesRestriction propertyNames check) makes the withUndefined case fail, and it passes on current main. vitest run packages/downgrader/tests/orpc.test.ts is green (7 tests), and uncheck reports oxlint/oxfmt/tsc clean on the touched file.
deepseek-v4.1-flash (free via Pullfrog for OSS) | 𝕏

Requested by dinwwwh · project thread
Test-only follow-up to #79 and #80. #79 checked the
withUndefinedtwin of the oRPC document only for the 3.2 to 3.1 step, because 3.1 to 3.0 counted keys holdingundefined. #80 fixed that, so the 3.0 twin test now runs over bothnullPrototypeandwithUndefined.The new case fails on the commit before #80 and passes on main.
Generated by Claude Code