-
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
🔥Tests broken out of the box (v6.3.4) #3391
Comments
Hello 👋, to help manage issues we automatically close stale issues.
|
Having the same issue here. Does anyone know anything about it? |
@nyenye i think this can help you: #3035 (comment) |
@PierreCapo Thanks mate! I did find a similar workaround, but yeah, I'll implement this one, which will be more convenient for testing. Thanks again! |
Closing - lets track on #3035. |
Issue
I've just followed the quick start setup guide to get a new project going. I went as far as adding my firebase credentials and then - without modifying any files - decided to try out the tests.
Running
yarn test
produces the following error:Some searching led me to a StackOverflow question about this error in general, and I modified one of the answers to whitelist
react-native
and@react-native-firebase
firebase modules so they'd be transformed by babel when running jest:package.json
I re-ran the tests and this time saw a different error:
I'm hoping this is simple user error, but I haven't done anything outside of what's in the tutorial 🤷♂️ It's worth noting that I don't see these issues when scaffolding a React Native app with
npx react-native init AwesomeProject
, nor if I scaffold a plain React Native app and then add react-native-firebase as described in the docsProject Files
Javascript
Click To Expand
package.json
:firebase.json
for react-native-firebase v6:# N/A
iOS
Click To Expand
ios/Podfile
:# not relevant - this is a node/jest issue
AppDelegate.m
:// N/A
Android
Click To Expand
Have you converted to AndroidX?
android/gradle.settings
jetifier=true
for Android compatibility?jetifier
for react-native compatibility?android/build.gradle
:// N/A
android/app/build.gradle
:// N/A
android/settings.gradle
:// N/A
MainApplication.java
:// N/A
AndroidManifest.xml
:<!-- N/A -->
Environment
Click To Expand
react-native info
output:react-native-firebase
version you're using that has this issue:e.g. 6.3.4
Firebase
module(s) you're using that has the issue:e.g. Instance ID
TypeScript
?N
The text was updated successfully, but these errors were encountered: