Complete the code to start the Firebase emulator for Firestore.
firebase emulators:start --only [1]The command firebase emulators:start --only firestore starts the Firestore emulator.
Complete the code to run security rules tests using the Firebase emulator.
firebase emulators:exec --only [1] "npm test"
The firestore emulator is used to run security rules tests for Firestore.
Fix the error in the command to start the Firestore emulator with the correct port.
firebase emulators:start --only firestore --[1] 8080
The correct flag to specify the port is --port.
Fill both blanks to configure the Firestore emulator host and port in the Firebase config.
firebase.firestore().settings({ host: '[1]', ssl: false, port: [2] });Use localhost as the host and 8080 as the default Firestore emulator port.
Fill all three blanks to initialize the Firebase app with emulator settings for Firestore.
const app = initializeApp({ apiKey: '[1]', projectId: '[2]' }); const db = getFirestore(app); connectFirestoreEmulator(db, '[3]', 8080);Use a fake API key and demo project ID for emulator testing, and connect to Firestore emulator on localhost.