So it appears that the test cases use submitButton.simulate('click') which does not actually submit the form. I found a fix to this ( see https://github.com/airbnb/enzyme/issues/308) to change the test cases to use form.simulate('submit'). Making change in test cases for review :)
So it appears that the test cases use
submitButton.simulate('click')
which does not actually submit the form. I found a fix to this ( see https://github.com/airbnb/enzyme/issues/308) to change the test cases to useform.simulate('submit')
. Making change in test cases for review :)