Giter VIP home page Giter VIP logo

Comments (4)

appsbytom avatar appsbytom commented on July 18, 2024 1

Released v0.10.0

from firestore-jest-mock.

appsbytom avatar appsbytom commented on July 18, 2024

I started to look into this but the way the query, document and collections work had me questioning if I was implementing it correctly so opening an issue to start a dialog

from firestore-jest-mock.

appsbytom avatar appsbytom commented on July 18, 2024

I have a PR for this which works for collections however a document does not, none of the other methods provided by a query work either. I expect this is as using queries such as limit or where on a document will not change the result however doc('characters/bob/family') can be used instead of a chain of collection('characters').doc('bob').collection('family') and queries like withConverter are used on single documents

from firestore-jest-mock.

sbatson5 avatar sbatson5 commented on July 18, 2024

Thanks for posting this. Another method I wasn't familiar with.

I see what you're saying about the differences. It took me a little digging through the documentation to find an example of the function being called on a doc directly:

https://github.com/firebase/firebase-js-sdk/blob/0dfef5dd58f961208e29e249f5e8f5a3e2908c88/packages/firestore/test/integration/api/batch_writes.test.ts#L354-L368

I think trying to reproduce this in one our tests can be a good jumping off point to get it working as expected.

from firestore-jest-mock.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.