test(react-query/useQueries): add test for not fetching during restoring period when 'isRestoring' is true#10196
Conversation
…toring period branch
|
|
View your CI Pipeline Execution ↗ for commit da6fa1f
☁️ Nx Cloud last updated this comment at |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review infoConfiguration used: defaults Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThis PR adds test coverage for the Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
🎯 Changes
Add tests to cover the
isRestoringbranch inuseQueries.ts(lines 235, 272).When
IsRestoringProviderprovidestrue, queries should remain inpendingstatus withfetchStatus: 'idle'and never callqueryFn, even after the query's sleep duration has elapsed.Two test cases added:
✅ Checklist
pnpm run test:pr.🚀 Release Impact