File size: 964 Bytes
1fe7075
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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',
    },
  },
});