test(lit-query/createQueryController): split combined 'select' and 'refetchOnMount' tests into separate tests - #11762
Conversation
…efetchOnMount' tests into separate tests
|
View your CI Pipeline Execution ↗ for commit 5ab8e03
☁️ 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. |
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. Important Review skippedReview was skipped as selected files did not have any reviewable changes. ⚙️ Run configurationConfiguration used: Repository: TanStack/query/.coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: TanStack/query/.coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (1)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 6 remain after this review. 📝 WalkthroughWalkthroughThe ChangesQuery controller tests
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Other Merge Risk: ⚪ Minimal · up to The test-only change isolates the intended behavior checks. No actionable merge-blocking risk is established; merge after normal checks pass. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
size-limit report 📦
|
…-select-and-refetch-on-mount
🎯 Changes
Splits two tests in
createQueryController.test.tsthat each covered two independent cases:should transform data with select and surface a throwing select as an errorbecomes:should transform data with selectshould surface a throwing select as an error, whereselectthrows from the first fetch instead of after arefetch()should follow the stale-vs-fresh policy for refetchOnMount, which chained aStaleHostand aFreshHost, becomes:should refetch on mount when the data is staleshould not refetch on mount when the data is fresh, each with a singleHost✅ Checklist
pnpm run test:pr, or these tests do not apply to this pull request.🚀 Release Impact
Summary by CodeRabbit