test(query-core/queryObserver): split 'shouldFetchOnWindowFocus' test by 'refetchOnWindowFocus' value#10889
Conversation
… by 'refetchOnWindowFocus' value
|
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)
📝 WalkthroughWalkthroughThe PR refactors the ChangesTest case refactoring
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes 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 c8b8e44
💡 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. |
size-limit report 📦
|
🎯 Changes
Splits the single
shouldFetchOnWindowFocus should respect refetchOnWindowFocus optiontest into two focused tests, one perrefetchOnWindowFocusvalue:shouldFetchOnWindowFocusreturnstruewhenrefetchOnWindowFocusistrueshouldFetchOnWindowFocusreturnsfalsewhenrefetchOnWindowFocusisfalseThe two cases are independent (no shared state or ordering between them), so splitting them isolates failures and makes each test title describe a single behavior. The assertions are unchanged.
✅ Checklist
pnpm run test:pr.🚀 Release Impact
Summary by CodeRabbit