You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Browse filesBrowse the repository at this point in the historyBrowse files
alexatsejames-alt
committed
fix(#1036): eliminate billing-cycle date drift with date-fns
- Add weekly and annual cases to calculateNextRenewal using addWeeks/addYears
- Extend billing_cycle union type to include 'weekly' | 'annual' (was silently
falling through to default, returning unchanged date on every renewal)
- Add property-style tests covering month-end clamping (Jan 31 -> Feb 28/29),
quarterly end clamping (Mar 31 -> Jun 30), and no-drift assertions over
12 monthly and 52 weekly iterations
- Fix misleading test description 'add 365 days' -> calendar-aware addYears
0 commit comments