Closed LeMimit closed 2 years ago
@LeMimit Thanks for the report. Yes, it looks like wrap function is incompatible with AppCheck integration we've introduced. We will fix this in the next release.
@taeold Thanks for your answer. Looking forward the next release then !
Is there any sort of ETA for when this might be fixed? It's kind of got me blocked on some things. :-(
Sorry for the delays folks. I will try to get the new release by end of week.
This is available in v0.3.3!
Thanks a lot @taeold . I will update my dependencies 👍🏻
Version info
firebase-functions-test:
0.3.2
firebase-functions:
3.15.5
firebase-admin:
9.11.1
Test case
I would like to test a callable function which check if there is an
app
context because App check is activated on my project.The following function is called at the beginning of the callable function:
For now it is impossible to test my function because the
wrap
function fromfirebase-functions-test
do the following callIt is impossble to specify an
app
object.Steps to reproduce
context.app
is definedapp
object while calling a wrapped functionOptions object {"auth":{"uid":""},"app":{}} has invalid key "app"
Expected behavior
Be able to specify a fake
app
object to test a callable function when using App check.Actual behavior
Get an error while trying to specify a fake
app
object.