test(solid-query/useQueries): add test for not fetching during the restoring period when 'isRestoring' is true#10951
Conversation
…storing period when 'isRestoring' is true
|
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)
📝 WalkthroughWalkthroughAdds useQueries isRestoring test
Estimated code review effort🎯 2 (Simple) | ⏱️ ~5 minutes 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)
Comment |
|
View your CI Pipeline Execution ↗ for commit 9f6bb17
☁️ 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
react-query'suseQueriestests cover that queries do not fetch whileisRestoringistrue, butsolid-queryhad no equivalent. This ports that coverage.useQueriesin anIsRestoringProviderset totrueand asserts that both queries staypending/idlewith no data and that theirqueryFns are never called, even after advancing past theirsleepduration.The test passes against the current behavior — no source changes.
✅ Checklist
pnpm run test:pr.🚀 Release Impact
Summary by CodeRabbit