diff -r 1f340f3597a8 -r ea92f4fe783d client/src/__tests__/App.test.js --- a/client/src/__tests__/App.test.js Tue Oct 09 19:07:47 2018 +0200 +++ b/client/src/__tests__/App.test.js Mon Oct 08 18:35:47 2018 +0200 @@ -1,6 +1,8 @@ import React from 'react'; import ReactDOM from 'react-dom'; -import {Provider} from 'react-redux'; +import { Provider } from 'react-redux'; +import { MemoryRouter } from 'react-router'; +import { createMemoryHistory } from 'history' import App from '../App'; import configureStore from '../store/configureStore'; @@ -13,13 +15,16 @@ }; }); -const store = configureStore(); +const history = createMemoryHistory(); +const { store } = configureStore(history); it('renders without crashing', () => { const div = document.createElement('div'); ReactDOM.render( - + + + , div); });