Arnoldo Rodríguez Jr.

Results 2 comments of Arnoldo Rodríguez Jr.

When you installed react-native-unimodules as per: https://docs.expo.io/bare/installing-unimodules , were you able to test that `console.log(Constants.systemFonts)` didn't print undefined? (https://docs.expo.io/bare/installing-unimodules/#usage)

@ozanmanav Try mocking the module in your tests: ``` jest.mock('react-native-orientation-locker', () => { return { addEventListener: jest.fn(), removeEventListener: jest.fn(), lockToPortrait: jest.fn(), lockToLandscapeLeft: jest.fn(), lockToLandscapeRight: jest.fn(), unlockAllOrientations: jest.fn(), }; }); ```