Spaces:
Paused
Paused
Download apps/prevision-api/test/support/test-config.ts from modventures/prevision: direct link, hf CLI and curl.
- Browser
- Download file 1 kB
-
https://huggingface.co/spaces/modventures/prevision/resolve/main/apps/prevision-api/test/support/test-config.ts
- Command line
-
hf download hf://spaces/modventures/prevision/apps/prevision-api/test/support/test-config.ts
-
curl -L -o test-config.ts https://huggingface.co/spaces/modventures/prevision/resolve/main/apps/prevision-api/test/support/test-config.ts
1 kB
| import type { AppConfig } from '../../src/config/app-config.interface.js'; | |
| /** A complete config for unit tests; override what a test cares about. */ | |
| export const testConfig = (overrides: Partial<AppConfig> = {}): AppConfig => ({ | |
| environment: 'test', | |
| port: 0, | |
| databaseUrl: 'postgresql://test', | |
| allowedOrigins: ['http://app.test'], | |
| allowedOriginRegex: null, | |
| clerk: { secretKeys: ['sk_test_fake'] }, | |
| processingToken: { secret: 'test-processing-secret-0123456789abcdef012', ttlSeconds: 600, audience: 'prevision-processing', issuer: 'prevision-api' }, | |
| internalTokenAudience: 'prevision-internal', | |
| freeGenerations: 5, | |
| appUrl: 'https://app.test', | |
| stripe: { | |
| secretKey: 'sk_test_fake', | |
| webhookSecret: 'whsec_test_secret', | |
| plans: { starter: { priceId: 'price_starter', monthlyGenerations: 150 }, growth: { priceId: 'price_growth', monthlyGenerations: 600 } }, | |
| logoUrl: 'https://cdn.test/prevision-logo.png', | |
| portalConfigurationId: 'bpc_test', | |
| }, | |
| ...overrides, | |
| }); | |