Commit f894f20
fix(test): assert optional updateSubscription through IPaymentProvider
tsc --noEmit (CI Typecheck) rejected accessing the optional
updateSubscription member on the concrete ManualPaymentProvider /
PayPalPaymentProvider classes (which omit it). Cast to IPaymentProvider
so the "absent on non-native providers" assertion type-checks. vitest
transpiles without full type-checking, so this only surfaced in CI.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LVTsGCEjPyjwtjJs6qSmhR1 parent 452ecaf commit f894f20
1 file changed
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
160 | | - | |
161 | | - | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
162 | 164 | | |
163 | 165 | | |
0 commit comments