diff --git a/client/src/components/KakaoInitializer/KakaoInitializer.tsx b/client/src/components/KakaoInitializer/KakaoInitializer.tsx index 862688724..199050133 100644 --- a/client/src/components/KakaoInitializer/KakaoInitializer.tsx +++ b/client/src/components/KakaoInitializer/KakaoInitializer.tsx @@ -2,7 +2,7 @@ import {useEffect} from 'react'; const KakaoInitializer = ({children}: React.PropsWithChildren) => { useEffect(() => { - if (!window.Kakao.isInitialized()) { + if (!window.Kakao.isInitialized() && process.env.NODE_ENV !== 'test') { window.Kakao.init(process.env.KAKAO_JAVASCRIPT_KEY); } }, []);