using enzyme.mount().setProps with a react-redux Provider : <p>I have a test which is setting props, to observe some changes in the component. The only complication is that I'm wrapping the rendered element in a <code>&lt;Provider&gt;</code> because there are some connected components further down the tree.</p>

<p>I'm rendering via</p>

<pre><code>const el = () =&gt; &lt;MyComponent prop1={ prop1 } /&gt;;
const wrapper = mount(&lt;Provider store={store}&gt;{ el() }&lt;/Provider&gt;);
</code></pre>

<p>I'm then trying to observe some changes by using the following:</p>

<pre><code>wrapper.setProps({ /* new props */ });
// expect()s etc.
</code></pre>

<p>The problem is that <code>setProps()</code> is not setting the props properly on the wrapped component. I assume that this is because <code>&lt;Provider&gt;</code> is not actually passing props through as it's not an HoC. Is there a better way to test this than just changing the locally scoped prop variables and re-rendering?</p>
