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
While running a most simple unit test I get TypeError: Cannot read property 'IsAndroid' of undefined as in issue #36 . However, building and running the app works perfectly fine.
Mocking react-native-sound via jest.mock('react-native-sound'); doesn't help.
Here's my unit test code:
import 'react-native';
import React from 'react';
import renderer from 'react-test-renderer';
jest.mock('react-native-sound');
import myComponentWithANestedSubComponentWhichUsesRNSound from './';
describe('<ListItemVideo />', () => {
it('renders correctly', () => {
const tree = renderer.create(<myComponentWithANestedSubComponentWhichUsesRNSound />);
});
});
The text was updated successfully, but these errors were encountered:
While running a most simple unit test I get
TypeError: Cannot read property 'IsAndroid' of undefined
as in issue #36 . However, building and running the app works perfectly fine.Mocking
react-native-sound
viajest.mock('react-native-sound');
doesn't help.Here's my unit test code:
The text was updated successfully, but these errors were encountered: