0

As Document says:

Initialize SDK in online mode (recommended)
If you would like to write tests that interact with a test project, you need to supply the project config values that are needed for initializing the app through firebase-admin, and the path to a service account key file.

My understand is if you initialized "firebase-functions-test" package with parameters,

const test = require('firebase-functions-test')({
  databaseURL: 'https://my-project.firebaseio.com',
  storageBucket: 'my-project.appspot.com',
  projectId: 'my-project',
}, 'path/to/serviceAccountKey.json');

Then you can initialize Admin SDK without parameters,

admin.initializeApp()

Because there are already default configuration created in local test environment through "firebase-functions-test"

Just want to confirm my understand is correct, Because I tried everything to achive this and just not working.

flutroid
  • 1,166
  • 8
  • 24

0 Answers0