30 lines
678 B
TypeScript
30 lines
678 B
TypeScript
import { TestConfig } from '../types';
|
|
|
|
export const environments: Record<string, TestConfig> = {
|
|
development: {
|
|
baseURL: 'http://localhost:3000',
|
|
timeout: 5000,
|
|
retries: 3,
|
|
environment: 'development',
|
|
headless: false
|
|
},
|
|
staging: {
|
|
baseURL: 'https://staging.novalon.com',
|
|
timeout: 10000,
|
|
retries: 2,
|
|
environment: 'staging',
|
|
headless: true
|
|
},
|
|
production: {
|
|
baseURL: 'https://www.novalon.com',
|
|
timeout: 10000,
|
|
retries: 1,
|
|
environment: 'production',
|
|
headless: true
|
|
}
|
|
};
|
|
|
|
export function getEnvironmentConfig(env: string = 'development'): TestConfig {
|
|
return environments[env] || environments.development;
|
|
}
|