19 lines
No EOL
398 B
JavaScript
19 lines
No EOL
398 B
JavaScript
const detox = require('detox');
|
|
const config = require('../package.json').detox;
|
|
const adapter = require('detox/runners/jest/adapter');
|
|
|
|
jest.setTimeout(120000);
|
|
jasmine.getEnv().addReporter(adapter);
|
|
|
|
beforeAll(async () => {
|
|
await detox.init(config);
|
|
});
|
|
|
|
beforeEach(async () => {
|
|
await adapter.beforeEach();
|
|
});
|
|
|
|
afterAll(async () => {
|
|
await adapter.afterAll();
|
|
await detox.cleanup();
|
|
}); |