Nested components testing with Enzyme inside of React & Redux
<p>I have a component <code>SampleComponent</code> that mounts another "connected component" (i.e. <code>container</code>). When I try to test <code>SampleComponent</code> by <code>mount</code>ing (since I need the <code>componentDidMount</code>), I get the error:</p>

<blockquote>
  <p>Invariant Violation: Could not find "store" in either the context or
  props of "Connect(ContainerComponent)". Either wrap the root component
  in a , or explicitly pass "store" as a prop to
  "Connect(ContainerComponent)".</p>
</blockquote>

<p>What's the best way of testing this?</p>