File tree Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change 18
18
[" European User Consent" , " /european-user-consent" ],
19
19
[" Ad Inspector" , " /ad-inspector" ],
20
20
[" Impression-level ad revenue" , " /impression-level-ad-revenue" ],
21
- [" Video ad volume control" , " /video-ad_volume-control" ]
21
+ [" Video ad volume control" , " /video-ad_volume-control" ],
22
+ [" Testing" , " /testing" ]
22
23
]
23
24
],
24
25
[
Original file line number Diff line number Diff line change
1
+ # Testing
2
+
3
+ The React Native Google Mobile Ads library depends on a lot of platform-specific native code which you likely want to mock in your tests.
4
+
5
+ ## Testing with Jest
6
+
7
+ This library ships with a Jest setup file that mocks the native code for you.
8
+ To use it, add the following to your Jest configuration:
9
+
10
+ ``` json
11
+ // jest.config.js|ts|mjs|cjs|json
12
+ {
13
+ "setupFiles" : [
14
+ " ./node_modules/react-native-google-mobile-ads/jest.setup.ts"
15
+ ]
16
+ }
17
+ ```
You can’t perform that action at this time.
0 commit comments