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.
PR의 목적이 무엇인가요?
현재 MSW환경에서 localstorage에 access 토큰 값이 없으면 모킹이 제대로 진행되지 않는 문제가 있습니다. 이것을 해결하기 위한 변경사항입니다.
이슈 ID는 무엇인가요?
설명
MSW환경에서 localstorage에 access 토큰 값이 없으면 모킹이 제대로 진행되지 않는 문제가 있습니다. 이것을 해결하기 위해 msw환경에서는 localStorage에서 가져오는 값을 고정하여 이 문제를 해결했습니다.
수정하는 도중에 서비스 워커 관련 에러가 발생하는 것을 확인하였습니다.
현재 서비스워커 코드 파일이, msw와 firebase 2개를 사용하고 있습니다.
하지만 브라우저는 동일한 스코프(scope)에 두 개의 서비스 워커를 허용하지 않기 때문에 충돌이 발생합니다.
이를 1차적으로 막기 위해서 msw환경에서는 firebase를 사용할 수 없게 막아두었습니다.
후에 msw환경에서도 firebase를 이용하기 싶으면 추가적인 조치가 필요해 보인다.
질문 혹은 공유 사항 (Optional)