test({react,preact,solid,angular}-query): remove 'fromGenericOptionsQueryFn' duplicating 'fromGenericQueryFn' - #11463
Conversation
…ueryFn' duplicating 'fromGenericQueryFn'
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (4)
💤 Files with no reviewable changes (4)
Included review availability: Your plan provides up to 10 included reviews per hour; 7 remain after this review. 📝 WalkthroughWalkthroughThe change removes duplicated generic query-function inference tests from Angular, Preact, React, and Solid. Existing direct generic query-function tests remain. ChangesGeneric query test cleanup
Priority: ⬇️ Low Estimated code review effort: 1 (Trivial) | ~2 minutes Merge Risk: ⚪ Minimal · up to This removes redundant type tests while retaining the existing generic query-function and queryOptions coverage. No current merge-blocking risk is identified. 🚥 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 c51e5e2
☁️ Nx Cloud last updated this comment at |
🚀 Changeset Version Preview2 package(s) bumped directly, 23 bumped as dependents. 🟨 Minor bumps
🟩 Patch bumps
|
size-limit report 📦
|
🎯 Changes
fromGenericOptionsQueryFnis character-for-character the same query as thefromGenericQueryFndeclared right above it, with the same two assertions. Despite the name, it never callsqueryOptions— so it does not cover the generic-options path either, and asserts nothing the previous case did not.Nothing is lost by removing it:
queryFninference — still covered byfromGenericQueryFn, which stays and carries the identical assertions in all four adapters.queryOptionspath — covered by each adapter's dedicatedqueryOptions.test-d(query-options.test-d.tsin angular), which has ashould work when passed to useQuery/injectQuerycase plus 9–28 further assertions. The removed block never exercised this path at all.vue-queryandsvelte-querynever had this case, and theirqueryOptionstype tests are among the most thorough (32 and 21 assertions).The angular copy also carried a
// todo use query options?comment, dropped with it.Suites pass unchanged: 583 / 540 / 351 / 252, no type errors.
✅ Checklist
pnpm run test:pr, or these tests do not apply to this pull request.🚀 Release Impact
Summary by CodeRabbit