test(query-core/queryObserver): add test for promise not rejecting when 'experimental_prefetchInRender' is enabled#10887
Conversation
|
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)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughAdds a test to ChangesQueryObserver Prefetch Test
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 b91058c
☁️ 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 📦
|
b91058c to
21aa19d
Compare
…en 'experimental_prefetchInRender' is enabled
21aa19d to
94e0213
Compare
🎯 Changes
Adds a unit test for
QueryObserver.trackResultcovering the case whereexperimental_prefetchInRenderis enabled: reading the trackedpromiseresolves with the data instead of rejecting.This complements the existing test that asserts the promise rejects when the flag is disabled, covering the other side of the guard.
✅ Checklist
pnpm run test:pr.🚀 Release Impact
Summary by CodeRabbit