32 lines
572 B
JavaScript
Executable File
32 lines
572 B
JavaScript
Executable File
const detox = require('detox');
|
|
const config = require('../package.json').detox;
|
|
|
|
global.sinon = require('sinon');
|
|
require('should-sinon');
|
|
global.should = require('should');
|
|
|
|
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;
|