()
| 161 | }; |
| 162 | |
| 163 | const main = async () => { |
| 164 | // Connect to emulators if a `demo` environment is pulled |
| 165 | if (app.options.projectId.indexOf('demo-') == 0) { |
| 166 | connectFirestoreEmulator(db, '127.0.0.1', 8080); |
| 167 | connectAuthEmulator(auth, 'http://127.0.0.1:9099'); |
| 168 | } |
| 169 | |
| 170 | await signInWithAnonCredentials(); |
| 171 | await addMockRestaurants(generateMockRestaurants()); |
| 172 | }; |
| 173 | |
| 174 | main(); |
no test coverage detected