[tests][firestore] add settings() call to before() hook - needs calling before any firestore usage
This commit is contained in:
parent
09a2db6267
commit
710f2ef44f
|
@ -3,6 +3,9 @@ const config = require('../package.json').detox;
|
||||||
|
|
||||||
before(async () => {
|
before(async () => {
|
||||||
await detox.init(config);
|
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 () => {
|
after(async () => {
|
||||||
|
|
Loading…
Reference in New Issue