1.0.0 • Published 2 years ago
@react-native-firebase/private-tests-helpers v1.0.0
Various helpers and data samples used for React Native Firebase testing.
License
Commercial use, Distribution, Modification, Patent use and Private use is NOT permitted except for usage by Invertase and it's React Native Firebase product only.
Specifically; you are NOT permitted to use this code in any form except in circumstances where it's usage is only for the benefit of, and contributing to, the React Native Firebase product by Invertase, or; you have been permitted to do so in writing by Invertase.
Developer Notes
- when you run
yarnin the main directory, it will install all the packages you need for development, but it will also run the lifecycle scriptpostinstallwhich will fail since it expects to be run only in@react-native-firebase/tests. That's okay. - you will need to run
yarn buildevery time you change source in the main package before testing it - You may prove to yourself that the package is working by looking at
android/app/google-services.jsonandios/GoogleServices-Info.plistintests/yarn3after runningyarnthere - when you run
yarnintests/yarn3to validate changes, it may fail on a malloc error because it's trying to pack up the wholenode_modulesfolder from the main package in../../. Delete thenode_modulesup there and re-run the test, it should work. A quick investigation of thelink:andportal:options instead offile:had unsatisfactory results as it did not run thepostinstallscript every time. - I believe the
context.TestingApimethod is unused (it is not used in@react-native-firebase/tests) but it is unknown if there are other packages using this one, so it remains