GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — quickstart-testing/unit-test-security-rules-v9 at master · inlined/quickstart-testing

Expand file tree

/

unit-test-security-rules-v9

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
 
 
/

unit-test-security-rules-v9

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
test
test
 
 
.firebaserc
.firebaserc
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
babel.config.js
babel.config.js
 
 
database.rules.json
database.rules.json
 
 
firebase.json
firebase.json
 
 
firestore.rules
firestore.rules
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
storage.rules
storage.rules
 
 

README.md

Outline

Unit Test Security Rules with JS SDK v9

This sample demonstrates how to write unit tests for security rules using the Firebase Emulator Suite, with latest modular JS SDK v9 and @firebase/rules-unit-testing v2.

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"
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.