test(lit-query/{createQueryController,createInfiniteQueryController,createQueriesController}): add tests for returning the same result between reads when nothing changed - #11775
Conversation
…reateQueriesController}): add tests for returning the same result between reads when nothing changed
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. 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 (3)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 3 remain after this review. 📝 WalkthroughWalkthroughThree Lit query controller tests verify that consecutive accessor reads return the same result object when query state remains unchanged. ChangesLit query result identity
Priority: ⬇️ Low Estimated code review effort: 1 (Trivial) | ~5 minutes Change: Other Merge Risk: ⚪ Minimal · up to This PR adds regression tests for stable query-result identity without changing runtime behavior; no actionable merge blocker remains. 🚥 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 |
|
View your CI Pipeline Execution ↗ for commit b263d40
☁️ 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 test to
createQueryController.test.ts,createInfiniteQueryController.test.ts, andcreateQueriesController.test.ts. After the query settles, reading the accessor twice must return the same result object (toBe) while nothing has changed.✅ Checklist
pnpm run test:pr, or these tests do not apply to this pull request.🚀 Release Impact
Summary by CodeRabbit