The Firebase Emulators make it easier to fully validate your app's behavior and verify your Firebase Security Rules configurations. Use the Firebase Emulators to run and automate unit tests in a local environment.
Install the Firebase Emulators
To install the Firebase Emulators, use the Firebase CLI and follow the steps below.
Run the following command(s) to install each emulator:
Start the emulator using the following command. The emulator runs during all your tests.
firebase serve --only firestore
firebase serve --only database