2
0
mirror of synced 2025-01-17 09:50:56 +00:00
2018-03-23 13:40:07 +00:00

15 lines
371 B
JavaScript
Executable File

const detox = require('detox');
const config = require('../package.json').detox;
/*
Example showing how to use Detox with required objects rather than globally exported.
e.g `const {device, expect, element, by, waitFor} = require('detox');`
*/
before(async () => {
await detox.init(config, {initGlobals: false});
});
after(async () => {
await detox.cleanup();
});