Introducing detox
This commit is contained in:
+19
@@ -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();
|
||||
});
|
||||
Reference in New Issue
Block a user