test: 통합 테스트와 CI 품질 게이트 구축 (#74)#81
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📝 작업 개요
npm ci→build→test)를 추가했습니다.🔧 주요 변경 사항
package.json,package-lock.json테스트 프레임워크 도입:
vitest,supertesttest스크립트 변경:vitest runtest:watch스크립트 추가tests/app.integration.test.js핵심 경로 통합 테스트 추가
GET /health정상 응답 테스트GET /api/v1/users/auth인증 실패(토큰 없음) 테스트GET /api/v1/users/auth인증 성공(Bearer 토큰) 테스트GET /api/v1/users/auth인증 성공(Cookie 토큰) 테스트.github/workflows/ci.ymlPR/브랜치 푸시 시 CI 실행
실행 단계:
npm cinpm run buildnpm test테스트 실행에 필요한 최소 env(
DB_URL,JWT_SECRET,SIGNATURE_SECRET) 주입🎯 변경 목적
🧪 검증 방법
npm run lint(스크립트 없음)npm run build(성공)npm run test(성공)📌 참고 사항
Closes #74