Open akapur99 opened 4 years ago
(Code was copied much straightup from firebase docs)
When running firestore.collection('x').onSnapshot (querySnapshot) => {querySnapshot.docChanges().forEach( ... which is present here https://googleapis.dev/nodejs/firestore/latest/QuerySnapshot.html#docChanges I encounter an error saying an error saying the method isn't present.
firestore.collection('x').onSnapshot (querySnapshot) => {querySnapshot.docChanges().forEach( ...
Was wondering if anyone has been able to mock the docChanges() method in QuerySnapshot? Or if there's a workaround for now
Screenshot of issue
(Code was copied much straightup from firebase docs)
Description
When running
firestore.collection('x').onSnapshot (querySnapshot) => {querySnapshot.docChanges().forEach( ...
which is present here https://googleapis.dev/nodejs/firestore/latest/QuerySnapshot.html#docChanges I encounter an error saying an error saying the method isn't present.Was wondering if anyone has been able to mock the docChanges() method in QuerySnapshot? Or if there's a workaround for now