test(angular-query/injectMutation): add test for 'throwOnError' with 'mutate'#10219
test(angular-query/injectMutation): add test for 'throwOnError' with 'mutate'#10219sukvvon wants to merge 1 commit intoTanStack:mainfrom
Conversation
|
|
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 (1)
📝 WalkthroughWalkthroughA new test case was added to the inject-mutation test suite, verifying that when Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Possibly related PRs
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 3938ded
☁️ Nx Cloud last updated this comment at |
🎯 Changes
Add test for
throwOnError: truewithmutate()(non-async) ininjectMutation.Existing tests only covered
throwOnErrorwithmutateAsync, which handles errors via Promise rejection. This test covers the subscriber callback path (lines 152-153) where the error is emitted viangZone.onErrorand thrown directly.This improves
inject-mutation.tscoverage from 96% to 100%.✅ Checklist
pnpm run test:pr.🚀 Release Impact
Summary by CodeRabbit