Skip to content

mockfirebase ref is not a function #151

Open
@RezaRahmati

Description

@RezaRahmati

Hi

I have below code in my test with jest

    import {MockFirebase} from 'firebase-mock';

    mockfirebase = new MockFirebase();
    mockfirebase.autoFlush();
    const ref = mockfirebase.ref('test');

but I get TypeError: mockfirebase.ref is not a function

Also when I console.log(typeof mockfirebase.ref); it will show object instead of function. What I am doing wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions