test(query-devtools/Explorer): add tests for 'defaultExpanded' and pagination behavior#10727
test(query-devtools/Explorer): add tests for 'defaultExpanded' and pagination behavior#10727sukvvon wants to merge 1 commit into
Conversation
…gination behavior
|
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 test coverage for two Explorer component features: validation that ChangesExplorer Component Test Coverage
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 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 fc5baa9
☁️ Nx Cloud last updated this comment at |
🚀 Changeset Version Preview2 package(s) bumped directly, 23 bumped as dependents. 🟩 Patch bumps
|
size-limit report 📦
|
🎯 Changes
Extend
Explorer.test.tsxwith tests for props-driven behavior —defaultExpandedand pagination of large arrays (subEntryPages.length > 1branch).Added cases:
"defaultExpanded"(1)should render children eagerly when the label is in "defaultExpanded"— the call siteDevtools.tsxalways passesdefaultExpanded={['Data']}, so this locks the contract that the Data panel renders pre-expanded.pagination(3)should group entries into 100-item pages when the array has more than 100 entriesshould keep the items of a page hidden until the page header is clickedshould reveal the items of a page when the page header is clicked✅ Checklist
pnpm run test:pr.🚀 Release Impact
Summary by CodeRabbit
defaultExpandedbehavior and array pagination functionality, including validation of expanded state rendering and pagination interactions for large arrays.