test(query-core/{hydration,queriesObserver}): remove unnecessary 'async' from tests without 'await'#11035
Conversation
…nc' from tests without 'await'
|
View your CI Pipeline Execution ↗ for commit b32d5ba
☁️ 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⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThis PR removes the ChangesTest callback signature cleanup
Estimated code review effort: 1 (Trivial) | ~3 minutes Possibly related PRs
Suggested labels: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
size-limit report 📦
|
🎯 Changes
Removes the
asynckeyword fromitcallbacks that contain noawaitin their body, in twoquery-coretest files:hydration.test.tsx(3 tests): rehydrating an existing pending query with a synchronously resolved promise, and settingdataUpdatedAtwhen hydrating a resolved streamed query into a new / existing cache entry.queriesObserver.test.tsx(2 tests): skipping combine notifications while suspense queries have no data, and after suspense is enabled without structural changes.These callbacks were marked
asyncbut never awaited anything, so the marker is unnecessary.✅ Checklist
pnpm run test:pr.🚀 Release Impact
Summary by CodeRabbit