title: Jest enzyme shallow test is not rendering all elements of the React component
body: <p>I am writing a jest enzyme test as below:</p>
  
  <pre><code>import React from 'react';
  import ManageDrugTermPage from '../js/manageDrugTermPage.jsx';
  import toJson from 'enzyme-to-json';
  describe('manage drug term page test suite', () =&gt; {
  
   it('snapshot test', () =&gt; {
      const setRouteLeaveHook =jest.fn();
      let wrapper = shallow(
          &lt;ManageDrugTermPage params={{id : 25, router: setRouteLeaveHook}}/&gt;
      );
      expect(toJson(wrapper)).toMatchSnapshot();
  })
  })
  </code></pre>
  
  <p>I want to see the details of ManageDrugTermPage in the snapshot, but snapshot is only displaying: </p>
  
  <pre><code> exports[`manage drug term page test suites snapshot test 1`] = `
      &lt;ManageDrugTermPage
        params={
          Object {
            "id": 25,
            "router": [Function],
          }
        }
      /&gt;
      `;
  </code></pre>
  
  <p>How can I render the ManageDrugTermPage in the snapshot? I dont want to use renderer.create but want to do it through enzyme.</p>