2
0
mirror of synced 2025-01-24 13:20:21 +00:00

[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

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 () => {