test(*): rename 'console.error' spies to 'consoleErrorMock' - #11646
Conversation
|
View your CI Pipeline Execution ↗ for commit 17000d9
☁️ 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 (4)
Included review availability: Your plan provides up to 10 included reviews per hour; 7 remain after this review. 📝 WalkthroughWalkthroughTest files across TanStack Query packages rename local ChangesConsole error spy naming
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Other Merge Risk: ⚪ Minimal · up to This change renames test-local console error spies without changing their behavior. No material risk to users or test workflows is evident; it is mergeable subject to normal checks. Architecture SummaryArchitecture risk: 🔵 Low · up to The change affects 13 systems. Changed systems: Architecture concerns Review detailsSystems and components
Before / after behavior
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 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 📦
|
…rror-spy-to-console-error-mock # Conflicts: # packages/query-persist-client-core/src/__tests__/persist.test.ts # packages/react-query-persist-client/src/__tests__/PersistQueryClientProvider.test.tsx # packages/svelte-query-persist-client/tests/PersistQueryClientProvider.svelte.test.ts
🎯 Changes
Renames every named
console.errorspy in the test suites toconsoleErrorMock, so the name states which console method is mocked:consoleMockconsoleErrorMockquery-core,react-query,preact-query,solid-query,svelte-query,vue-query(useMutationonly),query-persist-client-core,react-query-persist-client,solid-query-persist-client,svelte-query-persist-client,angular-query-persist-clientconsoleErrorSpyconsoleErrorMockquery-core(timeoutManager,utils),react-query,preact-query,angular-query-experimentalconsoleErrorconsoleErrorMockquery-devtools(Explorer,PiPContext)In
vue-query, only theconsole.errorspy inuseMutationis renamed; the otherconsoleMockspies there mockconsole.warnand are 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