Unable to test components ought to StatusBarManager.getHeight is not a function site in Expo Project #3524
Unanswered
SalahAdDin
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We are building a Tile using the Card component.
We write the unit test as follows:
When running it we get:
To fix it we try mocking the
StatusBarManager.getHeight
:But it does not work.
How do you guys test it?
Setup:
Beta Was this translation helpful? Give feedback.
All reactions