获取 Cloud Functions url 以使用模拟器进行单元测试

Fre*_*dyC 7 unit-testing firebase google-cloud-functions google-cloud-firestore firebase-cli

我有几个与 Cloud Firestore 交互的 Cloud Functions。我已经成功启动了两个模拟器(firebase emulators:start --only functions,firestore)并且我运行了请求并且它起作用了。然而,模拟函数的 URL 相当长......

http://localhost:5001/my-app/us-central1/myFunc

我想要么获得一个完整的网址,要么以某种方式组装它。my-app理论上可以从指定.firebaserc默认值的位置读取。但是,我不确定港口或地区。