You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When calling a wrapped function set to a Gen 2 Firestore trigger, the function will receive the value for the exampleDocumentSnapshot, rather than the actual value provided by the test:
Version info
firebase-functions-test: 5.0.1
firebase-functions: 3.3.0
firebase-admin: 12.2.0
Test case
When calling a wrapped function set to a Gen 2 Firestore trigger, the function will receive the value for the
exampleDocumentSnapshot
, rather than the actual value provided by the test:Steps to reproduce
I've created a sample project with the issue at https://github.com/MichaelJBerk/FirestoreFunctionsTriggerBug. View the readme for details
Expected behavior
event.data.after.data()
should contain the data provided in the testActual behavior
event.data.after.data()
contains theexampleDocumentSnapshot
value ({ aString: 'foo', anObject: { a: 'qux', b: 'faz' }, aNumber: 7 }
)The text was updated successfully, but these errors were encountered: