react-native-firebase/bridge/e2e/init.js

16 lines
438 B
JavaScript
Raw Normal View History

2018-03-23 13:40:07 +00:00
const detox = require('detox');
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 });
2018-03-23 13:40:07 +00:00
});
after(async () => {
console.log('Cleaning up...');
await TestHelpers.firestore.cleanup();
2018-03-23 13:40:07 +00:00
await detox.cleanup();
});