Answer the question
In order to leave comments, you need to log in
How to test a component that contains a component with Redux?
I need to write a test for a component Table
. But this component contains a component Row
that is connected to Redax via the connect hook. I can't just test Table:
TypeError: (0 , _reactRedux.connect) is not a function
and swearing at connect in a child component
Answer the question
In order to leave comments, you need to log in
Can you show the code of the component for which you are writing tests and the test itself?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question