test(query-core): replace deprecated 'toBeCalledWith' and 'toBeCalledTimes' with 'toHaveBeenCalledWith' and 'toHaveBeenCalledTimes'#10967
Conversation
…Times' with 'toHaveBeenCalledWith' and 'toHaveBeenCalledTimes'
|
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 (4)
📝 WalkthroughWalkthroughFour test files in ChangesVitest Matcher Alias Replacement
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 6dbeeeb
☁️ 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
toBeCalledWithandtoBeCalledTimesare deprecated Jest-style aliases in Vitest. This replaces the remaining usages inquery-coretests with their canonicaltoHaveBeenCalledWith/toHaveBeenCalledTimesforms, matching the rest of the suite.infiniteQueryObserver.test.tsx:toBeCalledWith→toHaveBeenCalledWith,toBeCalledTimes→toHaveBeenCalledTimesqueriesObserver.test.tsx:toBeCalledTimes→toHaveBeenCalledTimesmutationObserver.test.tsx:toBeCalledTimes→toHaveBeenCalledTimesquery.test.tsx:toBeCalledWith→toHaveBeenCalledWithPurely a matcher-name change; no assertion behavior is altered.
✅ Checklist
pnpm run test:pr.🚀 Release Impact
Summary by CodeRabbit