Skip to content
New issue

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

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

Already on GitHub? # to your account

test: navigation bars #109

Merged
merged 3 commits into from
Apr 22, 2024
Merged

test: navigation bars #109

merged 3 commits into from
Apr 22, 2024

Conversation

Aidasvenc
Copy link
Collaborator

What I did

Tested both header and bottom tab bar components.

Bottom Tab Bar tests are a bit more subtle, since I could not mock navigation and did as suggested per react navigation docs best practices:

image

How I did it

used jest library for testing

How to verify it

run the tests with npm run test

Copy link

@Aidasvenc
Copy link
Collaborator Author

This will successfully close #110

Copy link
Collaborator

@GaelCondeLosada GaelCondeLosada left a comment

Choose a reason for hiding this comment

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

LGTM

@Aidasvenc Aidasvenc merged commit f7ec0b9 into main Apr 22, 2024
3 checks passed
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Go Back to unit tests of precedent PRs to get sufficient coverage (80%)
2 participants