test(solid-query-devtools/devtools): restore forwarding cases for 'buttonPosition' and 'position' props#10824
Conversation
…ttonPosition' and 'position' props
|
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)
📝 WalkthroughWalkthroughThis PR adds two new test cases to verify that the ChangesProp forwarding test coverage
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Possibly related PRs
Suggested labels
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 |
|
View your CI Pipeline Execution ↗ for commit 6522e70
☁️ Nx Cloud last updated this comment at |
🚀 Changeset Version Preview2 package(s) bumped directly, 23 bumped as dependents. 🟩 Patch bumps
|
size-limit report 📦
|
🎯 Changes
Restore the two forwarding test cases for
buttonPositionandpositionthat were inadvertently dropped while rewriting the suite in a previous PR.Without these cases, the truthy branches of the two guarded
createEffectblocks indevtools.tsxwere not exercised (uncovered lines 82 and 89). Re-adding them bringsdevtools.tsxback to 100% statement coverage and 85.71% branch coverage, and keeps the wiring matrix consistent with the otherDevtoolsOptionsprops.buttonPosition="top-left"→setButtonPosition('top-left')position="left"→setPosition('left')Both cases use
vi.spyOn(TanstackQueryDevtools.prototype, ...)so the real Solid devtools instance is constructed and mounted; only the setter calls are observed.✅ Checklist
🚀 Release Impact
Summary by CodeRabbit
buttonPositionandpositionconfiguration props are correctly forwarded to the underlying devtools component. Enhanced test suite ensures proper prop handling and confirms SolidQueryDevtools reliably passes customization options to its underlying implementation.