Skip to content

Commit

Permalink
test: use emulator 2nd DB
Browse files Browse the repository at this point in the history
  • Loading branch information
russellwheatley committed Aug 6, 2024
1 parent a947521 commit 412c470
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ function loadTests(_) {
firebase.auth().useEmulator('http://localhost:9099');
if (platformSupportedModules.includes('firestore')) {
firebase.firestore().useEmulator('localhost', 8080);
firebase.app().firestore('second-rnfb').useEmulator('localhost', 8080);
// Firestore caches documents locally (a great feature!) and that confounds tests
// as data from previous runs pollutes following runs until re-install the app. Clear it.
if (!Platform.other) {
Expand Down

0 comments on commit 412c470

Please sign in to comment.