Closed garrettg123 closed 4 years ago
Talk about support for a paid product :P
Sorry for the late response! This is still an experimental package (that's why the version number starts with 0) But that said, waiting multiple months is still not right, so apologies for that.
Looking at your code, you have
try {
console.log('logged')
await firebaseAdmin
.firestore()
.doc('tests/test')
.set({ foo: 'bar' })
console.log('never logged')
return response.send()
}
You have a try
but not a catch
so if there were any errors, they wouldn't be logged.
Version info
firebase-functions-test: 0.1.6
firebase-functions: 3.2.0
firebase-admin: 8.2.0
Test case
Steps to reproduce
jest
orfirebase emulators:exec 'jest'
Expected behavior
Test should pass
Actual behavior
Test doesn't pass and no error is logged.