Skip to content

fix: eslint jest/no-if in rerender test #465

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

Merged

Conversation

rvdkooy
Copy link
Contributor

@rvdkooy rvdkooy commented Aug 24, 2019

What:
This PR fixes issue: #464 by writing the test slightly different so no if statement is needed anymore

Why:
Validation step is currently failing because of the eslint rule: jest/no-if.

How:
Not doing a querySelector and checking if it found the initial input element anymore, but actually creating these elements so no queryselector is needed anymore

Checklist:

  • Documentation added to the
    docs site
  • Tests
  • Typescript definitions updated
  • Ready to be merged

Copy link
Member

@kentcdodds kentcdodds left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great. Thank you!

@kentcdodds kentcdodds merged commit 7a7647f into testing-library:master Aug 24, 2019
@kentcdodds
Copy link
Member

@all-contributors please add @rvdkooy for tests

@allcontributors
Copy link
Contributor

@kentcdodds

I've put up a pull request to add @rvdkooy! 🎉

@rvdkooy rvdkooy deleted the pr/fix_eslint_error_rerender_tests branch August 25, 2019 13:37
@kentcdodds
Copy link
Member

🎉 This PR is included in version 9.1.4 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants