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();
|
|
|
|
});
|
2018-03-25 01:23:46 +00:00
|
|
|
|
2018-03-25 05:52:30 +00:00
|
|
|
Object.defineProperty(global, 'firebase', {
|
|
|
|
get() {
|
|
|
|
return bridge.module;
|
|
|
|
},
|
|
|
|
});
|