From e67497c9b758b9f04dc8a492f18fc513e0280cfe Mon Sep 17 00:00:00 2001 From: Woojae Kim Date: Thu, 21 Nov 2024 02:22:48 +0900 Subject: [PATCH] test: mock GoogleMobileAdsNativeViewNativeComponent --- jest.setup.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/jest.setup.ts b/jest.setup.ts index cd61f332..1d5c09ee 100644 --- a/jest.setup.ts +++ b/jest.setup.ts @@ -47,3 +47,10 @@ jest.doMock('./src/specs/components/GoogleMobileAdsBannerViewNativeComponent', ( default: ReactNative.View, }; }); +jest.doMock('./src/specs/components/GoogleMobileAdsNativeViewNativeComponent', () => { + return { + __esModule: true, + Commands: {}, + default: ReactNative.View, + }; +});