feat: add configuration management system

This commit is contained in:
张翔
2026-03-06 12:05:51 +08:00
parent 66c868de03
commit c7686bf1a3
4 changed files with 173 additions and 0 deletions
@@ -0,0 +1,35 @@
import { TestConfig } from '../types';
export const defaultConfig: TestConfig = {
baseURL: 'http://localhost:3000',
timeout: 5000,
retries: 3,
environment: 'development',
headless: true,
slowMo: undefined
};
export const testTimeouts = {
short: 2000,
medium: 5000,
long: 10000,
veryLong: 30000
};
export const testThresholds = {
performance: {
good: 90,
needsImprovement: 50,
poor: 0
},
accessibility: {
good: 95,
needsImprovement: 80,
poor: 0
},
seo: {
good: 90,
needsImprovement: 70,
poor: 0
}
};