Closed dackers86 closed 4 years ago
cc @laurenzlong for review - thanks!
Could you also add "resource" to the EventContextOptions type? https://github.com/firebase/firebase-functions-test/blob/master/src/main.ts#L28
@laurenzlong Added resource types. Thanks
@dackers86 this has been published in v0.2.1
Description
As part of trying to test the extensions/firestore-bigquery-export module. We need to introduce the ability to set the resource key values (the types already support this, just this change is missing). Specifically, this line will fail when using the function wrap helper with
cannot read property 'name' of undefined
. This change allows us to specify the resource values needed for the wrapped cloud function trigger.Code sample