Open RezaRahmati opened 5 years ago
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
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?
console.log(typeof mockfirebase.ref);
object
Hi
I have below code in my test with jest
but I get
TypeError: mockfirebase.ref is not a function
Also when I
console.log(typeof mockfirebase.ref);
it will showobject
instead of function. What I am doing wrong?