You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I have a library that uses React Native Paper internally and provides UI components that I am using in my project. I also have some very small tests written with Jest. Since I started to use this library I am not able to run my jest tests. They are failing with the following:
Cannot find module '../../../../src/hooks/useAppTheme' from 'node_modules/library/lib/commonjs/screens/ScreenName/Component/index.js'
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
I have a library that uses React Native Paper internally and provides UI components that I am using in my project. I also have some very small tests written with Jest. Since I started to use this library I am not able to run my jest tests. They are failing with the following:
Here the useAppTheme is made using step two here
Is there any proper documentation or way to mock react-native-paper with Jest?
Beta Was this translation helpful? Give feedback.
All reactions