My app runs fine and here is the main file:
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import App from './App';
import store from '../src/store/store';
ReactDOM.render(
<Provider store={store}>
<App />
</Provider>,
document.getElementById('root')
);
I originally used react create an app to make my project as found here: https://github.com/facebookincubator/create-react-app and then I added Redux to my app.
After I added Redux to my app for state management, the original unit test broke.
Here is the test:
import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
it('renders without crashing', () => {
const div = document.createElement('div');
ReactDOM.render(<App />, div);
});
How can I fix the unit test so that it passes?