verdnatura-chat/e2e/tests/init.js

26 lines
737 B
JavaScript
Raw Normal View History

2018-05-23 13:39:18 +00:00
const detox = require('detox');
const adapter = require('detox/runners/mocha/adapter');
const config = require('../../package.json').detox;
const { setup } = require('../helpers/data_setup');
2021-07-24 21:09:53 +00:00
const { prepareAndroid } = require('../helpers/platformFunctions');
2018-05-23 13:39:18 +00:00
before(async() => {
await Promise.all([setup(), detox.init(config, { launchApp: false })]);
2021-07-24 21:09:53 +00:00
await prepareAndroid(); // Make Android less flaky
// 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();
});