react-native-popup-dialog
Version:
React Native Popup Dialog for IOS & Android.
9 lines (6 loc) • 336 B
JavaScript
const Enzyme = require('enzyme');
const Adapter = require('enzyme-adapter-react-16');
Enzyme.configure({ adapter: new Adapter() });
// Jest doesn't support require.cache, so the correct way to do the mocking is using
// eslint-disable-next-line
jest.mock('react-native', () => require('react-native-mock-render'), { virtual: true });