I got a question about the integration test. I have followed your approach but I cannot succeed in mounting nested connected components. I I dont see this error when I run this repo. (maybe it's due to an update of enzyme/mount ?)
After adding a new HOC to my reduxForm, I believe I lose access to the previous one, as seen in this error:
TypeError: Cannot read property 'displayName' of undefined
at getDisplayName (node_modules/redux-form/lib/util/getDisplayName.js:9:14)
at node_modules/redux-form/lib/createReduxForm.js:675:65
at Object.<anonymous> (containers/SignUpContainer.js:6:67)
at Object.<anonymous> (__test__/SignUp.test.js:10:24)
at Generator.next (<anonymous>)
at Promise (<anonymous>)
at Generator.next (<anonymous>)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:188:7)
@jpabbuehl Would you be willing to put your files into a small test repo so I can try running it? I haven't used dive myself but am willing to take a look.
Hi everyone,
I got a question about the integration test. I have followed your approach but I cannot succeed in mounting nested connected components. I I dont see this error when I run this repo. (maybe it's due to an update of enzyme/mount ?) After adding a new HOC to my reduxForm, I believe I lose access to the previous one, as seen in this error:
here's my component
here's my container
here's my test (jest+enzyme)
Done with react v16, redux v3.7.2, redux-form v7.1.2, material-ui v1.0.0-beta.20, jest v21.2.1, enzyme v3.1.1
i have tried unsuccessfully shallow(...).dive() as suggested here.
Thanks