/testing-cloud-firestore

Companion repository for the testing Cloud Firestore guide.

Primary LanguageTypeScript

Testing Cloud Firestore

Writing Cloud Firestore functions and security rules is relatively well documented and understood. Testing them, however, is not.

This repository was initially created as a companion to this article and has since been updated with the latest Cloud Firestore has to offer.

Quick setup

yarn global add firebase-tools@9.16.0

cd server
yarn install
yarn lint && yarn validate

Running the tests

The project-id used to cause a bunch of headaches for testing, but no longer! Check out this section of the guide for more details.

yarn test