[tests][firestore] add settings() call to before() hook - needs calling before any firestore usage

This commit is contained in:
Salakar 2018-04-16 18:39:01 +01:00
parent 09a2db6267
commit 710f2ef44f
1 changed files with 3 additions and 0 deletions

View File

@ -3,6 +3,9 @@ const config = require('../package.json').detox;
before(async () => {
await detox.init(config);
// needs to be called before any usage of firestore
await firebase.firestore().settings({ persistence: true });
await firebase.firestore().settings({ persistence: false });
});
after(async () => {