Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request: Mock QuerySnapshot.docChanges() method #72

Open
akapur99 opened this issue Sep 18, 2020 · 0 comments
Open

Request: Mock QuerySnapshot.docChanges() method #72

akapur99 opened this issue Sep 18, 2020 · 0 comments

Comments

@akapur99
Copy link

akapur99 commented Sep 18, 2020

Screenshot of issue

image
(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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant