Blog post: https://scottsauber.com/2019/05/25/testing-formik-with-react-testing-library/
Example code showing how to properly test with React, react-testing-library, and Formik.
src/InputField.js
is the Formik component under test
src/InputFieldFailing.spec.js
is how to incorrectly test Formik validation
src/InputFieldPassing.spec.js
is how to correctly test Formik validation