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

Jest, mockDoc validate collection type (v0.18.0) #146

Open
wendysaid opened this issue Nov 22, 2022 · 0 comments
Open

Jest, mockDoc validate collection type (v0.18.0) #146

wendysaid opened this issue Nov 22, 2022 · 0 comments

Comments

@wendysaid
Copy link

Summary

Hi!
I have an issue with validating of collection type that doc method was called.
Is any way to get info from mockDoc about collection types that been triggered?

For example:
I get doc from collection named users so then I testing function I should know from mockDoc that it has been called from users collection exactly.
Now I know how many times function has been called or what the arguments have been used.

Relevant information

Maybe I can get a context of called function from mockDoc to someway define the collection type?

Environment (if relevant)

I'm using jest v28.1.3 and firestore-jest-mock 0.18.0

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