-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
feat(auth, emulator): implement useEmulator with jest + e2e testing #4552
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/invertase/react-native-firebase/kok0ug41t |
Codecov Report
@@ Coverage Diff @@
## master #4552 +/- ##
==========================================
+ Coverage 69.10% 77.15% +8.05%
==========================================
Files 109 109
Lines 3699 3710 +11
Branches 276 346 +70
==========================================
+ Hits 2556 2862 +306
+ Misses 1041 747 -294
+ Partials 102 101 -1 |
4713832
to
46cba37
Compare
46cba37
to
e1a91c6
Compare
BREAKING CHANGE: switch to setScreenView, logPurchase, logViewPromotion, logRefund as needed
Native implementation is not complete in this commit, but that is next
This is related to a #4487 - attempting to re-login with credential after anonymous user signs in with apple sign-in on android
…n CI This was flaky because the app startup time is so slow it frequently times out the test Runs fine locally
Found at least 2 unexpected real issues in RNFB along the way Found at least 3 Firebase internal errors marked with FIXME that need upstream logging Auth emulator is great, no API limits and now we can cover phone auth and email verify/signin flow in testing
e1a91c6
to
4c68841
Compare
…om anon user (matches iOS) (#5694) Description When doing "linkWithCredential" in Android and the users exists relogin with this new user instead of launch exception Error: [auth/credential-already-in-use] This credential is already associated with a different user account. Related PR #4487 and PR #4552
Description
Implement
firebase.auth().useEmulator
I'm about to release a major version anyway so I included the removal of deprecated analytics methods
I intend to rebase on to master so these will stay as separate commits and will be picked up correctly for release
It should be reviewed commit by commit for clarity
Phone flow and Email OOB code verification via new emulator APIs is implemented, increasing general test cover vs prior state
Related issues
#4461
#4463
#4510
#4551
Checklist
Android
iOS
e2e
tests added or updated inpackages/\*\*/e2e
jest
tests added or updated inpackages/\*\*/__tests__
Test Plan
This enabled me to turn on auth e2e testing again, and I implemented jest tests even though they were really difficult because of the native mocking need
Think
react-native-firebase
is great? Please consider supporting the project with any of the below:React Native Firebase
andInvertase
on Twitter