react-native-firebase/tests-new/e2e/init.js

32 lines
572 B
JavaScript
Raw Normal View History

2018-03-23 13:40:07 +00:00
const detox = require('detox');
const config = require('../package.json').detox;
2018-03-24 06:40:55 +00:00
2018-03-24 06:31:04 +00:00
global.sinon = require('sinon');
require('should-sinon');
global.should = require('should');
2018-03-23 13:40:07 +00:00
before(async () => {
await detox.init(config);
});
after(async () => {
await detox.cleanup();
});
// bridge.beforeContextReset = () => {
// console.log('hello');
// };
Object.defineProperty(global, 'firebase', {
get() {
return bridge.module;
},
set() {
// do nothing
},
});
// Object.defineProperty(global, 'firebase', { value: undefined });
// delete global.firebase;