test(query-devtools/Devtools): add tests for initial state from 'initialIsOpen' and 'localStore.open'#10682
Conversation
…ialIsOpen' and 'localStore.open'
|
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 a comprehensive Vitest + Solid Testing Library test suite for the ChangesDevtools Component Tests
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Tip 💬 Introducing Slack Agent: The best way for teams to turn conversations into code.Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.
Built for teams:
One agent for your entire SDLC. Right inside Slack. Comment |
|
View your CI Pipeline Execution ↗ for commit aec50b7
☁️ Nx Cloud last updated this comment at |
🚀 Changeset Version PreviewNo changeset entries found. Merging this PR will not cause a version bump for any packages. |
size-limit report 📦
|
🎯 Changes
Add the first integration tests for the
Devtoolsbody component, covering the initial open/closed state derived frominitialIsOpenandlocalStore.open.initialIsOpenistrue.localStore.openis'true'.localStore.open === 'false'overridesinitialIsOpen(priority).The test file introduces the integration testbed shared by upcoming PRs in this series:
solid-transition-groupmock to bypass a transitive@solid-primitives/transition-groupexportsfield that Vite cannot resolve.goobermock with a no-op factory to avoid heavy css template compilation on each mount.localStorage,matchMedia,ResizeObserverstubs and aPointerEventpolyfill for jsdom.renderDevtoolshelper that wiresQueryDevtoolsContext,PiPProvider, andThemeContextand renders theDevtoolsbody directly.✅ Checklist
🚀 Release Impact
Summary by CodeRabbit