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.
yarn global add firebase-tools@9.16.0
cd server
yarn install
yarn lint && yarn validate
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