From 710f2ef44f7329004da4226af0b95872d064961a Mon Sep 17 00:00:00 2001 From: Salakar Date: Mon, 16 Apr 2018 18:39:01 +0100 Subject: [PATCH] [tests][firestore] add settings() call to before() hook - needs calling before any firestore usage --- bridge/e2e/init.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bridge/e2e/init.js b/bridge/e2e/init.js index f7c8dce9..bcdb3519 100755 --- a/bridge/e2e/init.js +++ b/bridge/e2e/init.js @@ -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 () => {