Skip to content

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

@wendysaid

Description

@wendysaid

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions