This integration test show how to integrate with Firebase Admin SDK.
WARNING: It is disabled by default as it needs the emulator authenticated with a valid account to run.
- Install the gcloud CLI following this guide
- Authenticate with your Google Account
$ gcloud auth login
- Install the Local Emulator Suite using this instructions
- Before running the integration tests, start the Local Emulator Suite using the following command:
$ firebase emulators:start --project demo-test-project-id
After that, the emulator will start in the default port, which the application is configured to connect to. Since it is configured using the demo-
prefix, all operations will be performed in the emulator environment only, without affecting any real projects. If needed, you will be able to use the Emulator UI at http://localhost:4000/auth.
- In order to have the Admin SDK connecting to the emulator, set the following environment variable:
$ export FIREBASE_AUTH_EMULATOR_HOST="localhost:9099"