firebase-mock icon indicating copy to clipboard operation
firebase-mock copied to clipboard

what is MockFirebase.override();?

Open stefdelec opened this issue 4 years ago • 1 comments

in your tutorial you are saying to do MockFirebase.override(); but I can not find anywhere in the doc what is this function.

Your library seems great, but very very hard to understand how it works.

stefdelec avatar May 09 '20 13:05 stefdelec

Actually, it's documented here.

When Firebase is used in an environment where window.Firebase is expected to exist, MockFirebase.override() will replace that so you can run your tests.

lesmo avatar May 12 '20 15:05 lesmo