test(query-core/mutationCache): add test for deleting scope when removing the only mutation in that scope#10181
Conversation
…ving the only mutation in that scope
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review infoConfiguration used: defaults Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughAdds a new test case to MutationCache that verifies when the only mutation within a given scope is removed, both the mutation and the scope are deleted from the cache, resulting in an empty cache. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~5 minutes Possibly related PRs
Suggested labels
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 unit tests (beta)
Comment |
|
View your CI Pipeline Execution ↗ for commit c276364
☁️ Nx Cloud last updated this comment at |
🎯 Changes
Add a test to verify that
MutationCache.removedeletes the scope entry when removing the only mutation in that scope.This improves
mutationCache.tsstatement coverage (96.72% → 100%) by covering theelse ifbranch at lines 148-149.✅ Checklist
pnpm run test:pr.🚀 Release Impact
Summary by CodeRabbit