24 lines
616 B
JavaScript
24 lines
616 B
JavaScript
const detox = require('detox');
|
|
const config = require('../../package.json').detox;
|
|
const dataSetup = require('../helpers/data_setup')
|
|
const adapter = require('detox/runners/mocha/adapter');
|
|
|
|
before(async() => {
|
|
await Promise.all([dataSetup(), detox.init(config, { launchApp: false })])
|
|
//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);
|
|
});
|
|
|
|
after(async() => {
|
|
await detox.cleanup();
|
|
});
|