-
Notifications
You must be signed in to change notification settings - Fork 24
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
Conversation
Init react testing library
useLastLocation Tests
withLastLocation tests
- 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
Pretty close to done. We had it at 100% at one point lol |
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
Done. 100% coverage and 100% React Testing Library. We also removed the Enzyme dependencies |
100% test coverage
@hinok It is ready for review.
|
@JacobMGEvans I will take a look today evening after work, many thanks! |
@hinok just a friendly reminder, this PR is ready 😄 |
@hinok any update on this? |
@JacobMGEvans Many thanks 👏👏👏👏👏👏 Merging. |
Read more about us: https://github.com/OpenSourceRaidGuild/tutorial-quest#hi-wave-welcome-to-the-open-source-raid-guild-crossed_swords
Our Discord server: https://discord.gg/JczjG8su
resolves #54