Skip to content

Commit

Permalink
test: mock GoogleMobileAdsNativeViewNativeComponent
Browse files Browse the repository at this point in the history
  • Loading branch information
wjaykim committed Nov 22, 2024
1 parent 3ab5157 commit bb35abc
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion jest.setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,14 @@ jest.doMock('react-native', () => {
ReactNative,
);
});
jest.doMock('./src/ads/GoogleMobileAdsBannerViewNativeComponent', () => {
jest.doMock('./src/specs/components/GoogleMobileAdsBannerViewNativeComponent', () => {
return {
__esModule: true,
Commands: {},
default: ReactNative.View,
};
});
jest.doMock('./src/specs/components/GoogleMobileAdsNativeViewNativeComponent', () => {
return {
__esModule: true,
Commands: {},
Expand Down

0 comments on commit bb35abc

Please sign in to comment.