Should work the same way as with a DocumentReference from firebase-admin.
Actual behavior
Throws error
Error: Cannot encode [object Object]to a Firestore Value. Local testing does not yet support Firestore geo points.
at encodeHelper (/node_modules/firebase-functions-test/lib/providers/firestore.js:165:15)
at /node_modules/lodash/lodash.js:13401:38
at /node_modules/lodash/lodash.js:4905:15
at baseForOwn (node_modules/lodash/lodash.js:2990:24)
at Function.mapValues (/node_modules/lodash/lodash.js:13400:7)
at objectToValueProto (/node_modules/firebase-functions-test/lib/providers/firestore.js:168:21)
at Object.makeDocumentSnapshot (/node_modules/firebase-functions-test/lib/providers/firestore.js:49:17)
at Object.<anonymous> (/test/test2/test.js:22:16)
at Module._compile (internal/modules/cjs/loader.js:688:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
And it outputs DocumentRefrence of @firebase/testing as the DocumentReference is initialized with @firebase/testing
This error is resolved in issue #24, but only for DocumentReference and Timestamp initialized with firebase-admin.
Version info
firebase-functions-test: 0.1.6
firebase-functions: 3.2.0
firebase-admin: 8.3.0
@firebase/testing: 0.11.8
firebase-tools: 7.2.1
Test case
Steps to reproduce
Expected behavior
Should work the same way as with a DocumentReference from firebase-admin.
Actual behavior
Throws error
And it outputs DocumentRefrence of @firebase/testing as the DocumentReference is initialized with @firebase/testing
This error is resolved in issue #24, but only for DocumentReference and Timestamp initialized with firebase-admin.