2018-05-23 13:39:18 +00:00
|
|
|
const detox = require('detox');
|
2020-07-15 16:28:34 +00:00
|
|
|
const config = require('../../package.json').detox;
|
2020-11-30 20:00:31 +00:00
|
|
|
const { setup } = require('../helpers/data_setup')
|
2020-07-22 16:32:21 +00:00
|
|
|
const adapter = require('detox/runners/mocha/adapter');
|
2018-05-23 13:39:18 +00:00
|
|
|
|
|
|
|
before(async() => {
|
2020-11-30 20:00:31 +00:00
|
|
|
await Promise.all([setup(), detox.init(config, { launchApp: false })])
|
2020-07-22 16:32:21 +00:00
|
|
|
//await dataSetup()
|
|
|
|
//await detox.init(config, { launchApp: false });
|
|
|
|
//await device.launchApp({ permissions: { notifications: 'YES' } });
|
|
|
|
});
|
|
|
|
|
|
|
|
beforeEach(async function() {
|
|
|
|
await adapter.beforeEach(this);
|
|
|
|
});
|
|
|
|
|
|
|
|
afterEach(async function() {
|
|
|
|
await adapter.afterEach(this);
|
2018-05-23 13:39:18 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
after(async() => {
|
|
|
|
await detox.cleanup();
|
|
|
|
});
|