From a9bb8a2bd84d5850e4886350d39d947c42083655 Mon Sep 17 00:00:00 2001 From: Salakar Date: Fri, 13 Apr 2018 13:46:18 +0100 Subject: [PATCH] [tests] move helpers require into mocha opts - makes them available in the module scope --- bridge/e2e/init.js | 1 - bridge/e2e/mocha.opts | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/bridge/e2e/init.js b/bridge/e2e/init.js index bda32f3d..f7c8dce9 100755 --- a/bridge/e2e/init.js +++ b/bridge/e2e/init.js @@ -1,6 +1,5 @@ const detox = require('detox'); const config = require('../package.json').detox; -require('./../helpers'); before(async () => { await detox.init(config); diff --git a/bridge/e2e/mocha.opts b/bridge/e2e/mocha.opts index 52e682b3..6c49ef2b 100755 --- a/bridge/e2e/mocha.opts +++ b/bridge/e2e/mocha.opts @@ -4,3 +4,4 @@ --bail --exit --require bridge/platform/node +--require ./helpers