test(form-core): cover onMount field errors before field mount - #2223
Conversation
|
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 selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
Included review availability: Your plan includes up to 8 reviews per rolling hour; 7 remain after this review. 📝 WalkthroughWalkthroughAdds a regression test for a field mounted after form mount. The test verifies that a form-level ChangesForm mount error retention
Estimated code review effort: 1 (Trivial) | ~2 minutes Merge Risk: ⚪ Minimal · up to This PR adds regression coverage for form-level onMount field errors without changing published behavior or runtime configuration; no actionable merge-blocking risk remains beyond normal checks and review. Possibly related issues
Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 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 59fec98
☁️ Nx Cloud last updated this comment at |
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2223 +/- ##
==========================================
- Coverage 90.35% 89.78% -0.57%
==========================================
Files 38 66 +28
Lines 1752 3232 +1480
Branches 444 812 +368
==========================================
+ Hits 1583 2902 +1319
- Misses 149 296 +147
- Partials 20 34 +14 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Refs #1366
🎯 Changes
validators.onMountreturning field errors before the corresponding field has mounted.FieldApireceives theonMountfield error, records the error source asform, and exposes the flattened error list.✅ Checklist
pnpm test:pr.🚀 Release Impact
Summary by CodeRabbit