Skip to content

Commit 21a4c15

Browse files
committed
test: mock GoogleMobileAdsNativeViewNativeComponent
1 parent c1570c6 commit 21a4c15

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

jest.setup.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,14 @@ jest.doMock('react-native', () => {
4040
ReactNative,
4141
);
4242
});
43-
jest.doMock('./src/ads/GoogleMobileAdsBannerViewNativeComponent', () => {
43+
jest.doMock('./src/specs/components/GoogleMobileAdsBannerViewNativeComponent', () => {
44+
return {
45+
__esModule: true,
46+
Commands: {},
47+
default: ReactNative.View,
48+
};
49+
});
50+
jest.doMock('./src/specs/components/GoogleMobileAdsNativeViewNativeComponent', () => {
4451
return {
4552
__esModule: true,
4653
Commands: {},

0 commit comments

Comments
 (0)