test(query-persist-client-core/persist): hoist 'queryClient' and 'persister' setup into 'beforeEach' and clear in 'afterEach'#10874
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 as they are similar to previous changes (1)
📝 WalkthroughWalkthroughThe persistQueryClientRestore test suite now uses a suite-level beforeEach to create shared ChangesTest setup consolidation in persistQueryClientRestore suite
Sequence Diagram(s)Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 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 e877106
☁️ 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 📦
|
…sister' setup into 'beforeEach' and clear in 'afterEach'
e877106 to
066d200
Compare
🎯 Changes
Hoists the repeated
queryClientandpersisterinstantiation in thepersistQueryClientRestoretest suite into a sharedbeforeEach, and clears the query client inafterEach, removing the duplicated setup from each test.✅ Checklist
pnpm run test:pr.🚀 Release Impact
Summary by CodeRabbit