Uh oh!
There was an error while loading. Please reload this page.
test(lit-query): replace inline 'new Promise' timeouts with 'sleep' from 'query-test-utils' - #11104
Conversation
…rom 'query-test-utils'
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (6)
🚧 Files skipped from review as they are similar to previous changes (6)
Included review availability: Your plan provides up to 10 included reviews per hour; 8 remain after this review. 📝 WalkthroughWalkthroughThe Lit Query package adds ChangesLit Query test timing utility adoption
Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk:⚪ Minimal · up to This change standardizes fixed-delay test code without changing published behavior; no actionable merge-blocking risk remains beyond normal checks and review. Possibly related PRs
Suggested reviewers: 🚥 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 |
View your CI Pipeline Execution ↗ for commit 2857017
☁️ Nx Cloud last updated this comment at |
🚀 Changeset Version Preview9 package(s) bumped directly, 16 bumped as dependents. 🟨 Minor bumps
🟩 Patch bumps
|
size-limit report 📦
|
TkDodo
commented
Aug 18, 2026
@sukvvon there’s something not quite right here, errors are persistent. do you want to get this over the finish line or should we close it? |
Note GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer. |
Uh oh!
There was an error while loading. Please reload this page.
🎯 Changes
lit-query's tests were the only ones in the repo still writingnew Promise((resolve) => setTimeout(resolve, N))inline instead of using the sharedsleep(N)helper from@tanstack/query-test-utilsthat every other adapter package's tests already use. Added@tanstack/query-test-utilsas a devDependency and replaced all 14 occurrences acrossclient-switch-controllers.test.ts,counters-and-state.test.ts,mutation-controller.test.ts, andquery-controller.test.ts. No behavior change —sleepis implemented identically to the inlined promise.Left untouched: promises that resolve manually via a captured
resolvereference (e.g.resolveRefetch,resolveOld,resolveFetch), since those aren't fixed-delay timeouts.✅ Checklist
pnpm run test:pr.🚀 Release Impact
Summary by CodeRabbit