test(query-persist-client-core/retryStrategies): add test for 'removeOldestQuery' returning undefined when there are no queries#10868
Conversation
…OldestQuery' returning undefined when there are no queries
|
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 single test case to verify that the ChangesremoveOldestQuery empty queries test coverage
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Possibly related PRs
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 baa2326
☁️ 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
Adds a unit test for
removeOldestQuerycovering the case where the persisted client has no queries to remove: it returnsundefined, which signals the persister to stop retrying instead of looping forever.✅ Checklist
pnpm run test:pr.🚀 Release Impact
Summary by CodeRabbit
removeOldestQueryfunction behavior when no queries are present.