test(*): rename 'console.warn' spies to 'consoleWarnMock' - #11645
Conversation
|
View your CI Pipeline Execution ↗ for commit d5de707
☁️ Nx Cloud last updated this comment at |
🚀 Changeset Version Preview1 package(s) bumped directly, 3 bumped as dependents. 🟩 Patch bumps
|
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: TanStack/query/.coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (10)
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review. 📝 WalkthroughWalkthroughTests in the broadcast, persistence, React, Svelte, and Vue Query packages rename local ChangesWarning Spy Tests
Priority: ⬇️ Low Estimated code review effort: 1 (Trivial) | ~3 minutes Change: Other Merge Risk: ⚪ Minimal · up to This change only renames local warning spies in tests without changing their behavior. No material merge risk is indicated. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
size-limit report 📦
|
🎯 Changes
Renames every
console.warnspy in the test suites toconsoleWarnMock, so the name states which console method is mocked:consoleMockconsoleWarnMockvue-query:useIsFetching,useMutation,usePrefetchInfiniteQuery,usePrefetchQuery,useQueries,useQueryconsoleWarnconsoleWarnMockquery-persist-client-core:persist;react-query-persist-client:PersistQueryClientProvider;svelte-query-persist-client:PersistQueryClientProviderwarnSpyconsoleWarnMockquery-broadcast-client-experimental:indexThe
console.errorspy namedconsoleMockinvue-query'suseMutationtest is left unchanged.Renames only; no test behavior changes.
✅ Checklist
pnpm run test:pr, or these tests do not apply to this pull request.🚀 Release Impact
Summary by CodeRabbit