Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

The steps to reset the Firestore emulator in an integration test are:

  1. Remove any existing data from the emulator by deleting the emulator data directory.
  2. Restart the emulator.
  3. Initialize the Firestore instance in the integration test.
  4. Load any required test data into the Firestore instance.

To delete the emulator data directory, you can run the following commands:

gcloud beta emulators firestore stop
rm -rf ~/.config/gcloud/emulators/firestore
gcloud beta emulators firestore start

Then, you can initialize the Firestore instance and load test data as needed in your integration test code.