mocha를 사용해서 firebase-admin api들을 테스트하는 도중에 mocha가 종료되지 않는 현상이 발견되었는데, 아래와 같이 이슈가 보고 되었고, 해결방법은 app.delete()를 호출해주면 됩니다.
Process not terminated. · Issue #91 · firebase/firebase-admin-node
[READ] Step 1: Are you in the right place? For issues or feature requests related to the code in this repository file a Github issue. If this is a feature request make sure the issue title starts w...
github.com
it('test firebase admin ... ', () => {
// init db
var db = admin.database();
//
// test here
//
// NOTE finish otherwise it hangs.
db.app.delete();
});