Introducing detox

This commit is contained in:
Sofiya Tepikin
2019-07-21 15:58:12 +02:00
parent 888be9531d
commit 7e807dba7f
11 changed files with 680 additions and 35 deletions
+19
View File
@@ -0,0 +1,19 @@
const detox = require('detox');
const config = require('../package.json').detox;
const adapter = require('detox/runners/mocha/adapter');
before(async () => {
await detox.init(config);
});
beforeEach(async function () {
await adapter.beforeEach(this);
});
afterEach(async function () {
await adapter.afterEach(this);
});
after(async () => {
await detox.cleanup();
});