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
I mocked library in jest.setup file like this jest.mock('react-native-sensors', () => require('react-native-sensors/mock'));
This works fine through all tests except one case.
In my project i have hook that calculates pitch using orientation.
The problem appears when i'm running simple test for this hook. In some reason its undefined
Any ideas why this happens? Will be appreciative for any help.
React Native Version: 0.67.3
React Native Sensors: 7.3.5
Jest: 27.5.1
Testing library react hooks: 8.0.0
The text was updated successfully, but these errors were encountered:
I mocked library in
jest.setup
file like thisjest.mock('react-native-sensors', () => require('react-native-sensors/mock'));
This works fine through all tests except one case.
In my project i have hook that calculates pitch using orientation.
The problem appears when i'm running simple test for this hook. In some reason its undefined
Any ideas why this happens? Will be appreciative for any help.
The text was updated successfully, but these errors were encountered: