Repository navigation
test(lit-query/createQueryController): read 'queryKey' and 'signal' from the 'queryFn' context to avoid shadowing the 'queryKey' helper - #12292
Conversation
…rom the 'queryFn' context to avoid shadowing the 'queryKey' helper
|
|
View your CI Pipeline Execution ↗ for commit 069b6a6
☁️ 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. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
size-limit report 📦
|
🎯 Changes
In
createQueryController.test.ts, fivequeryFns destructuredqueryKeyfrom the query function context, which shadowed thequeryKeyhelper imported from@tanstack/query-test-utils(no-shadow).They now take the context as
contextand readcontext.queryKey(andcontext.signalin the one that also usedsignal). The tests still read the key from the context.✅ Checklist
pnpm run test:pr, or these tests do not apply to this pull request.🚀 Release Impact
Summary by CodeRabbit