Feat: setupMocks 함수 분리 및 로컬 백엔드와 분리 #217
Merged
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.
💡 작업 내용
💡 자세한 설명
테스트 코드 MSW 실행과 로컬 백엔드 서버를 분리
.env 파일에
VITE_USE_MOCK
변수를 둬서 값이 true면 MSW를 실행하고false면 로컬 백엔드 서버를 실행할 수 있도록 분리했습니다.
🚩 후속 작업 (선택)
석원님도 .env 파일 설정하셔서 사용하면 될 듯 합니다.
✅ 셀프 체크리스트
closes #이슈번호