Conversation
…consistency with 'it' convention
|
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 (2)
📝 WalkthroughWalkthroughA test helper function is renamed from Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 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 23d98c0
☁️ 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
Renames the
testIfhelper invueQueryPlugin.test.tstoitIfto align with theitconvention enforced project-wide byvitest/consistent-test-it.Files
packages/vue-query/src/__tests__/vueQueryPlugin.test.ts— helper definition + 13 usageseslint.config.js—additionalTestBlockFunctions: ['testIf']→['itIf']Why
After #10528 enforced
{ fn: 'it', withinDescribe: 'it' }across the repo, a helper namedtestIfthat internally returnsit/it.skipreads inconsistently. The rename keeps the naming aligned with:it/it.skip)it.runIf/it.skipIfAPIitconventionThe helper itself is kept (not replaced with
it.runIf) because it also serves a second purpose: avoidingvitest/no-identical-titlefalse positives when the same title is intentionally used twice forisVue2andisVue3branches in the samedescribeblock.Verification
test:eslintin@tanstack/vue-query: 0 errorstest:libin@tanstack/vue-query: 289 passed, 6 skipped (unchanged from main)✅ Checklist
pnpm run test:pr.🚀 Release Impact
Summary by CodeRabbit
Tests
Chores
Note: This release contains internal maintenance updates with no user-facing changes.