mikkopaderes / ember-cloud-firestore-adapter

Unofficial Ember Data Adapter and Serializer for Cloud Firestore
MIT License
69 stars 17 forks source link

Tests are failing because of "a problem initialising Firebase" #267

Closed roomman closed 8 months ago

roomman commented 1 year ago

Describe the bug Since the most recent update (to 3.1.0) I am seeing the following bug when running ember tests with QUnit:

Promise rejected before "it renders": There was a problem with initializing Firebase. Check if you've configured the addon properly. | Error: FirebaseError: Firebase: Error (auth/emulator-config-failed).@ 3 ms
Source:     
Error: There was a problem with initializing Firebase. Check if you've configured the addon properly. | Error: FirebaseError: Firebase: Error (auth/emulator-config-failed).
    at Object.initialize (http://localhost:7357/assets/chunk.10876ffe994b39187317.js:77035:13)
    at http://localhost:7357/assets/vendor.js:26958:21
    at Vertices.each (http://localhost:7357/assets/vendor.js:57181:9)
    at Vertices.walk (http://localhost:7357/assets/vendor.js:57095:12)
    at DAG.each (http://localhost:7357/assets/vendor.js:57025:22)
    at DAG.topsort (http://localhost:7357/assets/vendor.js:57033:12)
    at App._runInitializer (http://localhost:7357/assets/vendor.js:26974:13)
    at App.runInstanceInitializers (http://localhost:7357/assets/vendor.js:26956:12)
    at ApplicationInstance._bootSync (http://localhost:7357/assets/vendor.js:23333:24)
    at http://localhost:7357/assets/vendor.js:27339:22

I've not changed anything about the way the addon is configured. I have debugged into the setupModularInstance in the instance initializer and I can't see any issues. Everything going into setupAuth looks good but then a promise is rejected somewhere under the hood.

Has anyone else seen this and can you steer me in the right direction, please? 🙏🏼