Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
23 lines (15 loc) · 536 Bytes

File metadata and controls

23 lines (15 loc) · 536 Bytes
Copy raw file
Download raw file
Outline
Edit and raw actions

Unit Test Security Rules

This sample demonstrates how to write unit tests for security rules using the Firebase Emulator Suite.

Setup

To install the dependencies for this sample run npm install inside this directory. You will also need the Firebase CLI.

Run

To run the Realtime Database tests:

firebase emulators:exec --only database "npm run test-database"

To run the Cloud Firestore tests:

firebase emulators:exec --only firestore "npm run test-firestore"
Morty Proxy This is a proxified and sanitized view of the page, visit original site.