testing-cloud-firestore icon indicating copy to clipboard operation
testing-cloud-firestore copied to clipboard

Companion repository for the testing Cloud Firestore guide.

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 [email protected]

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