Session 15: Intelligence hardening — park factors, weather, Tank01 prefetch, pace factors, signal audit, founder pricing fix (1405 tests)
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -43,6 +43,12 @@ jest.mock('axios');
|
||||
process.env.ODDS_API_KEY = 'test';
|
||||
process.env.STRIPE_SECRET_KEY = 'sk_test_xxx';
|
||||
process.env.STRIPE_WEBHOOK_SECRET = 'whsec_test';
|
||||
// Session 15 — PRICE_MAP was hardened to drop the fake-string
|
||||
// fallbacks (would 400 from Stripe in production). The integration
|
||||
// tests need real-looking Stripe price IDs in env so getPriceId
|
||||
// doesn't return the unconfigured sentinel and 503 the happy path.
|
||||
process.env.STRIPE_PRICE_ANALYST = process.env.STRIPE_PRICE_ANALYST || 'price_test_analyst';
|
||||
process.env.STRIPE_PRICE_DESK = process.env.STRIPE_PRICE_DESK || 'price_test_desk';
|
||||
|
||||
const app = require('../../src/app');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user