test(query-core/queryObserver): unify all test descriptions to start with 'should'#10897
Conversation
|
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 (1)
✅ Files skipped from review due to trivial changes (1)
📝 WalkthroughWalkthroughTest case descriptions in ChangesTest description improvements
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
|
View your CI Pipeline Execution ↗ for commit 4de4710
💡 Verify your cache is correct by running tasks in a sandbox. Read docs ↗ ☁️ 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. |
4de4710 to
c132b0f
Compare
size-limit report 📦
|
🎯 Changes
Unify all test descriptions in
queryObserver.test.tsxto start withshould, so everyitfollows the same convention.should ..., keeping the method name where it identifies the behavior (from getCurrentQuery,when setOptions is called,via fetchOptimistic).shouldFetchOnWindowFocus should return true/false ...is rewritten asshould return true/false from shouldFetchOnWindowFocus ..., removing the duplicatedshouldwhile still describing exactly what is asserted (the method return value).uses placeholderData ...becomesshould use placeholderData ....✅ Checklist
pnpm run test:pr.🚀 Release Impact
Summary by CodeRabbit