Closed karanbht507 closed 4 years ago
The issue tracker here on GitHub is reserved for bug reports and feature requests. For usage questions (which is what I believe this is), please use Stack Overflow or Reactiflux where there are a lot more people ready to help you out. Thanks!
Please feel free to reply if you think this issue was closed prematurely.
Hi I am using jest and enzyme for unit testing and in this when I run test cases getting this error in login container. Login container is connected with connect.
Here is the complete error- TypeError: (0 , _reactRedux.connect) is not a function
And here is the test file
import { shallow, configure } from 'enzyme'; import Adapter from 'enzyme-adapter-react-16'; configure({ adapter: new Adapter() });
describe('Login component tests', () => { let wrapper = shallow( <LoginContainer.WrappedComponent userLogin={{ status: '', message: '' }} />, ); })
Thanks for help in advance