Currently, we pass a ref to the Formik component explicitly. That ref is being assigned to FormikProps. We need a helper getFormikProps which accepts a ReactWrapper (provided by enzyme) pointing to Formik component, and return FormikProps.
The usage should be:
Currently, we pass a ref to the
Formik
component explicitly. That ref is being assigned toFormikProps
. We need a helpergetFormikProps
which accepts aReactWrapper
(provided byenzyme
) pointing toFormik
component, and returnFormikProps
. The usage should be:Ideas: Figure out how to get
value
from a context provider outside of its child tree.