2018-03-23 13:40:07 +00:00
|
|
|
const detox = require('detox');
|
|
|
|
const config = require('../package.json').detox;
|
|
|
|
|
|
|
|
before(async () => {
|
|
|
|
await detox.init(config);
|
2018-04-16 17:39:01 +00:00
|
|
|
// needs to be called before any usage of firestore
|
|
|
|
await firebase.firestore().settings({ persistence: true });
|
|
|
|
await firebase.firestore().settings({ persistence: false });
|
2018-03-23 13:40:07 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
after(async () => {
|
2018-04-12 11:53:18 +00:00
|
|
|
console.log('Cleaning up...');
|
|
|
|
await TestHelpers.firestore.cleanup();
|
2018-03-23 13:40:07 +00:00
|
|
|
await detox.cleanup();
|
|
|
|
});
|