firestore-emulator/*-quickstart: TypeError: firebase.clearFirestoreData is not a function
katowulf opened this issue · 1 comments
katowulf commented
Doing a by-the-numbers clone, install, npm test of the emulator examples results in TypeError: firebase.clearFirestoreData is not a function
katowulf-macbookpro1:javascript-quickstart katowulf$ npm test
> cloud-firestore-emulator-javascript-quickstart@1.0.1 test /Users/katowulf/projects/quickstart-nodejs/firestore-emulator/javascript-quickstart
> FIREBASE_FIRESTORE_EMULATOR_ADDRESS='127.0.0.1:8080' mocha
(node:3160) DeprecationWarning: grpc.load: Use the @grpc/proto-loader module with grpc.loadPackageDefinition instead
My app
1) "before each" hook for "require users to log in before creating a profile"
View rule coverage information at http://localhost:8080/emulator/v1/projects/firestore-emulator-example:ruleCoverage.html
0 passing (630ms)
1 failing
1) "before each" hook for "require users to log in before creating a profile":
TypeError: firebase.clearFirestoreData is not a function
at Context.beforeEach (test/test.js:33:18)