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', }, }, });