prevision / apps /prevision-api /vitest.config.e2e.ts
github-actions[bot]
Automated Deploy: 23110475c742a5d4f03930b55bca09042215c1dd
1fe7075
Raw History Blame Contribute Delete
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',
},
},
});