-
-
Notifications
You must be signed in to change notification settings - Fork 245
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
Migrate core tests from Enzyme to React Testing Library #1193
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1193 +/- ##
==========================================
- Coverage 98.39% 98.31% -0.08%
==========================================
Files 231 231
Lines 3803 3803
Branches 998 998
==========================================
- Hits 3742 3739 -3
- Misses 6 8 +2
- Partials 55 56 +1
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have skipped ValidatedForm
for now, as there are already quite a few comments.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Last round. Also, if you could look into the dip in coverage, that'd be great.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, let's get this one closed. We'll improve tests later.
TASK:
TODO:
<ValidateForm />
tests.describe
in<ValidateForm />
tests.<AutoForm />
as in<ValidateForm />
.context
from jest.fn (last call argument)render
rerenderWithProps fn with React.cloneElement.<BaseForm />
,connectedFields
,<QuickForm />