Commit 31b25ce
fix(test): guard Stripe init in skipped bonus-flow spec
The describe.skipIf callback body still runs at collection time, so
new Stripe(stripeKey!) threw in CI where STRIPE_SECRET_KEY is unset.
Construct the client only when a test key is present.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 9e0c1ee commit 31b25ce
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
45 | 47 | | |
46 | 48 | | |
47 | 49 | | |
| |||
0 commit comments