Spaces:
Paused
Paused
Download apps/prevision-api/vitest.config.e2e.ts from modventures/prevision: direct link, hf CLI and curl.
- Browser
- Download file 964 Bytes
-
https://huggingface.co/spaces/modventures/prevision/resolve/main/apps/prevision-api/vitest.config.e2e.ts
- Command line
-
hf download hf://spaces/modventures/prevision/apps/prevision-api/vitest.config.e2e.ts
-
curl -L -o vitest.config.e2e.ts https://huggingface.co/spaces/modventures/prevision/resolve/main/apps/prevision-api/vitest.config.e2e.ts
964 Bytes
| import { defineConfig } from 'vitest/config'; | |
| // End-to-end: the real app over HTTP against a real Postgres (see test/setup.ts). | |
| export default defineConfig({ | |
| test: { | |
| globals: true, | |
| root: './', | |
| include: ['test/**/*.e2e-spec.ts'], | |
| globalSetup: ['test/global-setup.ts'], | |
| fileParallelism: false, | |
| env: { | |
| ENVIRONMENT: 'test', | |
| PREVISION_DATABASE_URL: process.env.TEST_DATABASE_URL ?? 'postgresql://postgres:postgres@localhost:55432/prevision_api_test', | |
| CLERK_SECRET_KEY: 'sk_test_fake', | |
| PROCESSING_TOKEN_SECRET: 'test-processing-secret-0123456789abcdef012', | |
| PREVISION_ALLOWED_ORIGINS: 'http://app.test', | |
| FREE_GENERATIONS: '5', | |
| PREVISION_APP_URL: 'https://app.test', | |
| STRIPE_SECRET_KEY: 'sk_test_fake', | |
| STRIPE_WEBHOOK_SECRET: 'whsec_test_secret', | |
| STRIPE_PRICE_STARTER: 'price_starter', | |
| STRIPE_PRICE_GROWTH: 'price_growth', | |
| STARTER_MONTHLY_GENERATIONS: '3', | |
| }, | |
| }, | |
| }); | |