test({react,preact}-query/useInfiniteQuery): assert 'queryFn' call count in skipToken test - #11433
Conversation
…unt in skipToken test
|
View your CI Pipeline Execution ↗ for commit 806caf3
☁️ Nx Cloud last updated this comment at |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Team Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 10 included reviews per hour; 6 remain after this review. 📝 WalkthroughWalkthroughThe React and Preact infinite query tests now use shared mocked query functions. They verify that ChangesskipToken test coverage
Estimated code review effort: 1 (Trivial) | ~5 minutes Merge Risk: ⚪ Minimal · up to This updates infinite-query tests to verify that skipToken prevents query execution until postId is set, then triggers one fetch. No production behavior is changed, and no current merge-blocking risk remains. Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 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 |
🚀 Changeset Version Preview2 package(s) bumped directly, 23 bumped as dependents. 🟨 Minor bumps
🟩 Patch bumps
|
size-limit report 📦
|
🎯 Changes
CodeRabbit flagged the same gap on #11423 (solid-query):
should not fetch when queryFn is skipToken, and fetch once it is replacedonly asserted the final rendered data, so multiple fetches afterpostIdis set would still pass.Wraps
queryFninvi.fnand asserts it is not called beforepostIdis set, and called exactly once after, in bothreact-query's andpreact-query'suseInfiniteQuery.test.tsx.✅ Checklist
pnpm run test:pr, or these tests do not apply to this pull request.🚀 Release Impact
Summary by CodeRabbit