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

React Testing Library Conversion #57

Merged
merged 22 commits into from
Aug 22, 2021
Merged

Conversation

JacobMGEvans
Copy link
Contributor

@JacobMGEvans JacobMGEvans commented Jun 8, 2021

@JacobMGEvans JacobMGEvans marked this pull request as draft June 8, 2021 14:21
@JacobMGEvans JacobMGEvans marked this pull request as ready for review June 18, 2021 03:53
@JacobMGEvans JacobMGEvans changed the title WIP: React Testing Library Conversion React Testing Library Conversion Jun 18, 2021
@JacobMGEvans JacobMGEvans marked this pull request as draft June 18, 2021 03:54
- merged with useLastLocation -> expected behavior from user
- removed Provider test file testing props and implementation details
- rerender possibly not refiring Provider
Co-authored-by: Braydon Hall
@JacobMGEvans
Copy link
Contributor Author

Pretty close to done. We had it at 100% at one point lol

JacobMGEvans and others added 5 commits June 28, 2021 00:06
Provider state bleeding into next test
setLastLocation was used previously
- Moved Provider tests into useLastLocation
- Tested lastLocation context Getter in rerendered test
using it to check context key & pathname as well as the hook
@JacobMGEvans
Copy link
Contributor Author

Done. 100% coverage and 100% React Testing Library. We also removed the Enzyme dependencies

@JacobMGEvans JacobMGEvans marked this pull request as ready for review June 30, 2021 03:39
@JacobMGEvans
Copy link
Contributor Author

@hinok It is ready for review.
Some test structure changes.

  • Moved Provider tests into useLastLocation()
  • Tested lastLocation context Getter in rerendered test
    using it to check context key & pathname as well as the hook

@hinok
Copy link
Owner

hinok commented Jun 30, 2021

@JacobMGEvans I will take a look today evening after work, many thanks!

@JacobMGEvans
Copy link
Contributor Author

@hinok just a friendly reminder, this PR is ready 😄

@joealden
Copy link
Contributor

@hinok any update on this?

@hinok
Copy link
Owner

hinok commented Aug 22, 2021

@JacobMGEvans Many thanks 👏👏👏👏👏👏 Merging.
I will do a small clean up later today.

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

Successfully merging this pull request may close these issues.

Converting the tests from Enzyme to Testing Library.
6 participants