test(lit-query/createMutationController): add test for not applying updates from the previous client mutation after switching clients - #11805
Conversation
…pdates from the previous client mutation after switching clients
|
View your CI Pipeline Execution ↗ for commit 3ff5378
☁️ 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. |
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. Note Currently processing new changes in this PR. This may take a few minutes, please wait... ⚙️ Run configuration
📒 Files selected for processing (1)
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (1)
💤 Files with no reviewable changes (1)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 remain after this review. 📝 WalkthroughWalkthroughAdds a test that switches the provider’s ChangesMutation client switch behavior
Priority: ⬇️ Low Estimated code review effort: 1 (Trivial) | ~5 minutes Change: Other Merge Risk: ⚪ Minimal · up to The new test covers the pending-mutation client switch through settlement. No issue has been established that would prevent merging. 🚥 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 📦
|
…evious-client-mutation
|
…evious-client-mutation
…evious-client-mutation
🎯 Changes
Adds "should not apply updates from the previous client mutation after switching clients" to
createMutationControllertests. A mutation is started on the provider's first client, and the provider switches to another client while it is pending. It asserts that the rendered status becomesidleafter the switch and staysidleafter the previous mutation settles.The existing client switch test did not have a mutation in flight, so none checked that the previous client's mutation observer stops updating the controller.
✅ Checklist
pnpm run test:pr, or these tests do not apply to this pull request.🚀 Release Impact
Summary by CodeRabbit