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

21 lines
369 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();
});
Object.defineProperty(global, 'firebase', {
get() {
return bridge.module;
},
});