Skip to content

Online mode redirected to emulators #76

Description

@melchoir55

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions