Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor tests #1087

Merged
merged 24 commits into from
Nov 12, 2018
Merged

Refactor tests #1087

merged 24 commits into from
Nov 12, 2018

Conversation

jaredpalmer
Copy link
Owner

@jaredpalmer jaredpalmer commented Nov 6, 2018

In order to safely finish #1005 (v2) and #1063, we really need to make sure the test suite is sound. It's been kind of rotting since 0.8 -> 0.9 when we introduced the render prop. Prior to that, enzyme was the only way to test the hoc.

Goals

  • Replace airbnb/enzyme with react-testing-library (Replace enzyme with react-testing-library #1088)
  • Remove all event simulations outside of tests for handleSubmit, handleReset, handleBlur, and handleChange
  • Remove/unify duplicative tests between withFormik() and <Formik /> (with factory)
  • Remove/unify test suite for <Field> and <FastField> (with factory)

@jaredpalmer jaredpalmer merged commit 6a1f982 into master Nov 12, 2018
@jaredpalmer jaredpalmer deleted the react-testing-library branch November 12, 2018 20:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants