Skip to content

FR: make node process terminateable after calling app.delete() #1514

Open
@klausbayrhammer

Description

@klausbayrhammer

[REQUIRED] Describe your environment

  • Operating System version: MacOS 10.13.6
  • Browser version: nodejs v8.11.2
  • Firebase SDK version: firebase@^5.8.0:
  • Firebase Product: auth

[REQUIRED] Describe the problem

This is related to #1487. When using firebase together with firebase-auth you need to call firebase.app().delete() and firebase.auth().signOut() so the node process can terminate properly (which is required if you e.g. use firebase with auth for tests in a CI environment).
This is not a bug per se, but I think it would be a nice feature if firebase.app().delete() would take care of cleaning up everything (or at least the things that prevent the node process from being terminated)

Steps to reproduce:

Relevant Code:

describe('', () => {
    let firebaseApp;

    before(async () => {
        firebaseApp = await firebase.initializeApp(config);
        return firebaseApp.auth().signInWithEmailAndPassword(mail, password);
    });

    after(() => {
        firebaseApp.auth().signOut(); // this is necessary so the process terminates
        firebaseApp.delete();
    });

    it('....', () => {
    });
});

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