The full error message:
Invariant Violation: Could not find \"store\" in either the context or props of \"Connect(Portfolio)\". Either wrap the root
Per the error message, you need to make sure that tests for a connected component can actually access a store instance. So, in your test code, you should also use , or . Or, you can export your plain Portfolio component separately, and test that, not the connected version.
See the Redux docs on testing for more info, as well as the articles on Redux testing approaches in my React/Redux links list.