보안 및 동일한 테스트 환경 구성을 위해 test/config/test.config.ts
파일에서 관리
# Test configuration
/test/config/test.config.ts
interface TestUser {
email: string;
password: string;
}
interface TestMover {
email: string;
}
export interface TestConfig {
customer: TestUser;
movers: TestMover[];
defaultPassword: string;
}
export const TEST_CONFIG = {
customer: {
email: '[email protected]',
password: 'moving123!',
},
movers: [
{ email: '[email protected]' },
{ email: '[email protected]' },
{ email: '[email protected]' },
{ email: '[email protected]' },
],
defaultPassword: 'moving123!',
} as const;
# 특정 테스트 시나리오만 실행
$ npm run test:e2e:new-user # 신규 사용자 테스트
$ npm run test:e2e:existing-user # 기존 사용자 테스트
$ npm run test:e2e:estimate-flow # 견적 요청 흐름 테스트 (견적 요청 생성까지만, 기사 견적 제안 X)
$pnpm test:e2e:new-user
$pnpm test:e2e:existing-user
$pnpm test:e2e:estimate-flow
# 자세한 로그와 함께 보고싶으면 명령어 뒤에 :verbose 붙이기
ex) $ npm run test:e2e:new-user:verbose