Skip to content

Commit dc5c2ce

Browse files
committed
docs(troubleshooting): mock lib with jest
1 parent 0b2401d commit dc5c2ce

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -897,6 +897,14 @@ ___
897897
implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0-alpha03'
898898
```
899899
900+
901+
- #### When tests with Jest fail mentioning "Cannot read property 'UNREAD_CHANGE_NOTIFICATION' of undefined"
902+
- Make a `jest.mock` function with the library:
903+
```
904+
// jest/setup.ts
905+
jest.mock('@intercom/intercom-react-native', () => jest.fn());
906+
```
907+
900908
___
901909
902910
## Author

0 commit comments

Comments
 (0)