https://github.com/danahartweg/testing-cloud-firestore
Companion repository for the testing Cloud Firestore guide.
https://github.com/danahartweg/testing-cloud-firestore
cloud-firestore cloud-functions testing-cloud-firestore
Last synced: 5 months ago
JSON representation
Companion repository for the testing Cloud Firestore guide.
- Host: GitHub
- URL: https://github.com/danahartweg/testing-cloud-firestore
- Owner: danahartweg
- Created: 2019-10-19T00:26:39.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-07T04:22:56.000Z (over 2 years ago)
- Last Synced: 2025-05-05T00:56:48.864Z (5 months ago)
- Topics: cloud-firestore, cloud-functions, testing-cloud-firestore
- Language: TypeScript
- Homepage: https://medium.com/@danahartweg/testing-guide-for-cloud-firestore-functions-and-security-rules-39d9f3c92d99
- Size: 746 KB
- Stars: 21
- Watchers: 1
- Forks: 6
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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](https://medium.com/@danahartweg/testing-guide-for-cloud-firestore-functions-and-security-rules-39d9f3c92d99) and has since [been updated](https://medium.com/geekculture/updated-cloud-firestore-testing-guide-ce146f2b312) with the latest Cloud Firestore has to offer.
## Quick setup
```bash
yarn global add firebase-tools@9.16.0cd 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](https://medium.com/geekculture/updated-cloud-firestore-testing-guide-ce146f2b312#c512) of the guide for more details.```bash
yarn test
```