Skip to content

Commit 8f0da34

Browse files
authored
Merge pull request #44 from pedpess/docs/troubleshoot-jest-failing
docs(troubleshooting): mock lib with jest
2 parents ec6e002 + 56df415 commit 8f0da34

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

+8
Original file line numberDiff line numberDiff line change
@@ -903,6 +903,14 @@ ___
903903
implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0-alpha03'
904904
```
905905
906+
907+
- #### When tests with Jest fail mentioning "Cannot read property 'UNREAD_CHANGE_NOTIFICATION' of undefined"
908+
- Make a `jest.mock` function with the library:
909+
```
910+
// jest/setup.ts
911+
jest.mock('@intercom/intercom-react-native', () => jest.fn());
912+
```
913+
906914
___
907915
908916
## Author

0 commit comments

Comments
 (0)