test(query-devtools/utils): add tests for 'getSidedProp'#10647
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughTest coverage is added for the ChangesTest Suite for getSidedProp
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
🚀 Changeset Version PreviewNo changeset entries found. Merging this PR will not cause a version bump for any packages. |
|
View your CI Pipeline Execution ↗ for commit c883bd6
☁️ Nx Cloud last updated this comment at |
size-limit report 📦
|
🎯 Changes
Add unit tests for the
getSidedProphelper inquery-devtools/utils.tsx.The helper builds a sided property name by appending the capitalized side to a base prop (e.g.
getSidedProp('margin', 'top') === 'marginTop').Cases cover all four
DevtoolsPositionvalues:top,bottom,left,right.The
Capitalize<DevtoolsPosition>template literal type only enforces the return type shape, not the runtime capitalization logic — so droppingtoUpperCase()would still type-check but break at runtime. These tests guard that behavior.✅ Checklist
pnpm run test:pr.🚀 Release Impact
Summary by CodeRabbit
Tests