const React = require('react') const adsConsentInfo = { status: 'NOT_REQUIRED', canRequestAds: true, privacyOptionsRequirementStatus: 'NOT_REQUIRED', isConsentFormAvailable: false, } const rewardedState = { isLoaded: false, isOpened: false, isClicked: false, isClosed: false, isShowing: false, isEarnedReward: false, error: undefined, reward: undefined, load: jest.fn(), show: jest.fn(), } module.exports = { AdsConsent: { gatherConsent: jest.fn(async () => adsConsentInfo), getConsentInfo: jest.fn(async () => adsConsentInfo), showPrivacyOptionsForm: jest.fn(async () => adsConsentInfo), }, AdsConsentPrivacyOptionsRequirementStatus: { UNKNOWN: 'UNKNOWN', REQUIRED: 'REQUIRED', NOT_REQUIRED: 'NOT_REQUIRED', }, MaxAdContentRating: { G: 'G', PG: 'PG', T: 'T', MA: 'MA' }, MobileAds: jest.fn(() => ({ initialize: jest.fn(async () => []), setRequestConfiguration: jest.fn(async () => undefined), })), BannerAd: jest.fn(() => React.createElement(React.Fragment, null)), BannerAdSize: { ANCHORED_ADAPTIVE_BANNER: 'ANCHORED_ADAPTIVE_BANNER', }, useRewardedAd: jest.fn(() => rewardedState), }