-
-
Notifications
You must be signed in to change notification settings - Fork 156
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
BarCodeScanScreen tests #340
Comments
Can I work on this issue? |
@Kathuria Did you end up picking this issue up? |
You can go for it, the comment is 21 days old and no pr has been done since then. I've pushed some changes so make sure to pull main first ;) |
@PierreBresson Any chance you have experience testing useEffect/useState functionality? Not seeing any relevant tests in the code base and having a pretty difficult time figuring out how to trigger a component state update when user permission is granted for the camera. This is the approach I'm taking right now:
However, the rendered tree still appears to be that of the
Will continue working for a solution but any help is appreciated! (: |
@ijdershem Unfortunately, I don't have a big experience with hooks testing, but you might have to mock |
@PierreBresson No worries, thank you for the direction; I will give this a shot tonight! |
Summary
Do different tests for
BarCodeScreen
insideBarCodeScreen.test.tsx
matching the different scenarioThe text was updated successfully, but these errors were encountered: