react-code-dataset / react-instantsearch /examples /react-native-query-suggestions /tests /App.test.js
| import 'react-native'; | |
| import React from 'react'; | |
| import App from '../App'; | |
| // Note: test renderer must be required after react-native. | |
| import renderer from 'react-test-renderer'; | |
| Date.now = jest.fn(() => 0); | |
| test('renders correctly', () => { | |
| const tree = renderer.create(<App />).toJSON(); | |
| expect(tree).toMatchSnapshot(); | |
| }); | |