File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed
Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,13 @@ const customJestConfig: Config.InitialOptions = {
2222 '!**/.next/**' ,
2323 '!**/coverage/**' ,
2424 '!**/jest.config.ts' ,
25+ '!**/jest.setup.ts' ,
26+ '!**/next-env.d.ts' ,
27+ '!**/tailwind.config.ts' ,
28+ '!**/src/pages/_app.tsx' ,
29+ '!**/src/pages/_document.tsx' ,
30+ '!**/src/assets/**' , // μ μ νμΌ μ μΈ
31+
2532 ] ,
2633} ;
2734
Original file line number Diff line number Diff line change 1- import { initializeApp } from "firebase/app" ;
1+ import { initializeApp , getApps , getApp } from "firebase/app" ;
22import { getMessaging , getToken , onMessage } from "firebase/messaging" ;
33
44const firebaseConfig = {
@@ -10,7 +10,7 @@ const firebaseConfig = {
1010 appId : process . env . NEXT_PUBLIC_FIREBASE_APP_ID ,
1111} ;
1212
13- const app = initializeApp ( firebaseConfig ) ;
13+ const app = getApps ( ) . length === 0 ? initializeApp ( firebaseConfig ) : getApp ( ) ;
1414
1515let messaging : ReturnType < typeof getMessaging > | null = null ;
1616if ( typeof window !== "undefined" && "serviceWorker" in navigator ) {
You canβt perform that action at this time.
0 commit comments