Open
Description
I am attempting to follow the tutorial provided here:
https://firebase.google.com/docs/functions/unit-testing#online-mode
This code block defines where the firebase services are found on the network, as well as what auth creds to use:
// At the top of test/index.test.js
const test = require('firebase-functions-test')({
databaseURL: 'https://my-project.firebaseio.com',
storageBucket: 'my-project.appspot.com',
projectId: 'my-project',
}, 'path/to/serviceAccountKey.json');
We are trying to write our tests to interact with firebase emulator services. For example, we wish for the test suite to interact with our local emulated version of firestore.
We have been banging our heads trying to get this suite to redirect to local services without success. I would sincerely appreciate any guidance.