|
@@ -3,11 +3,10 @@ require('babel-polyfill');
|
3
|
3
|
const detox = require('detox');
|
4
|
4
|
const detoxConfig = require('../package.json').detox;
|
5
|
5
|
|
6
|
|
-const release = process.env.detoxMode === 'release';
|
|
6
|
+detoxConfig['ios-simulator'].app = process.env.detoxAppBuildPath;
|
7
|
7
|
|
8
|
8
|
before(function(done) {
|
9
|
9
|
this.timeout(30000);
|
10
|
|
- detoxConfig['ios-simulator'].app = `ios/DerivedData/playground/Build/Products/${release ? 'Release' : 'Debug'}_Detox-iphonesimulator/playground.app`;
|
11
|
10
|
detox.config(detoxConfig);
|
12
|
11
|
detox.start(done);
|
13
|
12
|
});
|