To test a component using withRouter as a higher order component, you need to pass the WrappedComponent suffix into what you want to test:
expect(renderer.created(<MyComponent.WrappedComponent />).toJSON()).toMatchSnapshot()
Change the expect, snapshot, etc, to match your needs.